コード例 #1
0
ファイル: Dashboard.php プロジェクト: skyling/stblog
 /**
  * 构造函数
  */
 function __construct()
 {
     parent::__construct();
     $this->_data['page_title'] = '网页概要';
     $this->_data['parentPage'] = 'dashboard';
     $this->_data['currentPage'] = 'dashboard';
 }
コード例 #2
0
ファイル: profile.php プロジェクト: Ethan0814/STBlog
 /**
  * 构造函数
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_data['page_title'] = '个人设置';
     $this->_data['parentPage'] = 'dashboard';
     $this->_data['currentPage'] = 'profile';
 }
コード例 #3
0
ファイル: dashboard.php プロジェクト: Ethan0814/STBlog
 /**
  * 构造函数
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** 页面导航栏和标题 */
     $this->_data['page_title'] = '网站概要';
     $this->_data['parentPage'] = 'dashboard';
     $this->_data['currentPage'] = 'dashboard';
 }
コード例 #4
0
ファイル: comments.php プロジェクト: Ethan0814/STBlog
 /**
  * 构造函数
  * 
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** 权限确认 */
     $this->auth->exceed('contributor');
     $this->load->helper('json');
     $this->_data['parentPage'] = 'manage-posts';
     $this->_data['currentPage'] = 'manage-comments';
 }
コード例 #5
0
ファイル: medias.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth->exceed('contributor');
     /** common data */
     $this->_data['parentPage'] = 'manage-posts';
     $this->_data['currentPage'] = 'manage-medias';
     $this->_data['page_title'] = '管理附件';
 }
コード例 #6
0
ファイル: metas.php プロジェクト: Ethan0814/STBlog
 public function __construct()
 {
     parent::__construct();
     /** privilege confirm */
     $this->auth->exceed('editor');
     /** 标题 */
     $this->_data['page_title'] = '分类与标签';
     $this->_data['parentPage'] = 'manage-posts';
     $this->_data['currentPage'] = 'manage-metas';
 }
コード例 #7
0
ファイル: themes.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** privilege confirm */
     $this->auth->exceed('administrator');
     $this->_current_theme = setting_item('current_theme');
     $this->load->model('themes_mdl');
     $this->_data['parentPage'] = 'dashboard';
     $this->_data['currentPage'] = 'themes';
 }
コード例 #8
0
ファイル: users.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** privilege confirm */
     $this->auth->exceed('administrator');
     /** common data */
     $this->_data['parentPage'] = 'manage-posts';
     $this->_data['currentPage'] = 'manage-users';
     $this->_data['page_title'] = '管理用户';
 }
コード例 #9
0
ファイル: posts.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @var array
  */
 public function __construct()
 {
     parent::__construct();
     /** 权限确认 */
     $this->auth->exceed('contributor');
     /** 导航栏和标题 */
     $this->_data['parentPage'] = 'post';
     $this->_data['currentPage'] = 'post';
     $this->_data['page_title'] = '管理文章';
 }
コード例 #10
0
ファイル: settings.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** privilege confirm */
     $this->auth->exceed('administrator');
     $this->load->model('settings_mdl');
     /** load default settings from db cache */
     $this->_load_default_settings();
     $this->_data['parentPage'] = 'manage-settings';
     //var_dump($this->_data);
 }
コード例 #11
0
ファイル: plugins.php プロジェクト: Ethan0814/STBlog
 /**
  * 解析函数
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /** privilege confirm */
     $this->auth->exceed('administrator');
     $this->utility->clear_db_cache();
     $this->load->model('plugins_mdl');
     /** common data */
     $this->_data['parentPage'] = 'dashboard';
     $this->_data['currentPage'] = 'plugins';
     $this->_data['page_title'] = '插件管理';
 }