static function is_online() { if (self::$__online === null) { self::$__online = file_exists(ROOT_DIR . '/config/install.lock.php'); } return self::$__online; }
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; }