예제 #1
0
파일: passport.php 프로젝트: 453111208/bbc
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('passport');
     kernel::single('base_session')->start();
     $this->passport = kernel::single('topc_passport');
 }
예제 #2
0
파일: cart.php 프로젝트: 453111208/bbc
 public function __construct(&$app)
 {
     parent::__construct();
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topc_ctl_passport@signin')->send();
         exit;
     }
 }
예제 #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('topc/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('topc')->_('订单中心');
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topc_ctl_passport@signin')->send();
         exit;
     }
 }
예제 #5
0
 public function __construct($app)
 {
     parent::__construct();
     $this->app = $app;
     $this->setLayoutFlag('shopcenter');
     if (!$this->__checkShop(input::get('shop_id'))) {
         //= input::get('shop_id');
         $shopid = input::get('shop_id');
         $shopdata = app::get('topc')->rpcCall('shop.get', array('shop_id' => $shopid));
         $pagedata['shopid'] = $shopid;
         $pagedata['is_center'] = $shopdata["is_shopcenter"];
         $pagedata['status'] = $shopdata["status"];
         $this->page('topc/shop/error.html', $pagedata)->send();
     }
 }
예제 #6
0
파일: needgoods.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('topc_ctl_passport@signin')->send();
         exit;
     }
     $this->limit = 20;
     $this->passport = kernel::single('topc_passport');
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('passport');
 }
예제 #8
0
파일: topics.php 프로젝트: 453111208/bbc
 public function __construct($app)
 {
     parent::__construct();
     $this->setLayoutFlag('topics');
 }
예제 #9
0
파일: paycenter.php 프로젝트: 453111208/bbc
 public function __construct($app)
 {
     parent::__construct();
     $this->setLayoutFlag('paycenter');
     // 检测是否登录
 }