elimdeki scriptin admin panelini kodlarken bi yerde takıldım, admin girişi yapılırken sorun çıkıyor ve giriş yapmıyor, yardımcı olan arkadaşlara teşekkürler
login.php
<?php
session_start();
$durum=$_SESSION['durum'];
if ($durum!=="") {?>
<? header("location: admin.php"); ?>
<?
}
?>
<? else{?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="tr-TR">
<head>
<title>Ziyaretci Defteri› Giriş</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel='stylesheet' href='a_files/wp-admin.css' type='text/css' />
<!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style><![endif]--><!-- Curse you, IE! -->
<script type="text/javascript">
function focusit() {
document.getElementById('user_login').focus();
}
window.onload = focusit;
</script>
</head>
<body class="login">
<div id="login"><h1><a href="k.php" title="Ziyaretci Defteri Giriş">Ziyaretci Defteri Giriş</a></h1>
<form name="loginform" id="loginform" action="giris.php" method="post">
<p>
<label>Kullanıcı adı:<br />
<input type="text" name="kullanici" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Parola:<br />
<input type="password" name="sifre" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" value="Giriş »" tabindex="100" />
<input type="hidden" name="redirect_to" value="wp-admin/" />
</p>
</form>
</div>
</body>
</html>
<?
}
?>giris.php<?php
session_start();
include("ayar.php");
$a=$_POST['kullanici'];
$b=$_POST['sifre'];
$d=mysql_fetch_array(mysql_query("SELECT * FROM giris WHERE ad='$a'"));
if (($a!="" || $b!="") && ($a==$d['ad'] && $b==$d['sifre'])) {
$_SESSION['durum']="girildi";
}else{?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="tr-TR">
<head>
<title>Ziyaretci Defteri › Giriş</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel='stylesheet' href='a_files/wp-admin.css' type='text/css' />
<!--[if IE]><style type="text/css">#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style><![endif]--><!-- Curse you, IE! -->
<script type="text/javascript">
function focusit() {
document.getElementById('user_login').focus();
}
window.onload = focusit;
</script>
</head>
<body class="login">
<div id="login"><h1><a href="k.php" title="Ziyaretci Defteri Giriş">Ziyaretci Defteri Giriş</a></h1>
<br>
<br>
<div id="login_error">
<strong>HATA</strong> : Gecersiz kullanıcı adı<br />
<strong>HATA</strong> : Gecersiz parola<br />
</div>
<form name="loginform" id="loginform" action="giris.php" method="post">
<p>
<label>Kullanıcı adı:<br />
<input type="text" name="kullanici" id="user_login" class="input" value="" size="20" tabindex="10" /></label>
</p>
<p>
<label>Parola:<br />
<input type="password" name="sifre" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" value="Giriş »" tabindex="100" />
<input type="hidden" name="redirect_to" value="wp-admin/" />
</p>
</form>
</div>
</body>
</html>
<?
}
?>