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(); }
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'); }
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'); }
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'); }
static function index() { $plugin = new Plugin(); return $plugin->display('admin.html'); }
static function index() { $plugin = new Plugin(); return $plugin->display(); }
static function index() { $plugin = new Plugin(); $plugin->assign('config', $plugin->config()); return $plugin->display(); }