Home >Backend Development >PHP Tutorial >DEDECMS reset administrator admin password php file

DEDECMS reset administrator admin password php file

高洛峰
高洛峰Original
2017-01-21 14:21:381542browse

DEDECMS PHP file to reset administrator admin's password

<?php 
/* 
  作用:DEDECMS 重置管理员admin的密码为123456,适用于DedeCms V5 
  方法:上传到服务器DEDE系统的目录,运行此文件,然后进入后台修改密码 
  注意:重置后请立刻删除此文件! 
  作者:itlearner 
*/ 
  require_once(dirname(__FILE__)."/include/config_base.php"); 
    $dsql = new DedeSql(false); 
    $dsql->ExecuteNoneQuery("Update `#@__admin` set pwd=&#39;e10adc3949ba59abbe56e057&#39; where userid=&#39;admin&#39;"); 
    $dsql->Close(); 
    echo  &#39;密码重置成功!新密码为123456。&#39;; 
?>

For more articles related to DEDECMS PHP file to reset administrator admin's password, please pay attention to PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn