PHP5.4.x installing dedecms the latest background login page is blank

Source: Internet
Author: User
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 ();}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.