Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     global $_G;
     $_G['siteurl'] = substr($_G['siteurl'], 0, -16);
     $_G['siteroot'] = substr($_G['siteroot'], 0, -16);
     $this->rootUrl = Yii::app()->getBaseUrl(true);
     $this->dzRootUrl = substr($this->rootUrl, 0, -16);
     loadcache('plugin');
     loadcache(MOBCENT_DZ_PLUGIN_ID);
     DbUtils::init(false);
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->rootUrl = Yii::app()->getBaseUrl(true);
     $this->dzRootUrl = substr($this->rootUrl, 0, -16);
     // $_GET['accessToken'] = '8d5478c77477933169ab8cfde10b5'; $_GET['accessSecret'] = 'a57002aab240f3ff831d868b623ff';
     // $_GET['accessToken'] = 'a4f26a1de6a3fd60e133075eecc73'; $_GET['accessSecret'] = '35394ccf5119fc6a01d2dc3c2786a';
     // 初始化数据库连接
     DbUtils::init($this->initDzDb);
     $this->mobcentDiscuzApp = new MobcentDiscuzApp();
     $this->mobcentDiscuzApp->init();
 }