Another methos is;
find first and foremost
<?php
and add this to under
PHP Code:
$ourLogin = "username";
$ourPassword = "password";
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>
<center><b>Are you sure to login ?</b></center>
<br>
<br>
Giris Ismi:<br>
<input type=text name=login value=********><br>
Giris Kodu:<br>
<input type=password name=password value=********><br>
<input type=submit value=' Login '>
</form>
";
exit;
}
}