示例#1
0
文件: kernel.php 项目: 453111208/bbc
 static function is_online()
 {
     if (self::$__online === null) {
         self::$__online = file_exists(ROOT_DIR . '/config/install.lock.php');
     }
     return self::$__online;
 }
示例#2
0
 static function is_online()
 {
     if (self::$__online === null) {
         if (ECAE_MODE) {
             if (file_exists(ROOT_DIR . '/config/config.php') && $__require_config === null) {
                 require ROOT_DIR . '/config/config.php';
                 $__require_config = true;
             } else {
                 self::$__online = false;
                 return self::$__online;
             }
             $ecos_install_lock = app::get('base')->getConf('ecos.install.lock');
             empty($ecos_install_lock) ? self::$__online = false : (self::$__online = true);
         } else {
             self::$__online = file_exists(ROOT_DIR . '/config/config.php');
         }
     }
     return self::$__online;
 }