PHPCMS 9 – 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 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
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