Update your details
if($found){ include("merseyside-php.htm"); } else{ include("merseyside-login.htm"); } ?>
$UserName = $_REQUEST["UserName"];
$PassWord = $_REQUEST["PassWord"];
$found=0;
$action = $_REQUEST["action"];
$message='';
if($action == 'login'){
if(!$fd = fopen("./cgi-script/csFormbuilder6/qryWMIAccessCodes.txt","r")){
print "Error opening qryWMIAccessCodes.txt
";
exit();
}
while(!feof($fd)){
$l = fgets($fd);
chop($l);
$f = split(",",$l);
$f[0] =preg_replace("/\"/","",$f[0]);
$f[1] =preg_replace("/\"/","",$f[1]);
$f[1] =preg_replace("/\.00$/","",$f[1]);
$f[1] =preg_replace("/[^A-Za-z0-9]/","",$f[1]);
#print "($UserName == ".$f[0].")&&($PassWord == ".$f[1]."
";
if(($UserName == $f[0])&&($PassWord == $f[1])){
$found=1;
$last;
}
}
fclose($fd);
if($found){
session_start();
$_SESSION['UserName'] = $UserName;
$_SESSION['PassWord'] = $PassWord;
//include("Merseyside-php.htm");
//exit();
}
else{
$message="
Invalid username or password
";
}
}
?>
|
Home Section |
if($found){ include("merseyside-php.htm"); } else{ include("merseyside-login.htm"); } ?>