Exemplo n.º 1
0
if(!defined('IN_UCHOME') || !defined('IN_ADMINCP')) {
	exit('Access Denied');
}

//权限
if(!checkperm('manageapp')) {
	cpmessage('no_authority_management_operation');
}

if(submitcheck('appsubmit')) {
	include_once S_ROOT.'./source/function_cache.php';

	data_set('relatedtag', $_POST['relatedtag']);
	tagtpl_cache();
	app_cache();//应用列表缓存
	cpmessage('do_success', 'admincp.php?ac=app');
}

if(empty($_GET['op'])) {
	include_once S_ROOT.'./uc_client/client.php';
	$applist = uc_app_ls();
	$relatedtag = data_get('relatedtag');
	$relatedtag = unserialize($relatedtag);
	if(empty($relatedtag)) $relatedtag = array();
}

//更新tag模板文件
function tagtpl_cache() {
	$relatedtag = unserialize(data_get('relatedtag'));
	if(empty($relatedtag)) $relatedtag = array();
Exemplo n.º 2
0
 //ϵͳ����
 if (empty($_POST['cachetype']) || in_array('database', $_POST['cachetype'])) {
     config_cache();
     usergroup_cache();
     profilefield_cache();
     profield_cache();
     censor_cache();
     block_cache();
     eventclass_cache();
     magic_cache();
     click_cache();
     task_cache();
     ad_cache();
     creditrule_cache();
     userapp_cache();
     app_cache();
     network_cache();
 }
 //ģ����뻺��
 if (empty($_POST['cachetype']) || in_array('tpl', $_POST['cachetype'])) {
     tpl_cache();
 }
 //ģ�黺��
 if (empty($_POST['cachetype']) || in_array('block', $_POST['cachetype'])) {
     block_data_cache();
 }
 //��㿴������
 if (empty($_POST['cachetype']) || in_array('network', $_POST['cachetype'])) {
     $fiels = sreaddir(S_ROOT . './data', array('txt'));
     foreach ($fiels as $value) {
         @unlink(S_ROOT . './data/' . $value);
Exemplo n.º 3
0
                 $query = '';
             } else {
                 if (!preg_match("#^(\\/\\/|--)#", $line)) {
                     $query .= $line;
                 }
             }
         }
         fclose($fp);
     } else {
     }
     //锁定安装程序
     $fp = fopen($insLockfile, 'w');
     fwrite($fp, 'ok');
     fclose($fp);
     //预先加载应用,并删除缓存
     app_cache($cfg_cmspath);
     include './templates/step-5.html';
     exit;
 } else {
     if ($step == 10) {
         header("Pragma:no-cache\r\n");
         header("Cache-Control:no-cache\r\n");
         header("Expires:0\r\n");
         $conn = @mysql_connect($dbhost, $dbuser, $dbpwd);
         if ($conn) {
             if (empty($dbname)) {
                 echo "<font color='green'>信息正确</font>";
             } else {
                 $info = mysql_select_db($dbname, $conn) ? "<font color='red'>数据库已经存在,系统将覆盖数据库</font>" : "<font color='green'>数据库不存在,系统将自动创建</font>";
                 echo $info;
             }