我深入了解了下那个admin.php ,发现现在官网下载的DX3.1和3.2里面都是一样的,都被修改了,导致UC登陆产生了BUG,而且主要改了2行代码:
之前的admin.php内容[14年4月下载的UC1.6版本压缩包里提取】关注红色字体,这个是变动的地方,不知道开发的什么意思
class adminbase extends base {
var $cookie_status = 1;
function __construct() {
$this->adminbase();
}
function adminbase() {
parent::__construct();
$this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;
$sid = $this->cookie_status ? getgpc('sid', 'C') : rawurlencode(getgpc('sid', 'R'));
$this->view->sid = $this->sid_decode($sid) ? $sid : '';
$this->view->assign('sid', $this->view->sid);
$this->view->assign('iframe', getgpc('iframe'));
$a = getgpc('a');
if(!(getgpc('m') =='user' && ($a == 'login' || $a == 'logout'))) {
$this->check_priv();
}
}
目前新的admin.php 内容:
class adminbase extends base {
var $cookie_status = 0;
function __construct() {
$this->adminbase();
}
function adminbase() {
parent::__construct();
$this->cookie_status = 0;
$sid = $this->cookie_status ? getgpc('sid', 'C') : rawurlencode(getgpc('sid', 'R'));
$this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';
$this->view->assign('sid', $this->view->sid);
$this->view->assign('iframe', getgpc('iframe'));
$a = getgpc('a');
if(!(getgpc('m') =='user' && ($a == 'login' || $a == 'logout'))) {
$this->check_priv();
}
}
新的admin.php的修改者信息:Id: admin.php 1167 2014-11-03 03:06:21Z hypowang
|