예제 #1
0
 function __construct()
 {
     parent::__construct();
     if ($this->tpl == '') {
         $this->tpl = bpBase::loadAppClass('template', 'template', 1);
     }
 }
예제 #2
0
 function __construct()
 {
     //$this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $checkAccess = $this->exitWithoutAccess('system', 'manage');
     $this->dbConfig = array('default' => array('hostname' => DB_HOSTNAME, 'database' => DB_NAME, 'username' => DB_USER, 'password' => DB_PASSWORD, 'tablepre' => TABLE_PREFIX, 'charset' => DB_CHARSET, 'type' => 'mysql', 'debug' => DEBUG, 'pconnect' => 0, 'autoconnect' => 0));
     bpBase::loadSysClass('db_factory');
     $this->db = db_factory::get_instance($this->dbConfig)->get_database('default');
 }
예제 #3
0
파일: update.php 프로젝트: liuguogen/weixin
 function __construct()
 {
     $this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $this->exitWithoutAccess();
     if ($this->updateArr == '') {
         include 'updateFile' . DIRECTORY_SEPARATOR . 'list.php';
         $this->updateArr = $update_arr;
     }
 }
예제 #4
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess();
     $this->channel_db = bpBase::loadModel('channel_model');
     $this->channelObj = bpBase::loadAppClass('channelObj', 'channel');
     if (isset($_GET['siteid']) && $_GET['siteid'] != $this->siteid) {
         exit;
     }
 }
예제 #5
0
파일: m_template.php 프로젝트: kevicki/pig
	function __construct() {
		parent::__construct();
		$this->exitWithoutAccess('template','manage');
		$this->template_db = bpBase::loadModel('template_model');
		$this->templateClass=bpBase::loadAppClass('template','template');
		$this->cats=$this->templateClass->cats();
		if (isset($_GET['siteid'])&&intval($_GET['siteid'])!=$this->siteid){
			exit();
		}
	}
예제 #6
0
 function __construct()
 {
     $this->article_db = bpBase::loadModel('article_model');
     $this->content_db = bpBase::loadModel('content_model');
     $this->articleObj = bpBase::loadAppClass('articleObj', 'article');
     parent::__construct();
     $this->exitWithoutAccess();
     if (isset($_GET['site']) && $_GET['site'] != $this->siteid) {
         exit;
     }
 }
예제 #7
0
파일: m_user.php 프로젝트: ailingsen/pigcms
 function __construct()
 {
     parent::__construct();
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->menus = $this->menus();
 }
예제 #9
0
 function __construct()
 {
     $this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $this->exitWithoutAccess();
 }
예제 #10
0
파일: m_sina.php 프로젝트: liuguogen/weixin
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess('system', 'manage');
 }
예제 #11
0
파일: tool.php 프로젝트: ailingsen/pigcms
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess();
 }