DISCUZ!X3.2 升级后UCENTER、UC_SERVER正确密码无法登录后台解决方法

php爱好者 2015-10-24 658

而是最新版本的discuz出现的BUG导致我们无法登录,其实也就是cookie导致的。
解决办法很简单,如下:
在/uc_server/model 中找到admin.php
找到代码:
function adminbase() {
parent::__construct();
$this->cookie_status = 0;//修改为 <code class="variable" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important; color: rgb(170, 119, 0) !important;">$this</code><code class="plain" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; color: rgb(0, 0, 0); white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important;">->cookie_status = isset(</code><code class="variable" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important; color: rgb(170, 119, 0) !important;">$_COOKIE</code><code class="plain" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; color: rgb(0, 0, 0); white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important;">[</code><code class="string" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important; color: blue !important;">'sid'</code><code class="plain" style="background-color: rgb(255, 255, 255); line-height: 16.5px; font-size: 15px; color: rgb(0, 0, 0); white-space: pre; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important;">]) ? 1 : 0;</code>
$sid = $this->cookie_status ? getgpc('sid', 'C') :rawurlencode(getgpc('sid', 'R'));
$this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';


最新回复 (3)
返回
发新帖