欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

帝國cms7.5整合論壇程序discuzX3.2同時登陸退出的實現(xiàn)方法

  發(fā)布時間:2020-01-28 17:10:20   作者:佚名   我要評論
這篇文章主要介紹了帝國cms7.5整合論壇程序discuzX3.2同時登陸退出的實現(xiàn)方法,需要的朋友可以參考下

1、首先參照下載帝國CMS7.5安裝在網站根目錄,同時安裝完畢,另外在下載discuzX3.2到網站目錄club文件夾。并安裝完畢

2、按照帝國論壇教程http://bbs.phome.net/showthread-35-78648-0.html

3、在修改帝國CMS目錄下的e/config.inc.php文件配置:(UTF-8版要用dreamweaver或editplus修改,用記事本會將文件轉為gbk)

參照discuz目錄下:config/config_ucenter.php 配置帝國e/config.inc.php文件

最后實現(xiàn)后,發(fā)現(xiàn)在帝國上登陸和退出都可以在discuz里實現(xiàn),但是當在discuz上登陸退出,在帝國就不行了。

解決辦法:

在DISCUZ的client.php文件中(默認在uc_client目錄下):

找到365行左右

將以下代碼:

function uc_user_synlogin($uid) {
        $uid = intval($uid);
        if(@include UC_ROOT.'./data/cache/apps.php') {
                if(count($_CACHE['apps']) > 1) {
                        $return = uc_api_post('user', 'synlogin', array('uid'=>$uid));
                } else {
                        $return = '';
                }
        }
        return $return;
}
function uc_user_synlogout() {
        if(@include UC_ROOT.'./data/cache/apps.php') {
                if(count($_CACHE['apps']) > 1) {
                        $return = uc_api_post('user', 'synlogout', array());
                } else {
                        $return = '';
                }
        }
        return $return;
}

改為:

function uc_user_synlogin($uid) {
        $uid = intval($uid);
        if(@include UC_ROOT.'./data/cache/apps.php') {
                if(count($_CACHE['apps']) > 1) {
                        $return = uc_api_post('user', 'synlogin', array('uid'=>$uid));
                } else {
                        $return = uc_api_post('user', 'synlogin', array('uid'=>$uid));
                }
        }
        return $return;
}
function uc_user_synlogout() {
        if(@include UC_ROOT.'./data/cache/apps.php') {
                if(count($_CACHE['apps']) > 1) {
                        $return = uc_api_post('user', 'synlogout', array());
                } else {
                        $return = uc_api_post('user', 'synlogout', array());
                }
        }
        return $return;
}

好了這篇文章就介紹到這了,如果能幫助到你,請以后多多支持腳本之家。

相關文章

最新評論