Ejemplo n.º 1
0
 public function run()
 {
     if (MobcentDiscuz::getDiscuzVersion() >= 'X3.1') {
         $this->_run_x31();
     } else {
         $this->_run();
     }
 }
Ejemplo n.º 2
0
 public function actionPluginInfo()
 {
     $hasPortal = WebUtils::getDzPluginAppbymeAppConfig('portal_allow_open');
     $hasPortal = $hasPortal == 1 ? 1 : 0;
     echo WebUtils::jsonEncode(array('mobcent_version' => MOBCENT_VERSION, 'mobcent_release' => MOBCENT_RELEASE, 'mobcent_release_debug' => MOBCENT_RELEASE_DEBUG, 'discuz_version' => MobcentDiscuz::getDiscuzVersion(), 'mobcent_discuz_version' => MobcentDiscuz::getMobcentDiscuzVersion(), 'has_portal' => $hasPortal));
 }