Location: PHPKode > projects > PaoLiber > paoliber/login.php
<?php
session_start();
include  "config.php" ;
include  "language/lang_$lang_set.php" ;

if (isset($_POST["submit"])) {

	$pwd = $_POST['pwd'];
	if ($pwd!=$pass){
	echo "$txt_invalid_pass";
	}
	else{
$login_ok=true;}
}

if ($login_ok)
{
$_SESSION['loggato'] = true;

	include  "stile.inc" ;
	
echo "<p>$txt_pass_ok</p>";

 echo"<div align='center'><h5> <a href='admin.php'>$txt_delete - $txt_edit</a> |<a href='scrivi.php'>$txt_write</a>  |<a href='paowiki.php'>$txt_write $txt_message Homepage</a> </h5></div>";

exit;

}

?>

<html>
<head>
	<title>Pao Liber</title>
	<?php include  "stile.inc" ;?>
	

<style type="text/css">
#logon {
  position: absolute; width: auto; height: 50px; top: 50%; left: 50%; margin-left: -167px; margin-top: -117px;
  background-color: white; color: black; border: 1px outset; padding: 15px;
}
#logon input { margin-left: 10px; }
</style>
	</head>
<body>

<div id='logon'>

<form action='<?php echo $_SERVER['PHP_SELF'] ?>' method='post'>
<?php echo $pas_fill ;?> <input name="pwd" type="password" value="">

<input type='submit' name='submit'>
</form></div>


</body>
</html>


	

Return current item: PaoLiber