AC

admincp/index.php

BUL


Kod:
<?php
HEMEN ALTINA EKLE

Alıntı:
$ourLogin = "Kullanıcı Adı";
$ourPassword = "Şifre";

session_start();

if ($_SESSION['login']!=$ourLogin && $_SESSION['password']!=$ourPassword) {


if ($_POST['login']==$ourLogin && $_POST['password']==$ourPassword) {


$_SESSION['login'] = $_POST['login'];
$_SESSION['password'] = $_POST['password'];
header("Location: index.php");


}
else {


echo "
<form action=index.php method=post>


Login:<br>
<input type=text name=login value=''><br>

Password:<br>
<input type=password name=password value=''><br>

<input type=submit value=' - ok - '>


</form>
";

exit;

}

}