مشكل باز نشده عكس هاي پيش نمايش در آپلود سنترم

uniqe1

تازه وارد
<?php

##################################################################

## Sava's Place.com Password Protect ##

## Visit for more scripts ##

##################################################################

$LOGIN_INFORMATION = array(

'sava' => 'sava',

'########' => '#####'

);

// Require username or not

// If you want to use username and password login leave this true.

// If you want only to request a password set it for false.

define('USE_USERNAME', true);

// To password protect your pages you need to include this file in them

// To get the correct code for inclusion open password.php?code in your broswer

if(isset($_GET['code'])) {

die('<center><font face="Verdana" size="2">Include following code into every page you would like to protect, at the very beginning (first line):<br><br><strong><?php include("' . __FILE__ . '"); ?></strong></center></font>');

}

if(isset($_GET['logout'])) {

setcookie("verify", ''); // clear password;

die('<center><font face="Verdana" size="2">Logged out.</font></center>');

}

if(!function_exists('showLoginPasswordProtect')) {

function showLoginPasswordProtect($error_msg) {

?>

<!-- And this is the output -->

<html>

<head>

<title>Login to access this page upload center sama</title>

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

<style>

* {

font-family:Verdana;

font-size:12px;

}

a {

color: #000000;

text-decoration: none;

}

a:hover {

color: red;

text-decoration: none;

}

input {

border: 1px solid black;

background-color: #FFFFFF;

}

.bodyform {

border-color: #014b6f;

border-style:solid;

border-width: 3px;

width:400px;

}

.title {

color: #FFFFFF;

background: #014b6f;

padding: 5px;

}

</style>

</head>

<body>

<center><br /><br />

<div class="bodyform" align="center">

<form method="post">

<div class="title">

<strong>Access restricted - Login Below:</strong>

</div>

<div style="padding-right:10px;padding-left:10px;">

<font color="red"><strong><?php echo $error_msg; ?><strong></font><br /><br />

<?php if (USE_USERNAME) echo '<table>

<tr>

<td align="left">username:</td>

<td align="right"><input type="input" name="access_login" /></td>

</tr>

<tr>

<td>Password:</td>'; ?>

<td><input type="password" name="access_password" /></td>

</tr>

</table>

<p></p>

<input type="submit" name="Submit" value="Submit" />

</form>

</div>

</div>

<br />

<b>CODE BY:H.montaseri</b>

</center>

</body>

</html>

<?php

die();

}

}

if (isset($_POST['access_password'])) {

$login = isset($_POST['access_login']) ? $_POST['access_login'] : '';

$pass = $_POST['access_password'];

if (!USE_USERNAME && !in_array($pass, $LOGIN_INFORMATION)

|| (USE_USERNAME && ( !array_key_exists($login, $LOGIN_INFORMATION) || $LOGIN_INFORMATION[$login] != $pass ) )

) {

showLoginPasswordProtect("Incorrect password.");

}

else {

setcookie("verify", md5($pass));

unset($_POST['access_login']);

unset($_POST['access_password']);

unset($_POST['Submit']);

}

}

else {

if (!isset($_COOKIE['verify'])) {

showLoginPasswordProtect("");

}

$found = false;

foreach($LOGIN_INFORMATION as $kay=>$val) {

if ($_COOKIE['verify'] == md5($val)) {

$found = true;

break;

}

}

if (!$found) {

showLoginPasswordProtect("");

}

}

?>

<?php

require_once "./source/includes/data.php";

if ($mmhclass->funcs->is_null($mmhclass->input->get_vars['module']) == false && is_file("{$mmhclass->info->root_path}source/modules/".basename($mmhclass->input->get_vars['module']).".php") == true) {

$module_name = basename($mmhclass->input->get_vars['module']);

require_once "{$mmhclass->info->root_path}source/modules/{$module_name}.php";

exit;

}

$last_extension = end($mmhclass->info->config['file_extensions']);

for ($i = 0; $i < count($mmhclass->info->config['file_extensions']); $i++) {

$extension = strtoupper($mmhclass->info->config['file_extensions'][$i]);

$file_extensions .= (($extension == strtoupper($last_extension)) ? "and .{$extension}" : ".{$extension}, ");

}

if ($mmhclass->input->get_vars['act'] == "upload_in_progress") {

exit($mmhclass->templ->parse_template("home", "upload_in_progress_lightbox"));

}

$mmhclass->templ->templ_vars[] = array(

"SITE_NAME" => $mmhclass->info->config['site_name'],

"MAX_FILESIZE" => $mmhclass->image->format_filesize($mmhclass->info->config['max_filesize']),

"FILE_EXTENSIONS" => $file_extensions,

);

if ($mmhclass->funcs->is_null($mmhclass->input->get_vars['url']) == true) {

$mmhclass->templ->output("home", "normal_upload_page");

} else {

$mmhclass->templ->output("home", "url_upload_page");

}

?>

سلام من تازگيا عكس آپ مي كنم تو پيش نمايش فقط لينكشو نشون ميده كسي مي دونه مشكلش چيه فقط تنها كاري كه كردم كد رمز گذاري php رو صفحه index.php صفحه اصلي گذاشتم اينم سورس index.php ي

 

Mohammad

مدیر انجمن
پرسنل مدیریت
ادرس وب سایت لطفا .

احتمالا سیستم نمیتونه تصویر بند انگشتی یا همون تصویر کوچیک بسازه...

 
بالا