Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by kadir ( 13 years ago )
<?php
if($_POST){
$username = p("name");
$password = p("pass");
if(empty($username) || empty($password)){
echo '[removed] alert("Kullanıcı adı ve şifrenizi yazın!")[removed]';
}
$sql = mysql_query('SELECT * FROM users WHERE username="'.$username.'" and password="'.md5($password).'"');
if(mysql_num_rows($sql) > 0 ){
$_SESSION["giris"] = TRUE;
$_SESSION["username"] = $username;
if(isset($_POST["hatirla"])){
setcookie("kullanici",$username,time()+ (60*60*24));
header("Location:profil-duzenle.php");
exit;
}
else{
echo '[removed] alert("Kullanıcı adı veya şifrenizi yanlış!.Tekrar Deneyin...")[removed]';
}
}
}
?>
Revise this Paste