예제 #1
0
         array_shift($checking_dirs);
     }
     $dir_checking = check_dirs_priv($checking_dirs);
     $templates_root = array('dwt' => ROOT_PATH . 'themes/default/', 'lbi' => ROOT_PATH . 'themes/default/library/');
     $template_checking = check_templates_priv($templates_root);
     $rename_priv = check_rename_priv();
     $disabled = '';
     if ($dir_checking['result'] === 'ERROR' || !empty($template_checking) || !empty($rename_priv)) {
         $disabled = 'disabled="true"';
     }
     $has_unwritable_tpl = 'yes';
     if (empty($template_checking)) {
         $template_checking = $_LANG['all_are_writable'];
         $has_unwritable_tpl = 'no';
     }
     $smarty->assign('config_info', get_config_info());
     $smarty->assign('dir_checking', $dir_checking['detail']);
     $smarty->assign('has_unwritable_tpl', $has_unwritable_tpl);
     $smarty->assign('template_checking', $template_checking);
     $smarty->assign('rename_priv', $rename_priv);
     $smarty->assign('disabled', $disabled);
     $smarty->display('checking.php');
     break;
     /* 获得版本列表 */
 /* 获得版本列表 */
 case 'get_ver_list':
     include_once ROOT_PATH . 'includes/cls_json.php';
     $json = new JSON();
     $cur_ver = get_current_version();
     $new_ver = get_new_version();
     $needup_ver_list = get_needup_version_list($cur_ver, $new_ver);
예제 #2
0
<?php

header('Content-type: text/html; charset=utf-8');
include "config.inc.php";
include "dbconnect.php";
include "function.inc.php";
error_reporting(0);
$type = $_GET["type"];
if ($type != '') {
    if ($type == "config") {
        $config_info = get_config_info();
        //            echo "<pre>";
        //            print_r($config_info);
        //            echo "<br>";
        $config_info = get_config_info();
        $json = json_encode($config_info);
        echo $json;
    }
}