Exemple #1
0
<?php

include_once dirname(__FILE__) . '/function.php';
$data['ci_top_title'] = '添加分类';
if (!is_login()) {
    info_page('请登录后查看');
}
if (!is_admin()) {
    info_page('你没有权限进行操作!');
}
$tname = trim(z(v('tname')));
if (empty($tname)) {
    info_page('分类名称不能为空!');
}
$config_data['titles'] = app_config('titles');
$config_data['titles'][] = $tname;
save_app_config($config_data);
info_page('添加成功!', '/app/native/' . $GLOBALS['app'] . '/feed', '点击这里返回!');
Exemple #2
0
 function appset($folder)
 {
     $this->check_admin();
     $this->admin->save_appsetting($folder);
     $key = $_POST;
     unset($key['u2_left_nav']);
     save_app_config($key, $folder);
     info_page(_text('admin_appset_success'), '/admin/app_settings/' . $folder);
 }