* - development : all errors will appear
* - production : silent error
* incoming ip has registered at
* $ip_range and $based_on_ip = true
$conditional_environment = 'production';
* Show error only for some ip
* Range IP will be impacted with
// 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;