In the root directory, locate the/include/userlogin. class. php file in the path, find the keepuser () function in it, and rewrite all @ session_register in it.
You will see this code in it:
<? Php
@ Session_register ($ this-> keepUserIDTag );
$ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID;
@ Session_register ($ this-> keepUserTypeTag );
$ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType;
@ Session_register ($ this-> keepUserChannelTag );
$ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel;
@ Session_register ($ this-> keepUserNameTag );
$ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName;
@ Session_register ($ this-> keepUserPurviewTag );
$ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview;
@ Session_register ($ this-> keepAdminStyleTag );
$ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle;
All right, let's change them:
The code is as follows: |
Copy code |
If (! Isset ($ _ SESSION [$ this-> keepUserIDTag]) $ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID; If (! Isset ($ _ SESSION [$ this-> keepUserTypeTag]) $ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType; If (! Isset ($ _ SESSION [$ this-> keepUserChannelTag]) $ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel; If (! Isset ($ _ SESSION [$ this-> keepUserNameTag]) $ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName; If (! Isset ($ _ SESSION [$ this-> keepUserPurviewTag]) $ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview; If (! Isset ($ _ SESSION [$ this-> keepAdminStyleTag]) $ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle; |
Another possibility is that you can use notepad to change the database password to a blank page in the background. Using Notepad and Dreamweaver to modify the surface cannot be seen differently (see the figure ). Actually, this is not the case !!! The solution is also simple: you just need to use Dreamweaver to open the data/common. inc. php initially installed in DEDE and change the host name and database account password to the same space.
Attach another solution
Find the include/common. inc. Php file, open it, and find the program code:
The code is as follows: |
Copy code |
// Error_reporting (E_ALL ); Error_reporting (E_ALL | ~ E_NOTICE ); Replace: Error_reporting (E_ALL ); // Error_reporting (E_ALL | ~ E_NOTICE ); |
This step is very important, because it will tell you why the prompt information becomes blank, save it, and enter the management background again. At this time, you will find a prompt in the background. The original text prompt is:
Parse error: parse error in D:/wwwroot/pcpps/Web/data/config. cache. inc. php on line 44 was found, and the above was changed back first, and then we analyzed it from the error prompt.
From this, we can now find data/config in the root directory of the website. cache. inc. php on line 44 has a problem, and then I will back up the data/config. cache. inc. the problem is solved after php re-uploads full coverage. this eliminates the issue of blank background login for dede.