i have a simple if statement, but it takes too long to execute. when if (!$permissions['check']) is true it takes about 20 seconds to finally redirect to the url.. but the last else statement happens instantly when true. am i missing something?
if (!$site['active'] AND THIS_SCRIPT != 'login')
{
if (!$permissions['check'])
{
header('Location: http://' . $_SERVER['HTTP_HOST'] . '/site/shutdown');
exit;
}
else
{
// do something ..
}
}