Is_Login(); // 权限校验 $this->Is_Power(); } /** * [Index 首页] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-26T19:13:29+0800 */ public function Index() { $this->assign('cache_type_list', lang('cache_type_list')); $this->display('Index'); } /** * [SiteUpdate 站点缓存更新] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-26T19:53:14+0800 */ public function SiteUpdate() { \base\FileUtil::UnlinkDir(TEMP_PATH); \base\FileUtil::UnlinkDir(DATA_PATH); \base\FileUtil::UnlinkFile(RUNTIME_PATH.'common~runtime.php'); $this->success('更新成功'); } /** * [TemplateUpdate 模板缓存更新] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-26T19:53:14+0800 */ public function TemplateUpdate() { // 模板 Cache \base\FileUtil::UnlinkDir(CACHE_PATH); $this->success('更新成功'); } /** * [ModuleUpdate 模块缓存更新] * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-02-26T19:53:14+0800 */ public function ModuleUpdate() { $this->success('更新成功'); } } ?>