Back to main page";
}
}
if (isset($_GET["proc"]) and $_GET["proc"]=='login') {
$kapcsolat = mysql_connect("localhost","abcd","abcd") or die("Failed to connect");
mysql_select_db("abcd") or die("Failed to select database");
$keres1 = "SELECT p_ini, p_last, p_id FROM people WHERE p_email='".$_POST['uemail']."' AND p_pw='".$_POST['upassword']."'";
$eredmeny1 = mysql_query($keres1) or die("error in query 1");
if (mysql_num_rows($eredmeny1)==0) {
$message="You typed your name or password inccorectly. Please try again,";
} else {
while ($sor1=mysql_fetch_array($eredmeny1)) {
$username=$sor1['p_ini']." ".$sor1['p_last'];
$uid=$sor1['p_id'];
}
$sessionid = md5( uniqid( rand () ) );
$keres2 = "INSERT INTO IEC_session (session_id, id, start) VALUES ('".$sessionid."','".$uid."','".date("Y-m-d H:i:s")."')";
$eredmeny2 = mysql_query($keres2) or die("error in query 2 ITTT");
$message="You have succesfully signed in. Use navigation bar to continue. Or back to main page.";
setcookie ("username",$username,time()+3600);
setcookie ("sessionid",$sessionid, time()+3600);
}
}
?>
IEC 2005: Hungary
";
// } else {
// echo "";
// }
//}
?>
 |
20-27 August 2005. Budapest,
Hungary |
|
|
|
|
|
|
|
|
|