admin paneli giris.php kodları
include('../baglan.php');
if (isset($_SESSION['admin']))
{
header("Location: index.php");
exit();
}
if ($_SERVER['REQUEST_METHOD']=="POST")
{
$user=$_POST['user'];
$pass=md5($_POST['pass']);
if (($user==$ayarlar->user) && ($pass==$ayarlar->pass))
{
$_SESSION['admin']=$ayarlar->user;
header("Location: index.php");
exit();
}
else
$sonuc='Giriş Bilgileriniz Hatalıdır !';
}
?>