public static function EnvironmentDetectByIps () {
		if (static::$environment === NULL) {
			$request = & \MvcCore\Application::GetInstance()->GetRequest();
			$serverAddress = $request->GetServerIp();
			$remoteAddress = $request->GetClientIp();
			if ($serverAddress == $remoteAddress) {
				static::$environment = static::ENVIRONMENT_DEVELOPMENT;
			} else {
				static::$environment = static::ENVIRONMENT_PRODUCTION;
			}
		}
		return static::$environment;
	}
public static function EnvironmentDetectByIps () {
		if (static::$environment === NULL) {
			$request = & \MvcCore\Application::GetInstance()->GetRequest();
			$serverAddress = $request->GetServerIp();
			$remoteAddress = $request->GetClientIp();
			if ($serverAddress == $remoteAddress) {
				static::$environment = static::ENVIRONMENT_DEVELOPMENT;
			} else {
				static::$environment = static::ENVIRONMENT_PRODUCTION;
			}
		}
		return static::$environment;
	}
public static function EnvironmentDetectByIps ( ) { if ( static :: $ environment === NULL ) { $ request = & \ MvcCore \ Application :: GetInstance ( ) -> GetRequest ( ) ; $ serverAddress = $ request -> GetServerIp ( ) ; $ remoteAddress = $ request -> GetClientIp ( ) ; if ( $ serverAddress == $ remoteAddress ) { static :: $ environment = static :: ENVIRONMENT_DEVELOPMENT ; } else { static :: $ environment = static :: ENVIRONMENT_PRODUCTION ; } } return static :: $ environment ; }
First environment value setup - by server and client IP address.
@return string Detected environment string.
First environment value setup - by server and client IP address .