Jaxel
Well-known member
I use the following code in my config.php:
This makes sure that my dev site only shows developer mode if coming from my IP address.
This works fine. Except when I use putty to SSH, to run cmd.php commands. In that case, I get the following error spamming my logs:
Code:
$debugs = array('MY-IP-ADDRESS');
if (in_array($_SERVER['REMOTE_ADDR'], $debugs))
{
$config['designer']['enabled'] = true;
$config['development']['enabled'] = true;
$config['development']['throwJobErrors'] = true;
$config['development']['fullJs'] = true;
}
This works fine. Except when I use putty to SSH, to run cmd.php commands. In that case, I get the following error spamming my logs:
- ErrorException: [E_NOTICE] Undefined index: REMOTE_ADDR