DEDECMS reset administrator admin password php file

高洛峰
Release: 2023-03-05 08:52:01
Original
1516 people have browsed it

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;; 
?>
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template