UCenter – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Sun, 07 Jun 2026 14:45:17 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 Enable the MySQL enhanced extension under UCenter_1.6.0_sc_utf8, that is, the mysqli extension https://www.shuijingwanwq.com/en/2015/11/19/16295/ https://www.shuijingwanwq.com/en/2015/11/19/16295/#respond Thu, 19 Nov 2015 08:49:15 +0000 https://www.shuijingwanwq.com/?p=16295 浏览量: 1

1. Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi. class.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php

复制Discuz_X3.2_SC_UTF8/upload/uc_server/lib/dbi.class.php到UCenter_1.6.0_SC_UTF8/lib/dbi.class.php

Copy Discuz_x3.2_sc_utf8/upload/uc_server/lib/dbi.c LASS.php to ucenter_1.6.0_sc_utf8/lib/dbi.class.php

2. Edit ucenter_1.6.0_sc_utf8/model/base.php

function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new ucserver_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw, uc_dbname, uc_dbcharset, UC_DBConnect, UC_DBTablePre);
}

编辑UCenter_1.6.0_SC_UTF8/model/base.php

Edit ucenter_1.6.0_sc_utf8/model/base.php

3. Copy the class of discuz_x3.2_sc_utf8/upload/uc_server/api/dbbak.php dbstuffi to ucenter_1.6.0_sc_utf8/api/dbbak.php

4. Edit ucenter_1.6.0_sc_utf8/api/dbbak.php

编辑UCenter_1.6.0_SC_UTF8/api/dbbak.php

Edit ucenter_1.6.0_sc_utf8/api/dbbak.php

5. Enable the mysqli extension in uc_client, copy discuz_x3.2_sc_utf8/upload/u c_client/lib/dbi.class.php to uc_client/lib/dbi.class.php

复制Discuz_X3.2_SC_UTF8/upload/uc_client/lib/dbi.class.php到uc_client/lib/dbi.class.php

Copy Discuz_x3.2_sc_utf8/upload/uc_client/lib/dbi.class.php to uc_client/lib/dbi.class.php

6. Edit uc_client/client.php,

if(empty($UC_CONTROLS)[$model])) {
//INCLUDE_ONCE UC_ROOT../lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
INCLUDE_ONCE UC_ROOT../lib/dbi.class.php;
} else {
INCLUDE_ONCE UC_ROOT../lib/db.class.php;
}
INCLUDE_ONCE UC_ROOT../model/uc_base.php;
include_once uc_root.”./control/$model.php”;
eval(“\$UC_CONTROLS[‘$model’]= new {$model}control();”);
}

编辑uc_client/client.php

Edit UC_Client/Client.php

7. Edit /uc_client/model/uc_base.php

function init_db() {
//require_once uc_root.lib/db.class.php;
if(function_exists(“mysqli_connect”)) {
require_once UC_ROOT.lib/dbi.class.php;
} else {
require_once UC_ROOT.lib/db.class.php;
}
$this->db = new uclient_db();
$this->db->connect(uc_dbhost, uc_dbuser, uc_dbpw,, uc_dbcharset, uc_dbconnect, uc_dbtablepre);
}

编辑/uc_client/model/uc_base.php

Edit /uc_client/model/uc_base.php

 

]]>
https://www.shuijingwanwq.com/en/2015/11/19/16295/feed/ 0
Enable the MySQL enhanced extension in Discuz_x3.2_sc_utf8, that is, the mysqli extension https://www.shuijingwanwq.com/en/2015/11/18/16300/ https://www.shuijingwanwq.com/en/2015/11/18/16300/#respond Wed, 18 Nov 2015 08:41:09 +0000 https://www.shuijingwanwq.com/?p=16300 浏览量: 0

1. ;extension=php_mysql.dll, disable mysql extension in php.ini;

2. In the function dependency check, mysqli_connect is supported;

在函数依赖性检查中,mysqli_connect是支持的

mysqli_connect is supported in function dependency checking

3. After installation, open the blank;

安装之后,打开空白

After installation, open the blank

4. Delete the program file, copy the file to the installation directory, edit discuz_x3.2_sc_utf8/source/class/discuz/discuz_database.php, and find the function quote, modify, because it does not make the judgment of extended support:

tiveting
if (is_string($str))
return\. mysql_escape_string($str) .\;
;
*/
if (is_string($str)) {
if(function_exists(“mysqli_connect”)) {
return\. self::$db->escape_string($str) .\;
} else {
return\. mysql_escape_string($str) .\;
}
}

查找function quote,修改,因为其未做扩展支持的判断

Find Function Quote, modify it, because it does not make the judgment of extended support

5. Reinstall and install successfully

重新安装,安装成功

Reinstalled, the installation was successful

]]>
https://www.shuijingwanwq.com/en/2015/11/18/16300/feed/ 0
Integrate PHPCMS_V9.5.8_UTF8 in ucenter_1.6.0_sc_utf8, update the solution to the client cache failure! https://www.shuijingwanwq.com/en/2014/11/24/16475/ https://www.shuijingwanwq.com/en/2014/11/24/16475/#respond Mon, 24 Nov 2014 02:06:35 +0000 https://www.shuijingwanwq.com/?p=16475 浏览量: 1
更新客户端缓存失败!

Update client cache failed!

Solution process:

Add the following method to phpsso_server/api/uc.php class uc_note:

//update client cache
function updateClient($get, $post) {
if(!api_updateClient) {
return api_return_forbidden;
}
$cacheFile = dirname(__file__)./uc_client/data/cache/settings.php;
$fp = fopen($cachefile,w);
$s = “<?php\r\n”;
$s .=$_cache[\’settings\’]=.var_export($post, true).”;\r\n”;
fwrite($fp, $s);
fclose($fp);
return api_return_succeed;
}

更新客户端缓存成功!

Update client cache success!

Check the PHPSSO_SERVER\API\UC_Client\Data\Cache\Settings.php file and find that the update has been successful:

settings.php已经更新成功!

settings.php has been updated successfully!

]]>
https://www.shuijingwanwq.com/en/2014/11/24/16475/feed/ 0
After the integration of TiPask_V2.5_UTF8_20140606 and UCenter_1.6.0_SC_UTF8, the solution to the avatar cannot be displayed! https://www.shuijingwanwq.com/en/2014/11/21/16480/ https://www.shuijingwanwq.com/en/2014/11/21/16480/#respond Fri, 21 Nov 2014 06:15:04 +0000 https://www.shuijingwanwq.com/?p=16480 浏览量: 0

The screenshot of the avatar cannot be displayed, on the active user page,http://zhidao.hmwis.com/user/activelist.html:

无法显示头像的截图,在活跃用户页面!

Screenshot of the avatar cannot be displayed, on the active user page!

Solution:

lib/global.func.php

function get_avatar_dir

//return $setting[‘ucenter_url’]./avatar.php?uid=. $UID .&size=middle;
@Include TiPask_root ./data/ucconfig.inc.php;
return UC_API ./avatar.php?uid=. $UID .&size=middle;

The reason is: $setting[‘ucenter_url’]Empty!

After solving, the screenshot is as follows:

解决之后,截图如下

After solving, the screenshot is as follows

 

 

]]>
https://www.shuijingwanwq.com/en/2014/11/21/16480/feed/ 0
The solution to notify other applications that the password is empty when ucenter changes the password! https://www.shuijingwanwq.com/en/2014/11/12/16485/ https://www.shuijingwanwq.com/en/2014/11/12/16485/#respond Wed, 12 Nov 2014 05:26:37 +0000 https://www.shuijingwanwq.com/?p=16485 浏览量: 1
Ucenter数据库中的用户表列表

List of user tables in UCenter database

在A应用中修改用户密码之后,在更新用户密码的通知列表中,发现password为空!

After modifying the user password in the A application, in the notification list of updating the user password, it is found that the password is empty!

Password is empty should be based on security considerations, the analysis code execution process, the solution is as follows, in Password I use MD5 encryption:

Notification program after ucenter changes the password in the background:
ucenter.kchmc.net/control/admin/user.php

//$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=);
$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=.md5($orgpassword));

UCenter Notification Program:
ucenter.kchmc.net/control/user.php

//$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=);
$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=.md5($newpw));

If the password is changed in the A application, and other applications that need to be notified use the independent user database, you need to modify the corresponding code of the UCenter client (UC_Client):
kchmc.net/phpsso_server/api/uc_client/control/user.php

//$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=);
$_env[‘note’]->add(updatepw,username=.urlencode($username).&password=.md5($newpw));

更新程序之后的通知表!

Notification form after updating the program!

Now it is possible that kchmc.net and ucenter.kchmc.net have updated the password, but other applications may not be notified, or The notification fails, and now one solution is to continue to wait, or manually operate the notification again in the ucenter.kchmc.net notification list!

]]>
https://www.shuijingwanwq.com/en/2014/11/12/16485/feed/ 0
Integrate PHPCMS and TiPask under ucenter, and find that logging in through phpcms can be synchronized to tipask, but quit through phpcms, it cannot be synchronized to the solution of tipask! https://www.shuijingwanwq.com/en/2014/11/11/16490/ https://www.shuijingwanwq.com/en/2014/11/11/16490/#respond Tue, 11 Nov 2014 06:52:38 +0000 https://www.shuijingwanwq.com/?p=16490 浏览量: 1
在phpcms中登录提示登录成功,查看源代码,可以看见已经发现同步js通知

In phpcms, the login prompts to log in successfully, check the source code, you can see that the synchronization js notification has been found

在phpcms中退出提示退出成功0,查看源代码,可以看见同步js通知代码为0

In phpcms, the exit prompt is successful 0, check the source code, you can see that the synchronization js notification code is 0

Analyze the code execution process:

1. kchmc.net/phpcms/modules/member/index.php

$SynLogoutstr = $this->client-> ps_member_synlogout();

2. kchmc.net/phpcms/modules/member/classes/client.class.php

Modified to be as follows:

/**
* Synchronized exit
* @param string $UID
* @return string javascript user sync exit js
*/
public function ps_member_synlogout() {
//return $this->_ps_send(synlogout, array());
return $this->_ps_send(synlogout, array(synlogout=>1));
}

3. kchmc.net/phpsso_server/phpcms/modules/phpsso/classes/phpsso.class.php

The reason is what is indicated in the red box:

如果$this-&gt;data为空,则返回0

If $this->data is empty, return 0

4. The revised result is as follows:

在phpcms中退出提示退出成功,查看源代码,可以看见已经发现同步js通知

Quitting in phpcms prompts the exit successfully, check the source code, you can see that the synchronization js notification has been found

]]>
https://www.shuijingwanwq.com/en/2014/11/11/16490/feed/ 0
The integration between PHPCMS V9 and UCenter, among which PHPCMS V9 already has member data, and does not use Discuz!! https://www.shuijingwanwq.com/en/2014/11/10/16495/ https://www.shuijingwanwq.com/en/2014/11/10/16495/#respond Mon, 10 Nov 2014 01:49:28 +0000 https://www.shuijingwanwq.com/?p=16495 浏览量: 1
pc v9的后台用户列表!

The backend user list of PC V9!

pc v9的sso中的会员表!

A membership form in the SSO of PC V9!

在新安装的UC中添加应用phpsso!

Add the application PHPSSO to the newly installed UC!

此时提示通信失败!

At this time, it prompts that the communication failed!

phpsso中的UCenter配置!

UCenter configuration in PHPSSO!

UC中的应用列表,显示通信成功!

The application list in UC shows that the communication is successful!

执行SQL,将phpsso中的会员数据导入至UC!

Execute SQL and import member data in PHPSSO to UC!

操作UC中的memberfields!

Operate MemberFields in UC!

在phpsso中将会员ID与UC中的会员ID进行关联!

Link the member ID to the member ID in UC in PHPSSO!

To some extent, the execution is successful, and the member data in PHPSSO is synchronized to UC. Users who have previously registered in PHPCMS V9 can log in and activate in other UCs that should be registered!

]]>
https://www.shuijingwanwq.com/en/2014/11/10/16495/feed/ 0