Location: PHPKode > projects > Free Blog Creator > freeblog/login.php
<?php
require_once("cfg.php");
if($_POST["login"]){
if($_POST['password'] != $pass){
$Flg++;
}
}
if (!$Flg){
if($_POST["login"]){
session_start();
$_SESSION['Pass'] = $_POST['password'];
}
}
?>
<?php
if (!$Flg){
if($_POST["login"]){
header("Location:base.php");
exit;
}
}
?>
<?php
if ($Flg){
echo "<FONT color=#CC0000><SMALL>The password you entered is incorrect.</SMALL></FONT>\n";
}
?>
<center>
<form action=<?=$_SERVER[ "PHP_SELF" ]?> method=POST>
Password:<input type=password size=10 name=password><br>
<input type=submit name=login value=Login>
</form>
</center>
Return current item: Free Blog Creator