检查adminychh->index_body.php里面的第一行引用
require(dirname(__FILE__).'/config.php');
如是这样,说明是5.7版本
adminychh->admin->zyz.php
<?php
require('../config.php');
echo $cuserLogin->getUserID();exit;
?>
同时修改adminychh->config.php
//检验用户登录状态
$cuserLogin = new userLogin();
if($cuserLogin->getUserID()==-1)
{
$zyz= strpos(urlencode($dedeNowurl),'%2Fadmin%2Fzyz.php'); // 查找/admin/zyz.php是否存在
if($zyz>0)header("location: ../login.php?gotopage=".urlencode($dedeNowurl));
else header("location:login.php?gotopage=".urlencode($dedeNowurl));
exit();
}
上一篇>>根据日期,筛选过期的数据和没过期的数据
下一篇>>MySQL 显示表字段及注释等信息
Copyright © 2016 Allister All Rights Reserved