Weasel
👄 I'd intercept me
Hi!
I am trying to alter the class.core.php file from Kryptos's RevCMS 1.9.9.9 at the maintance part, so when it haves someone's IP it skips the code. For now, I'm using this. But it isn't working and still redirects me to the maintance page.
I am using this script:
Anyone who can help me?
Thnx in advance.
I am trying to alter the class.core.php file from Kryptos's RevCMS 1.9.9.9 at the maintance part, so when it haves someone's IP it skips the code. For now, I'm using this. But it isn't working and still redirects me to the maintance page.
I am using this script:
PHP:
elseif($_GET['url'] != 'maintenance')
{
header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');
}
if($_SERVER['REMOTE_ADDR'] == $_SERVER['127.0.0.1'])
{
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
}
Anyone who can help me?
Thnx in advance.