|
|
最近把论坛换到了新的服务器上,顺便升级到discuz x3.2最新版本。ucenter和uc_server后台就无法登录了。
2 H B! s- B$ K# x, {/ G0 l开始以为是密码错误,上传tools工具修改密码之后还是不行,其实根本不是密码不对,就是最新版本的discuz出现的BUG导致我们无法登录。) _- Y; w B6 |
2 ?. v% ?! [! \) y x
8 `/ ~1 o: E4 p+ O; g' L X解决办法很简单# ]7 j' A3 m5 A. o: a
在/uc_server/model 中找到admin.php
+ ^2 b: K, V. O, m3 C* Y7 C; a! L) h2 U8 h& C6 m5 Y2 X
V4 q* _, s% s- k, m4 P8 t0 g# I找到代码function adminbase() {
+ u/ b+ g8 F& j9 I parent::__construct();
) K: c( c, ]; j3 ` h' {2 g2 a0 ` $this->cookie_status = 0;
! A. N& a' w' h2 t# j $sid = $this->cookie_status ? getgpc('sid', 'C') :rawurlencode(getgpc('sid', 'R'));
0 s! I- D2 `1 x $this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';6 s5 l' ^* d2 V4 X& v
5 Z" f9 J( o- o7 t) C Y
( H, M9 e7 i. t9 Z* x- Z
( i- n6 [6 @1 @' r) e8 S2 h将红色部分修改- R# K. k# w( X M" ~' ~4 l
function adminbase() {" _$ P% k! H+ m3 {, N" |
parent::__construct();
8 s5 A( m' _. A& ~% R $this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;* S o* _! L- I% H* \
$sid = $this->cookie_status ? getgpc('sid', 'C') :rawurlencode(getgpc('sid', 'R'));
; M x% S% m2 E $this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';
+ h; V4 p+ j) y2 U1 s; i问题解决。! Y9 M* y+ g& g F8 A
|
|