本帖最后由 幸福摩天轮 于 2010-3-2 11:34 编辑
UCHome 的 PW 版本在打完官方 重要!UCHome 2.0 正式版 20100106补丁包 后出现无法同步的情况,请做以下修改:
找到 source/function_common.php 第186行:- } else {
- $_SGLOBAL['username'] = $member['username'];
- }
- }
- //获取用户app列表
- function getuserapp() {
复制代码 修改为:- } else {
- $_SGLOBAL['username'] = $member['username'];
- }
- include_once(S_ROOT.'./uc_client/client.php');
- checkpwauto();
- }
- //获取用户app列表
- function getuserapp() {
复制代码 或者直接下附件中的文件替换即可。
找到 source/cp_common.php- if($op == 'logout') {
-
- if($_GET['uhash'] == $_SGLOBAL['uhash']) {
- //删除session
- if($_SGLOBAL['supe_uid']) {
- $_SGLOBAL['db']->query("DELETE FROM ".tname('session')." WHERE uid='$_SGLOBAL[supe_uid]'");
- $_SGLOBAL['db']->query("DELETE FROM ".tname('adminsession')." WHERE uid='$_SGLOBAL[supe_uid]'");//管理平台
- }
-
- if($_SCONFIG['uc_status']) {
- include_once S_ROOT.'./uc_client/client.php';
- $ucsynlogout = uc_user_synlogout();
- } else {
- $ucsynlogout = '';
- }
-
- clearcookie();
- ssetcookie('_refer', '');
- }
- showmessage('security_exit', 'index.php', 1, array($ucsynlogout));
- } elseif($op == 'seccode') {
复制代码 修改为:- if($op == 'logout') {
-
- if($_GET['uhash'] == $_SGLOBAL['uhash']) {
- //删除session
- if($_SGLOBAL['supe_uid']) {
- $_SGLOBAL['db']->query("DELETE FROM ".tname('session')." WHERE uid='$_SGLOBAL[supe_uid]'");
- $_SGLOBAL['db']->query("DELETE FROM ".tname('adminsession')." WHERE uid='$_SGLOBAL[supe_uid]'");//管理平台
- }
-
- if($_SCONFIG['uc_status']) {
- include_once S_ROOT.'./uc_client/client.php';
- $ucsynlogout = uc_user_synlogout();
- } else {
- $ucsynlogout = '';
- }
-
- clearcookie();
- ssetcookie('_refer', '');
- }
- include_once S_ROOT.'./uc_client/client.php';
- $ucsynlogout = uc_user_synlogout();
- showmessage('security_exit', 'index.php', 1, array($ucsynlogout));
- } elseif($op == 'seccode') {
复制代码 |