<?php
session_start();
include "conf.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;
echo "<p>$txt_pass_ok</p>";
echo"<div align='center'><a href='index.php'>$txt_view_entry</a> | <a href='admin.php'>$txt_delete-$txt_edit</a> | <a href='install.php'>$txt_install</a></div>";
}
include "colori.php";
?>
<html>
<head>
<title>Pao Bacheca</title>
<?php include "stile.inc" ;?>
<style type="text/css">
#logon {
position: absolute; width: 300px; height: 80px; 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>