I need to perform a redirect if user comes from another address than bonaca... or if he typed another pass than 1405 or 999.
The following code is not working properly.
$referrer = $_SERVER['HTTP_REFERER'];
if (!(preg_match("/bonaca.net46.net/",$referrer))
or
!($_POST['pass'] == 1405
or
!$_POST['pass'] == 999)
{
header('Location: index.php');
};