typecho 密码重置

373 阅读1分钟

研究代码时发现 /** 载入配置支持 */ if (!defined('__TYPECHO_ROOT_DIR__') && !@include_once 'config.inc.php') { file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File'); exit; } 这是index.php中的代码,可以看出如果没有定义 TYPECHO_ROOT_DIR 或者不存在 config.inc.php 就会进入安装文件,于是去宝塔把 'config.inc.php' 这个文件删除 完美解决!