<?
session_start();
include "conf.php";
$haslo= $password;
$uwaga = "";
if (($haslo == $has) && ($login == $log))
{
if (isset($_SESSION['dane'])) session_unregister('dane');
if (!isset($_SESSION['dane'])) session_register('dane');
$dane="ok";
if (isset($_SESSION['url'])) session_unregister("url");
$uwaga = "<B>You have access.<br> <div align='center'><A HREF='frames.php'>Enter</A></div></B>";
}
else
{
if(strlen($has)>0 || strlen($log)>0)
{
$uwaga = "<B>Wrong password or loginname</B>";
$dane="zle";
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="DESCRIPTION" content="">
<meta name="keywords" content="">
<META NAME="author" CONTENT="Hieroglif">
<LINK REL=stylesheet type="text/css" href="style.css" title="Style Czcionek">
</HEAD>
<body bgcolor="#434B4D" text="Yellow" link="#EFD6A5" vlink="#F8E9D3" alink="White" background="../img/tlo.gif">
<html>
<body>
<H2 align="center">PhpPuszAdmin 1.1</H2>
<FORM METHOD=POST ACTION="index.php">
<table align="center" border="0" cellpadding="5">
<tr>
<td align="right"><B>Login:</B></td>
<td align="left"><input type="text" name="log" size=32 maxlenght=80>
</td>
</tr>
<tr>
<td align=right><B>Password:</B></td>
<td align=left><input type="password" name="has" size=32 maxlenght=80>
</td>
</tr>
<tr valign=top>
<td colspan=2 align=center>
<input type="submit" value="LOGIN">
</td>
</tr>
</table>
</form>
<br>
<br>
<br>
<div align="center">
<? echo $uwaga ?>
</div>
</BODY>
</HTML>