<?
@session_start();
$pass = @$_POST['sifre'];
$user = @mysql_real_escape_string(@$_POST['kuladi']);
if ($pass == "admin" and $user == "admin") {
@$_SESSION["durum"] = "yes";
header("location: index.php");
} else {
?>
<html>
<head>
<meta http-equiv="Content-Language" content="tr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Yönetici Paneli</title>
</head>
<body bgcolor="#E4E4E4">
<center>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<form action="login.php" method="post">
<table border="0" width="303" cellpadding="0" bgcolor="#FFFFFF" style="border: 2px solid #C0C0C0" height="161">
<tr>
<td height="153" align="center" valign="top">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td colspan="2">
<img border="0" src="img/kp.gif" width="181" height="24" align="right"></td>
</tr>
<tr>
<td width="28%"> </td>
<td width="72%"> </td>
</tr>
<tr>
<td width="28%" height="25">
<p align="right"><b>
<font face="Arial" style="font-size: 9pt" color="#808080">
Kullanıcı Adı :</font></b></td>
<td width="72%" height="25"> <input type="text" name="kuladi" style="border: 1px solid #C0C0C0" size="25" /></td>
</tr>
<tr>
<td width="28%" height="25">
<p align="right"><b>
<font face="Arial" style="font-size: 9pt" color="#808080">Şifre
:</font></b></td>
<td width="72%" height="25"> <input type="password" name="sifre" style="border: 1px solid #C0C0C0" size="25" /></td>
</tr>
<tr>
<td width="28%"> </td>
<td width="72%"> </td>
</tr>
<tr>
<td width="28%"> </td>
<td width="72%">
<input type="image" src="img/gir.gif" align="right" /></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
<? } ?>sessions.php
<?
@session_start();
if (@$_SESSION["durum"] != "yes") {
header("location: login.php");
}
?>Giriş yapıyorum tekrar başa dönüyor :S
