Zblog background Unable to login only refresh page solution

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Last night would like to update an article, but did not expect the blog backend management landing. First of all to determine whether the user name and password is correct, because my username password is encrypted with the RoboForm tool to save, certainly not wrong. So before manually modified link.asp, such as 2 link file template after the site error, not open. Replaced some ASP files and databases before resolving them. That said, then confirm the password is necessary, in the database to replace the correct password after uploading the test or not, put the database to another blog can log in, indicating that the password is no problem. Then Baidu, Google to find out why, found that there are a lot of questions Zblog can not login, there are several solutions. For example, replace Common.js, enter the username and choose to save a day and then enter the password, as well as modify the Setcookie JS function, I tried to not. I also understand some code, so I want to find procedures to deal with the login function of the relevant code, ZBOLG architecture is relatively fine, a layer of a layer is really not easy to find, on the use of Dreamweaver batch search and user name related database fields, has been 22 points over, more sleepy, find replacement mistake, Replace the related fields with empty ... So I thought I'd get it tomorrow.

Yesterday is to deal with the landing results database operation code found, reverse. Today, from the problem of the page step-by-step to find the cause, and soon found the point of issue. Click the login button, the page just refreshed a bit, did not do any processing. Then look at the Login.asp code analysis to find the problem. The action value of the form is not written directly in the form, but JS is assigned the value. That is, the action value is not assigned to commit, obviously before the assignment JS error caused no assignment. After analysis found in JS there are several ";" Number is not written. Modify the adjustment, the test can be normal landing. Today, this incident and processing methods written out, although and the East Leather Ali blog Topic a little irrelevant, but also hope to have the same problem friends some help.

------------------------gossip can be ignored------------------------

Question: Zblog cannot log in

Phenomenon: Enter the correct username password Verification code after clicking the login button without any hint, the page only refresh.

Zblog can not login, for many reasons, such as database connection, password errors, and so on, these are the reasons for the error. These reasons believe that the webmaster can identify or solve themselves. This method applies only to the resolution of the phenomenon described above. See clearly oh, the problem may be the blog after installation due to moving or backup repair, replaced some files caused. It is possible that the error in the read cookies caused the form action to be unassigned.

Treatment methods:

1. Find and open the root directory Login.asp page with Notepad

2. Put the following code:

if (GetCookie ("username")) {document.getElementById ("Edtusername"). Value=unescape (GetCookie ("username"))}; document.getElementById ("Btnpost"). Onclick=function () {var Strusername=document.getelementbyid ("EdtUserName"). Value; var Strpassword=document.getelementbyid ("Edtpassword"). Value; var Strsavedate=document.getelementbyid ("Edtsavedate"). Value if (strusername== "") | | (strpassword== "")) {alert (""); return false; } strusername=escape (strUserName); STRPASSWORD=MD5 (strpassword); Setcookie ("username", strusername,strsavedate); Setcookie ("password", strpassword,strsavedate); document.getElementById ("Frmlogin"). action= "Cmd.asp?act=verify"}

Replace with:

document.getElementById ("Btnpost"). Onclick=function () {var Strusername=document.getelementbyid ("EdtUserName"). Value; var Strpassword=document.getelementbyid ("Edtpassword"). Value; var Strsavedate=document.getelementbyid ("Edtsavedate"). Value; if (strusername== "") | | (strpassword== "")) {alert (""); return false; } strusername=escape (strUserName); STRPASSWORD=MD5 (strpassword); Setcookie ("username", strusername,strsavedate); Setcookie ("password", strpassword,strsavedate); document.getElementById ("Frmlogin"). action= "Cmd.asp?act=verify"; } if (GetCookie ("username")) {document.getElementById ("Edtusername"). Value=unescape (GetCookie ("username"));

The change is two code plus a ";", as follows:

var Strsavedate=document.getelementbyid ("Edtsavedate"). Value

document.getElementById ("Frmlogin"). action= "Cmd.asp?act=verify"

A ";" is moved, and the statement becomes as follows:

if (GetCookie ("username")) {document.getElementById ("Edtusername"). Value=unescape (GetCookie ("username"));

And the above code position movement changed a bit.

3. Save the upload space, replace the original page. Then test ing ...

Can not log on the friend must see clearly above phenomenon, not all can not land the reason could be solved! It took me more than half a day to help everyone.

The code before the modification is as follows:

  

The modified code is as follows:

  

Article Original Yudongje Ali blog www.ok365ok.com, reproduced please indicate the source. O (∩_∩) o~

Related Article

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.