47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
/*
|
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
|
* @license https://www.oaooa.com/licenses/
|
|
*
|
|
* @link https://www.oaooa.com
|
|
* @author zyx(zyx@oaooa.com)
|
|
*/
|
|
if (!defined('IN_OAOOA') || !defined('IN_ADMIN')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
$oparr = array('updatecache', 'database', /*'security','patch','update',*/
|
|
'cron', 'log');
|
|
$leftmenu = array();
|
|
$op = $_GET['op'];
|
|
foreach ($oparr as $key => $value) {
|
|
$leftmenu[$value] = array('title' => lang($value), 'active' => '');
|
|
if ($value == $op)
|
|
$leftmenu[$value]['active'] = 'class="active"';
|
|
}
|
|
|
|
include libfile('function/cache');
|
|
|
|
$navtitle = lang('updatecache') . ' - ' . lang('admin_navtitle');
|
|
$step = max(1, intval($_GET['step']));
|
|
|
|
if ($step == 1) {
|
|
} elseif ($step == 2) {
|
|
$type = implode('_', (array)$_GET['type']);
|
|
|
|
} elseif ($step == 3) {
|
|
$type = explode('_', $_GET['type']);
|
|
if (in_array('data', $type)) {
|
|
updatecache();
|
|
}
|
|
if (in_array('tpl', $type) && $_G['config']['output']['tplrefresh']) {
|
|
cleartemplatecache();
|
|
}
|
|
if (in_array('memory', $type)) {
|
|
//清空内存缓存
|
|
C::memory()->clear();
|
|
}
|
|
}
|
|
include template('updatecache');
|
|
?>
|