public function __construct() { //登录检测 Util::instance('Member')->isLogin(); parent::__construct(); $this->db = new MemberAddress(); }
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'); } }
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'); } }
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'); } }
public function __construct() { //定义目录 define('__TEMPLATE__', "theme/default/mobile"); parent::__construct(); }
public function __construct() { parent::__construct(); $this->db = new Material(); }
public function __construct() { parent::__construct(); $this->db = new SiteSetting(); $this->id = $this->db->where('siteid', SITEID)->pluck('id'); }
public function __construct() { parent::__construct(); // $this->db = new Ticket(); View::with('ticket_name', service('ticket')->getTitleByType(q('get.type'))); }
public function __construct() { parent::__construct(); $this->member = new Member(); service('member')->isLogin(); }
public function __construct() { parent::__construct(); Util::instance('member')->isLogin(); }
public function __construct() { parent::__construct(); $this->member = new Member(); }
public function __construct() { parent::__construct(); $this->db = new \system\model\Button(); }
public function __construct() { parent::__construct(); }