八零在线优社区

 找回密码
 帐号注册

QQ登录

只需一步,快速开始

搜索
热搜: PhotoShop
查看: 325|回复: 1

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

  [复制链接]
发表于 2015-10-24 10:37:03 | 显示全部楼层 |阅读模式
而是最新版本的discuz出现的BUG导致我们无法登录,其实也就是cookie导致的。
解决办法很简单,如下:
在/uc_server/model 中找到admin.php
找到代码:
  1. function adminbase() {
  2. parent::__construct();
  3. $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>
  4. $sid = $this->cookie_status ? getgpc('sid', 'C') :rawurlencode(getgpc('sid', 'R'));
  5. $this->sid = $this->view->sid = $this->sid_decode($sid) ? $sid : '';
复制代码


回复

使用道具 举报

发表于 2017-11-10 14:06:45 | 显示全部楼层
高人啊,真是好东西啊!!













传奇GM论坛
私服
网页传奇私服
haosf
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 帐号注册

本版积分规则

QQ|小黑屋|手机版|八零在线优社区 ( 赣ICP备15001736号-2 )

GMT+8, 2018-2-22 13:13

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表