You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
<?php
|
|
/*
|
|
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
|
|
* @license http://www.dzzoffice.com/licenses/license.txt
|
|
* @package DzzOffice
|
|
* @link http://www.dzzoffice.com
|
|
* @author zyx(zyx@dzz.cc)
|
|
*/
|
|
if (!defined('IN_DZZ') || !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();
|
|
}
|
|
}
|
|
include template('updatecache');
|
|
?>
|