The latest version of PHP5.4.x environment installed dedecmsv57sp1UTF-8, the results of the background login submitted the user name and password, actually a blank. After carefully following the code, we can find that several functions in the new PHP version do not exist because of two reasons. Session_registersession_unregister file includeuserlogin. class. p
The latest version of PHP 5.4.x environment installed dedecms v57 sp1 UTF-8, the results of the background login submitted the user name and password, actually blank. After carefully following the code, we can find that several functions in the new PHP version do not exist because of two reasons. Session_register session_unregister file/include/userlogin. class. p
The latest version of PHP 5.4.x environment installed dedecms v57 sp1 UTF-8, the results of the background login submitted the user name and password, actually blank.
After carefully following the code, we can find that several functions in the new PHP version do not exist because of two reasons.
Session_register
Session_unregister
File/include/userlogin. class. php
/*** Keep the user's session Status ** @ access public * @ return int success return 1, failure return-1 */function keepUser () {if ($ this-> userID! = ''& $ This-> userType! = '') {Global $ admincachefile, $ adminstyle; if (empty ($ adminstyle) $ adminstyle = 'dedecms '; if (function_exists (" session_register ")) $ session_register = true; if ($ session_register) @ session_register ($ this-> keepUserIDTag); $ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID; if ($ session_register) @ session_register ($ this-> keepUserTypeTag); $ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType; if ($ session_register) @ session_register ($ this-> keepUserChannelTag); $ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel; if ($ session_register) @ session_register ($ this-> keepUserNameTag); $ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName; if ($ session_register) @ session_register ($ this-> keepUserPurviewTag); $ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview; if ($ session_register) @ session_register ($ this-> keepAdminStyleTag); $ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle; PutCookie ('dedeuserid', $ this-> userID, 3600*24, '/'); PutCookie ('delogintime', time (), 3600*24, '/'); $ this-> ReWriteAdminChannel (); return 1 ;} else {return-1 ;}}
/// *** End the user's session Status ** @ access public * @ return void */function exitUser () {ClearMyAddon (); if (function_exists ("session_unregister ")) {@ session_unregister ($ this-> keepUserIDTag); @ session_unregister ($ this-> keepUserTypeTag); @ session_unregister ($ this-> keepUserChannelTag ); @ session_unregister ($ this-> keepUserNameTag); @ session_unregister ($ this-> keepUserPurviewTag);} DropCookie ('deadmindir'); DropCookie ('dedeuserid '); dropCookie ('delogintime'); $ _ SESSION = array ();}