Month: November 2014
-
Post Views: 13 The reason for the analysis: It should be that there is a database name, etc., or there is a permission problem. Later, the default configuration of the database is reinstalled, and it can be successfully installed: Finally, for safety reasons, go to modify the relevant configuration in my.php!
-
Post Views: 14 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; } Check the PHPSSO_SERVER\API\UC_Client\Data\Cache\Settings.php file and find that the update has been successful:
-
Post Views: 10 The screenshot of the avatar cannot be displayed, on the active user page,http://zhidao.hmwis.com/user/activelist.html: 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:
-
Post Views: 14 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…
-
Post Views: 10 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…
-
Post Views: 13 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!
