예제 #1
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;
     }
 }
예제 #2
0
파일: base.php 프로젝트: 453111208/bbc
 public function set($route, $args)
 {
     $objMdlSeo = app::get('site')->model('seo');
     $seo = $objMdlSeo->getRow('param', array('route' => $route));
     if (!$seo) {
         $seo['param'] = $this->get_default_seo();
     }
     $param = $this->toreplace($seo['param'], $args);
     if ($param['seo_title']) {
         theme::setTitle($param['seo_title']);
     }
     if ($param['seo_keywords']) {
         theme::setKeywords($param['seo_keywords']);
     }
     if ($param['seo_content']) {
         theme::setDescription($param['seo_content']);
     }
     if ($param['seo_noindex']) {
         theme::setNoindex($param['seo_noindex']);
     }
     if ($param['seo_nofollow']) {
         theme::setNofollow($param['seo_nofollow']);
     }
 }