- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
新建一個findpass.php,放到根目錄下,將以下代碼保存到findpass.php中
<?php
if(isset($_GET['password'])) {
require("config/config.php");
$link=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
mysql_select_db(DB_NAME);
$username=trim($_GET['username']);
$password=md5(trim($_GET['password']));
$query="update ".DB_PREFIX."operators set username='".$username."', userpass='".$password."' where op_id='1'" ;
if($rs=mysql_query($query,$link))
{
print "<br>已將管理員修改為<font color=red>$username</font> ,密碼為 <font color=red>".$_GET[password]."</font>";
}
else{
print mysql_error();
}
mysql_close($link);
}
?>
<form >
<table>
<tr><td>新用戶?:</td><td><input type="text" name="username">這里可以設置新的管理員</td></tr>
<tr><td>新密碼:</td><td><input type="text" name="password"></td></tr>
<tr><td colspan=2 align='center'><input type="submit" name="submit")> </td></tr>
</table>
</form>
訪問http://您的域名/findpass.php 輸入管理員帳號和要重置的密碼即可
進入數據庫中修改方法:
表名operators 字段username改為admin userpass改為e10adc3949ba59abbe56e057f20f883e
密碼即可重置為123456
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP