예제 #1
0
파일: passport.php 프로젝트: 453111208/bbc
 public function __construct()
 {
     parent::__construct();
     kernel::single('base_session')->start();
     $this->setLayoutFlag('cart');
     $this->passport = kernel::single('topm_passport');
 }
예제 #2
0
파일: cart.php 프로젝트: 453111208/bbc
 public function __construct(&$app)
 {
     parent::__construct();
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topm_ctl_passport@signin')->send();
         exit;
     }
     $this->setLayoutFlag('cart');
 }
예제 #3
0
 public function __construct($app)
 {
     parent::__construct();
     $this->app = $app;
     $this->setLayoutFlag('shopcenter');
     if (!$this->__checkShop(input::get('shop_id'))) {
         $pagedata['shopid'] = input::get('shop_id');
         $this->page('topm/shop/error.html', $pagedata)->send();
     }
 }
예제 #4
0
파일: trade.php 프로젝트: 453111208/bbc
 public function __construct(&$app)
 {
     parent::__construct();
     theme::setNoindex();
     theme::setNoarchive();
     theme::setNofolow();
     theme::prependHeaders('<meta name="robots" content="noindex,noarchive,nofollow" />\\n');
     $this->title = app::get('topm')->_('订单中心');
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topm_ctl_passport@signin')->send();
         exit;
     }
 }
예제 #5
0
파일: member.php 프로젝트: 453111208/bbc
 public function __construct(&$app)
 {
     parent::__construct();
     kernel::single('base_session')->start();
     if (!$this->action) {
         $this->action = 'index';
     }
     $this->action_view = $this->action . ".html";
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topm_ctl_passport@signin')->send();
         exit;
     }
     $this->limit = 4;
     $this->passport = kernel::single('topm_passport');
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('passport');
 }
예제 #7
0
파일: item.php 프로젝트: 453111208/bbc
 public function __construct($app)
 {
     parent::__construct();
     $this->setLayoutFlag('product');
 }
예제 #8
0
파일: category.php 프로젝트: 453111208/bbc
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('topics');
 }