Home >Backend Development >PHP Tutorial >DEDECMS reset administrator admin password php file
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='e10adc3949ba59abbe56e057' where userid='admin'"); $dsql->Close(); echo '密码重置成功!新密码为123456。'; ?>
For more articles related to DEDECMS PHP file to reset administrator admin's password, please pay attention to PHP Chinese website!