示例#1
0
 static function index()
 {
     $plugin = new Plugin();
     $config = $plugin->config();
     $plugin->assign('config', $config);
     $GLOBALS['_fields']['id'] = C('COOKIE_PREFIX') . 'guestbook';
     $GLOBALS['_fields']['title'] = $config['title'];
     $GLOBALS['_fields']['description'] = $config['description'];
     $GLOBALS['_fields']['mid'] = 'admin';
     if ($config['tpltype'] == 1) {
         $path = strtr($config['tplpath'], array('{style}' => './Public/Tpl/' . $GLOBALS['cfg_df_style'] . '/'));
         return $plugin->display($path);
     }
     return $plugin->display();
 }
示例#2
0
 static function index()
 {
     $plugin = new Plugin();
     global $cfg_rewrite;
     $plugin->assign('cfg_rewrite', $cfg_rewrite);
     $plugin->assign('rewritefile', is_file('.htaccess'));
     return $plugin->display('admin.html');
 }
示例#3
0
 static function index()
 {
     $plugin = new Plugin();
     $model = M('arctype');
     $list = $model->field("id,typename,concat(path,'-',id) as bpath")->order('bpath')->select();
     $plugin->assign('list', $list);
     return $plugin->display('admin.html');
 }
示例#4
0
 static function arctype()
 {
     header("Content-type: text/xml");
     $plugin = new Plugin();
     $tid = isset($_GET['tid']) ? (int) $_GET['tid'] : 0;
     if ($tid == 0) {
         return $plugin->error('request error!');
     }
     $model = M('arctype');
     $list = $model->where('id=' . $tid)->find();
     if (!$list) {
         return $plugin->error('栏目ID不存在!');
     }
     $list['typeid'] = $list['id'];
     $GLOBALS['_fields'] = $list;
     return $plugin->display('arctype.html');
 }
示例#5
0
 static function index()
 {
     $plugin = new Plugin();
     return $plugin->display('admin.html');
 }
示例#6
0
 static function index()
 {
     $plugin = new Plugin();
     return $plugin->display();
 }
示例#7
0
 static function index()
 {
     $plugin = new Plugin();
     $plugin->assign('config', $plugin->config());
     return $plugin->display();
 }