require dirname(__FILE__) . "/" . "../inc/common.inc.php"; $ForceEnter = 0; //把0改成1将强制进入后台 //还原数据时,防止用户名被删除后,不能继续还原数据 if ($lfj == 'mysql' && $action == 'into') { unset($Apower); require_once "mysql.php"; $baktime = str_replace(array("..", "\\", "/"), array("", "", ""), $baktime); $step = str_replace(array("..", "\\", "/"), array("", "", ""), $step); bak_into(); exit; } /** *允许哪些IP访问后台 **/ $IS_BIZ && Limt_IP('AdminIp'); require ROOT_PATH . "inc/class.inc.php"; @(include ROOT_PATH . "data/level.php"); @(include ROOT_PATH . "data/module.php"); @(include ROOT_PATH . "data/all_fid.php"); @(include ROOT_PATH . "data/article_module.php"); $Guidedb = new Guide_DB(); /*用户登录*/ if ($_POST[loginname] && $_POST[loginpwd]) { if ($webdb[yzImgAdminLogin] && $webdb[web_open]) { if (!check_imgnum($yzimg)) { if (!strstr($WEBURL, $webdb[www_url])) { echo "<CENTER>网址有误,请重新登录</CENTER><META HTTP-EQUIV=REFRESH CONTENT='1;URL={$webdb['admin_url']}'>"; exit; } showmsg("<A HREF=?>验证码不符合</A>");
<?php define('Memberpath', dirname(__FILE__) . '/'); require Memberpath . "../inc/common.inc.php"; @(include ROOT_PATH . "data/level.php"); @(include_once ROOT_PATH . "data/all_fid.php"); //全部栏目配置文件 @(include ROOT_PATH . "data/article_module.php"); if (!$webdb[web_open]) { $webdb[close_why] = str_replace("\n", "<br>", $webdb[close_why]); showerr("网站暂时关闭:{$webdb['close_why']}"); } if ($id || $aid) { if (strlen($aid ? $aid : $id) > 8 && !in_array($erp = get_id_table($aid ? $aid : $id), $Fid_db[iftable])) { unset($erp); } } $id = intval($id); $aid = intval($aid); $tid = intval($tid); /** *允许哪些IP访问 **/ $IS_BIZ && Limt_IP('AllowVisitIp');
@(include_once ROOT_PATH . "data/module.php"); @(include_once ROOT_PATH . "data/htmltype.php"); @(include_once ROOT_PATH . "data/showhtmltype.php"); require_once ROOT_PATH . "data/mysql_config.php"; require_once ROOT_PATH . 'inc/mysql_class.php'; require_once ROOT_PATH . 'inc/class.user.php'; require_once ROOT_PATH . 'data/level.php'; $timestamp = time() + $webdb['time'] * 60; $_POST[loginname] && ($_POST[loginname] = filtrate($_POST[loginname])); $_POST[loginpwd] && ($_POST[loginpwd] = filtrate($_POST[loginpwd])); $FROMURL = filtrate($FROMURL); $WEBURL = filtrate($WEBURL); /** *封IP **/ $IS_BIZ && Limt_IP('ForbidIp'); list($usr_sid, $usr_oltime, $usr_lastvist, $usr_lasturl) = explode("\t", get_cookie('USR')); if (!$usr_sid) { $usr_sid = rands(8); } unset($_ENV, $HTTP_COOKIE, $HTTP_ENV_VARS, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS, $HTTP_POST_FILES, $HTTP_COOKIE_VARS); $db = new MYSQL_DB(); unset($web_admin, $sort_admin, $lfjid, $lfjuid, $lfjpwd, $lfjdb, $groupdb); $usr_oltime = intval($usr_oltime); /*用户登录模块*/ if ($webdb[passport_type] && is_file(ROOT_PATH . "inc/passport/{$webdb[passport_type]}.php")) { require_once ROOT_PATH . "inc/passport/{$webdb[passport_type]}.php"; $userDB = new qb_user(); $lfjdb = PassportUserdb(); } else { $TB = array("table" => "{$pre}members", "uid" => "uid", "username" => "username", "password" => "password");