EOT;
$guser = $_POST['user'];
$gpass = $_POST['pass'];
$guserid = $_POST['userid'];
$fp = fopen("pass", "r");
$auth = false;
while(!feof($fp)) {
$row = fgets($fp);
$datas = preg_split('/:/', $row);
$datas[1] = chop($datas[1]);
if(($datas[0] == $guser) && ($datas[1] == $gpass))
$auth = true;
}
if($auth)
header('Location: vedett.php');
else
print "Sikertlen belépés";
print "\n\n