예제 #1
0
 public function __construct()
 {
     //登录检测
     Util::instance('Member')->isLogin();
     parent::__construct();
     $this->db = new MemberAddress();
 }
예제 #2
0
파일: manage.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->web = new Web();
     $this->webid = q('get.webid');
     if ($this->webid && !$this->web->where('siteid', SITEID)->where('id', $this->webid)->get()) {
         message('站点不存在', 'back', 'error');
     }
 }
예제 #3
0
파일: slide.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->web = new Web();
     $this->webSlide = new WebSlide();
     //官网编号
     $this->webid = Request::get('webid');
     if (!$this->web->where('id', $this->webid)->get()) {
         message('你访问的官网不存在', 'back', 'error');
     }
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->cid = Request::get('cid');
     $this->webCategory = new WebCategory();
     $this->webArticle = new WebArticle();
     if ($this->cid && !$this->webCategory->where('siteid', SITEID)->where('cid', $this->cid)->get()) {
         message('栏目不存在或不属于该站点', 'back', 'error');
     }
     //站点检测
     $web = Db::table('web')->where('siteid', SITEID)->get();
     if (empty($web)) {
         message('需要添加站点才可以执行操作', site_url('manage/SitePost'), 'error');
     }
 }
예제 #5
0
파일: site.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     //定义目录
     define('__TEMPLATE__', "theme/default/mobile");
     parent::__construct();
 }
예제 #6
0
파일: site.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->db = new Material();
 }
예제 #7
0
파일: site.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->db = new SiteSetting();
     $this->id = $this->db->where('siteid', SITEID)->pluck('id');
 }
예제 #8
0
파일: site.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     //		$this->db = new Ticket();
     View::with('ticket_name', service('ticket')->getTitleByType(q('get.type')));
 }
예제 #9
0
파일: entry.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->member = new Member();
     service('member')->isLogin();
 }
예제 #10
0
파일: info.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     Util::instance('member')->isLogin();
 }
예제 #11
0
파일: reg.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->member = new Member();
 }
예제 #12
0
파일: site.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
     $this->db = new \system\model\Button();
 }
예제 #13
0
파일: credit.php 프로젝트: houdunwang/hdcms
 public function __construct()
 {
     parent::__construct();
 }