重置WP密码

<?php //password resetter include("wp-config.php"); include("wp-blog-header.php"); if (empty($_POST['emergency_pass'])) { ?> <form method="post">  set admin password: <input name="emergency_pass" type="password" />  <input type="submit" /> </form> <?php } else { $sql = "UPDATE ".$wpdb->users." SET user_pass = '".md5($_POST['emergency_pass'])."' WHERE User_login = 'admin'"; $link = $wpdb->query($sql); wp_redirect('wp-login.php'); exit(); }   ?> 将以上代码保存为php文档,可以任意取名,比如modify-password.php,然后上传至博客空间的根目录(其他目录也可以),最后用浏览器访问http://你博客域名/上传此文件的目录/modify-password.php,然后按照页面提示修改填写自己新的密码。最后别忘了把此文件改名或者删除哦!

Posted in: 免费资源 by 大辉哥007 No Comments

安装WordPress提示Warning: Cannot modify header information

Warning: Cannot modify header information - headers already sent by (output started at /home/wzn543/public_html/wp-config.php:1) in /home/wzn543/public_html/wp-login.php on line 290 Warning: Cannot modify header information - headers already sent by (output started at /home/wzn543/public_html/wp-config.php:1) in /home/wzn543/public_html/wp-login.php on line 302 Warning: Cannot modify header information - headers already sent by (output started at /home/wzn543/public_html/wp-config.php:1) in /home/wzn543/public_html/wp-includes/pluggable.php on [...]

Posted in: 免费资源 by 大辉哥007 No Comments