帝國7.5整合discuzX3.2實現兩邊都可以同時登陸退出
帝國cms7.5整合discuzX3.2完美實現同步登陸和退出
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檔案
最後實現後,發現在帝國上登陸和退出都可以在discuz裡實現,但是當在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;
}
相關推薦
帝國7.5整合discuzX3.2實現兩邊都可以同時登陸退出
帝國cms7.5整合discuzX3.2完美實現同步登陸和退出 1、首先參照下載帝國CMS7.5安裝在網站根目錄,同時安裝完畢,另外在下載discuzX3.2到網站目錄club資料夾。並安裝完畢 2、按照帝國論壇教程http://bbs.phome.net/sh
數字瘦身,最後輸出一位數,例如:75 7+5=12 1+2=3 最終答案 3
基本 adl using ram static mil ogr string pub 數字瘦身,最後輸出一位數,例如:75 7+5=12 1+2=3 最終答案 3 using System; public class Solution { private
線性表的合併已知兩個集合A和B,現要求一個新的集合A=A∪B。例如,設A=(7,5,3,11),B=(2,6,3),合併後A=(7,5,3,11,2,6)。
#include<iostream> using namespace std; #define MAXSIZE 100 #define OK 1 #define ERROR -1 #define OVERFLOW -2 #define MAXSIZE 100 &n
centos 7.5安裝oracle10.2.0.4
1.當前OS資訊, [[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [[email protected] ~]# uname -a L
Centos 7 Python版本從預設2.7.5升級至2.7.15,yum list 出現“-bash: /usr/bin/yum: /usr/bin/python: 壞的直譯器: 許可權不夠”
Centos 7 Python版本從預設2.7.5升級至2.7.15,yum list 出現“-bash: /usr/bin/yum: /usr/bin/python: 壞的直譯器: 許可權不夠” 在這裡說明一下Centos 7 的yum是依賴於Python2.7.5
Spring 3整合Quartz 2實現動態定時任務
一、 說明 在做公司的一款產品過程中要實現定時任務功能,而且這款產品是面向不同客戶的,因此具體執行的任務不固定,定時週期也不固定,所以就用到了quartz來實現這個功能。 需要說明的是spring3.1以下的版本必須使用quartz1.
Spring 3整合Quartz 2實現定時任務三:動態暫停 恢復 修改和刪除任務
前面我們已經完成了spring 3和quartz 2的整合以及動態新增定時任務,我們接著來完善它,使之能支援更多的操作,例如暫停、恢復、修改等。 在動態新增定時任務中其實已經涉及到了其中的一些程式碼,這裡我們再來細化的理一理。先來看一下我們初步要實現的目標效果圖,這裡
Centos 7.5 雙網絡卡內外網同時訪問路由設定
說明:伺服器有兩張網絡卡分別是eth0、eth1,eth0配置內網IP:192.168.1.1/24,eth1配置外網IP:10.1.1.1/24;要求192.168.0.0/16網段走網絡卡eth0,閘道器是192.168.1.254,其餘網段走網絡卡eth1
Win7實現多使用者同時登陸
1、首先到網上去下載“補丁UniversalTermsrvPatch”,這個補丁主要目的是在於去除“單使用者登陸的限制”,允許多人多使用者同時並行訪問登入;2、然後根據自己的系統執行對應的程式:系統是32位,則執行 UniversalTermsrvPatch-x86.exe;系統是64位,則執行 Univer
1.實現strcpy 2.實現strcat 3.實現strstr 4.實現strchr 5.實現strcmp 6.實現memcpy 7.實現memmove
在前面介紹了字串的一個大概,真正的掌握需要大量程式碼的磨練。下面介紹幾個字串常用的幾個函式,這些函式都是在<string.h>裡面,這裡是介紹原理,進行模擬還原,也就是自己寫這個函式,實現原有功能。可能有一些語言表達不好的地方,或者有些地方的語言生硬,難以
1.實現strcpy 2.實現strcat 3.實現strstr 4.實現strchr 5.實現strcmp 6.實現memcpy 7.實現memmove
1.模擬實現strcpy函式拷貝字串 #include<stdio.h> #include<assert.h> char* my_strcpy(char* dest,const char *src) { char* ret = dest
帝國cms搜尋模板支援靈動標籤和萬能標籤(支援到7.2-7.5)
1,開啟 /e/search/result/index.php 檔案 查詢 require("../../class/connect.php"); require("../../class/db_sql.php"); require("../..
spring4.3.7整合mongodb3.2.1
工具 spring mongodb 前幾天寫了個mongodb原生的工具類,參考“http://ylcodes01.blog.51cto.com/5607366/1933342”,項目裏需要做分布式,所以現在集成到spring中,今天結合spring-mongodb寫了一些常用的工具。BaseMo
centos 7 python2.7.5升級到3.5.2
duyuheng centos 7 python2.7.5升級到3.5.2centos 7 python2.7.5升級到3.5.2系統 centos 7 軟件包 python3.5.2 下載:wget https://www.python.org/ftp/python/3.5.2/Python-3.
Linux鞏固記錄(5) hadoop 2.7.4下自己編譯代碼並運行MapReduce程序
parser mod pill self add let tokenize org cto 程序代碼為 ~\hadoop-2.7.4\share\hadoop\mapreduce\sources\hadoop-mapreduce-examples-2.7.4-sourc
面試題3:在一個長度為n的數組裏的所有數字都在0到n-1的範圍內。 數組中某些數字是重復的,但不知道有幾個數字是重復的。也不知道每個數字重復幾次。請找出數組中任意一個重復的數字。 例如,如果輸入長度為7的數組{2,3,1,0,2,5,3},那麽對應的輸出是第一個重復的數字2。
length value 如果 while 返回 sys public ret || package siweifasan_6_5; /** * @Description:在一個長度為n的數組裏的所有數字都在0到n-1的範圍內。 * 數組中某些數字是重復的,
CentOS 7.0 下 Python 2.7 升級到 Python 3.5
sqli qlite entos bin prefix 默認 2.7 dir bzip2 前段因為時間工作需要,要把 Centos 7.0 默認安裝的 Python 2.7 升級到 Python 3.5。 具體操作如下: # 安裝 gcc gcc-c++ 等編譯工具軟件
hadoop-eclipse-plugin-2.7.5
hadoop eclipse插件 2.7.5 hadoop-eclipse-plug 折騰了三天,編譯成功,並通過測試了,有需要的可以下載。#######################################################################【1】插件信
Centos 7.4 中http-2.4 的基本實現和 https 的實現
http-2.4 https 1.建立httpd服務,要求: 1) 提供兩個基於名稱的虛擬主機www1, www2;要求每個虛擬主機都有單獨的錯誤日誌和訪問日誌; 2) 通過www1的/server-status提供狀態信
Python從2.7.5升級到3.6.5
進行 TP AR get req pythonh pip安裝 ted 安裝 Python從2.7.5升級到3.6.5學習了:https://blog.csdn.net/liang19890820/article/details/51079633 wget https://w