Esempio n. 1
0
File: T.php Progetto: ph7pal/mei
 public function init()
 {
     if (zmf::config('mobile')) {
         if (tools::checkmobile($this->platform)) {
             Yii::app()->theme = 'mobile';
             $this->isMobile = 'yes';
         }
     }
 }
Esempio n. 2
0
File: T.php Progetto: ph7pal/naodong
 public function init()
 {
     //zh_tw\en_us
     Yii::app()->language = 'zh_cn';
     if (zmf::config('mobile')) {
         if (tools::checkmobile($this->platform)) {
             $this->isMobile = 'yes';
         }
     }
 }
Esempio n. 3
0
File: T.php Progetto: ph7pal/wedding
 public function init()
 {
     Yii::app()->language = 'zh_cn';
     if (zmf::config('mobile')) {
         if (tools::checkmobile($this->platform)) {
             Yii::app()->theme = 'frozen';
             $this->isMobile = 'yes';
             $this->layout = '//layouts/mobile';
             $this->currentModule = 'frozen';
         }
     }
     if (zmf::uid()) {
         $this->uid = zmf::uid();
         $userInfo = Users::getUserInfo($this->uid);
         $this->truename = $userInfo['truename'];
         $this->userInfo = $userInfo;
     }
     self::_referer();
 }