Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 18.188.113.19
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : env.php
<?php
/**
 * Supported mode list:
 * - development : all errors will appear
 * - production : silent error
 */
$env = 'production';

/**
 * Environment mode if
 * incoming ip has registered at
 * $ip_range and $based_on_ip = true
 */
$conditional_environment = 'production';

/**
 * Show error only for some ip
 * based on ip range
 */
$based_on_ip = false;

/**
 * Range IP will be impacted with
 * environment mode
 */
$range_ip = [''];

if ($based_on_ip) {
    // For load balancing or Reverse Proxy
    if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && in_array($_SERVER['HTTP_X_FORWARDED_FOR'], $range_ip)) {
        $env = $conditional_environment;
    } else if (in_array($_SERVER['REMOTE_ADDR'], $range_ip)) {
        $env = $conditional_environment;
    }   
}
© 2025 GrazzMean-Shell