Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../slims
File: env.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Supported mode list:
[2] Fix | Delete
* - development : all errors will appear
[3] Fix | Delete
* - production : silent error
[4] Fix | Delete
*/
[5] Fix | Delete
$env = 'production';
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Environment mode if
[9] Fix | Delete
* incoming ip has registered at
[10] Fix | Delete
* $ip_range and $based_on_ip = true
[11] Fix | Delete
*/
[12] Fix | Delete
$conditional_environment = 'production';
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Show error only for some ip
[16] Fix | Delete
* based on ip range
[17] Fix | Delete
*/
[18] Fix | Delete
$based_on_ip = false;
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Range IP will be impacted with
[22] Fix | Delete
* environment mode
[23] Fix | Delete
*/
[24] Fix | Delete
$range_ip = [''];
[25] Fix | Delete
[26] Fix | Delete
if ($based_on_ip) {
[27] Fix | Delete
// For load balancing or Reverse Proxy
[28] Fix | Delete
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER) && in_array($_SERVER['HTTP_X_FORWARDED_FOR'], $range_ip)) {
[29] Fix | Delete
$env = $conditional_environment;
[30] Fix | Delete
} else if (in_array($_SERVER['REMOTE_ADDR'], $range_ip)) {
[31] Fix | Delete
$env = $conditional_environment;
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function