$username : $pass
";
if($md5pass==1){
//$pass=md5($pass);
}
$user = mysql_fetch_array(mysql_query("select * from users where username='$username' and password='$pass'"));
if($user[id]){
if($remember){
setcookie("username",$username,time()+10000000, "/", "", 0);
setcookie("pass",$pass,time()+10000000, "/", "", 0);
}else{
setcookie("username",$username,"", "/", "", 0);
setcookie("pass",$pass,"", "/", "", 0);
}
}
$user = mysql_fetch_array(mysql_query("select * from users where username='$username' and password='$pass'"));
print " $user[username] -( Click here )";
//print "
$username : $pass
";//cookie check, if this shows " : " cookies are not working (worked in firefox but not IE.. yet IE still logs in, it just cant get the cookie yet or something)
//print "";
}else{
//setcookie("username");
//setcookie("pass");
$username=$_COOKIE['username'];
$pass=$_COOKIE['pass'];
$user = @mysql_fetch_array(mysql_query("select * from users where username='$username' and pass='$pass'"));
print"Welcome $user[user] to $gametitle