Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     if ($this->tpl == '') {
         $this->tpl = bpBase::loadAppClass('template', 'template', 1);
     }
 }
Beispiel #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');
 }
Beispiel #3
0
 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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #5
0
	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();
		}
	}
Beispiel #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;
     }
 }
Beispiel #7
0
 function __construct()
 {
     parent::__construct();
 }
Beispiel #8
0
 public function __construct()
 {
     parent::__construct();
     $this->menus = $this->menus();
 }
Beispiel #9
0
 function __construct()
 {
     $this->update_log_db = bpBase::loadModel('update_log_model');
     parent::__construct();
     $this->exitWithoutAccess();
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess('system', 'manage');
 }
Beispiel #11
0
 function __construct()
 {
     parent::__construct();
     $this->exitWithoutAccess();
 }