PDA

View Full Version : Debug mode


KURTZ
04-16-2008, 05:01 PM
i know that the following code opens a debug mode only for who has that IP

if($_SERVER['REMOTE_ADDR'] == 'PUT.UR.IP.ERE')
{
$config['Misc']['debug'] = true;
}

but i need a code for a usergroup, it's possible?

TIA

Opserty
04-16-2008, 07:04 PM
User Information isn't fetched this early on in the script so it is not possible to do any kind of comparison. (You'd need to fetch it from the database but obviously the configuration is required for the database to connect and so you can't)