wordpress密码找回工具

本文提供了一个使用PHP编写的WordPress密码重置工具,通过修改数据库中的用户密码字段来实现密码的快速更新。该工具适用于WordPress网站管理员进行紧急密码更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<?php 
/*你的数据库服务器地址,一般保持默认*/ 
$servername = "localhost:3306"; 
/*数据库用户名*/ 
$phpMyadminUser = ""; 
/*数据库密码*/ 
$phpMyadminKey = ""; 
/*数据库名称*/ 
$phpMyadminName = ""; 
/*wordpress数据表格前缀*/ 
$QZ = "love_"; 
/*你要设置的wordpress新密码*/ 
$NewKey = ""; 
/*你要设置新密码的用户名*/ 
$wordpress_User = ""; 
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"> 
<html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>wordpress密码找回工具_Veryhuo.COM</title> 
</head> 
<body> 
<?php 
error_reporting(0); 
if(!mysql_connect($servername,$phpMyadminUser,$phpMyadminKey)) 
{ 
echo "对不起,数据库链接出错。
"; 
} 
else 
{ 
echo "数据库链接成功。
"; 
mysql_select_db($phpMyadminName,mysql_connect($servername,$phpMyadminUser,$phpMyadminKey)); 
if (!mysql_query("update ".$QZ."users set user_pass='".md5($NewKey)."' where user_login='".$wordpress_User."'")) 
{ 
echo "对不起,修改密码失败。"; 
} 
else 
{ 
echo "修改密码成功。"; 
} 
} 
?> 
</body> 
</html>

 

转载于:https://my.oschina.net/u/3679192/blog/1626031

1.1版修正了1.0版在WordPress 3.0.1 出现 “您没有足够的权限访问这个页面” 的问题,请各位用户及时更新。 名称:Post Encryption And Decryption 版本: 1.1 作者:Ludou 更新:2010-05-17 功能:帮助您快速加密解密某个分类或某个标签下的所有的文章。加密为给你的文章添加密码,其他人必须知道密码才能阅读你加密的文章。解密为加密的逆过程,去除文章的密码,任何人均可阅读你的文章。 性能:本插件只会按照您的要求更改对应文章的密码信息,不会更改您博客上的其他数据。 下载:WordPress官方下载 安装方法: 下载插件,解压缩,你将会看到一个文件夹post-batch-encryption,然后将其放置到插件目录下,插件目录通常是 `wp-content/plugins/` 在后台对应的插件管理页激活该插件Post Encryption And Decryption 现在您可在管理后台 设置 -> Post Encryption And Decryption 进行文章的加密和解密 完成 说明: 加密更新成功后,在WordPress后台 – 文章,可以看到对应文章标题后面添加了“密码保护”字样. Plugin name: Post Encryption And Decryption Version:1.0 Author: Ludou Update: 2010-05-17 Description: Post Encryption And Decryption is an plugin designed to help you quickly encrypt or decrypt all posts of specific category or tag. Download: From WordPress Installation: Upload to your plugins folder, usually `wp-content/plugins/` and unzip the file, it will create a `wp-content/plugins/post-batch-encryption/` directory. Activate the plugin on the plugin screen. Go to Settings -> Post Encryption And Decryption Now you can encrypt or decrypt all posts of specific category or tag Done FAQ: 1. Will the plugin delete my data in the database? No! This plugin justs change the password of posts you choose.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值