real_escape_string($_POST['username']); $password=$db->real_escape_string($_POST['password']); //$_SESSION['priv']=$priv; $_SESSION['username']=$username; $_SESSION['password']=$password; //Remember me if ($chkremember) { $_SESSION["remember"]=1; } //$priv=checkuser($username,$password,0); $priv = $site->get_priv(); echo ""; $REMOTE_ADDR = getenv("REMOTE_ADDR"); $to="a.s.rogers@qwic.co.uk"; $subject="New partnershipUK Login - $username Priv - $priv"; $message="New PartnershipUK Login from - $username @ $REMOTE_ADDR "; mail($to,$subject,$message); $sql="INSERT INTO stats (username,priv, remotehost) VALUES ('$username','$priv','$REMOTE_ADDR')"; $result1 = $db->query($sql); if ($debug) {echo $sql."
";} if ($db_worktops->errno) {echo $db_worktops->errno.": ".$db_worktops->error."
";} ?> "; ?> Log in 0 && ($_COOKIE['testcookie']=="OK")) { ?> You are logged in Cookies must be enabled

";} else { ?>
Login
Email
Password

Remember me

Please remind me of my password