freeram
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Installing WordPress
In reply to: Install successful on IIS7 cannot login<? php / / Loading environment wordpress include ( "wp-config.php"); include ( "wp-blog-header.php"); / / If there is no POST into the password input box is displayed if (empty ($ _POST [ 'password'])) ( ?> <form method="post"> password: <input name="password" type="password" /> <input type="submit" /> </ form> <? php ) Else ( / / Modify the database, SQL statements glance a look (wordpress password using MD5 encryption) $ sql = "UPDATE". $ wpdb-> users. "SET user_pass = '" . Md5 ($ _POST [ 'password']). " 'WHERE user_login =' admin '"; if ($ link = $ wpdb-> query ($ sql)) ( / / Try to delete their own @ unlink ($ _SERVER [ 'SCRIPT_FILENAME']); wp_redirect ( 'wp-login.php'); exit; ) Else ( die ( 'reset password error!'); ) ) ?>This code will reset the administrator password wordpress. Usage is simple, save it in your wordpress root directory of the implementation (in the 2.4x series version of the test).
[signature moderated Please read the Forum Rules]
Forum: Fixing WordPress
In reply to: Missing a temporary folder ???Your operating system?
Forum: Installing WordPress
In reply to: Install successful on IIS7 cannot loginAnd then the password is 123456
Forum: Installing WordPress
In reply to: Install successful on IIS7 cannot loginYou can password mysql will make some corrections. For example, MD5 (123456,32) = e10adc3949ba59abbe56e057f20f883e
Viewing 4 replies - 1 through 4 (of 4 total)