コード例 #1
0
ファイル: address.php プロジェクト: houdunwang/hdcms
 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
ファイル: content.php プロジェクト: houdunwang/hdcms
 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();
 }