<?php
function zacatek($hlaska)
{


echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
  <title><?php echo $hlaska;?></title>
  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-2\">
</head>

<body>";


}

function form()
{
?>
 <br /><br />
  <div align="center">
<form action="kontrola.php" method="post" >
  <table width="200" border="0" align="center" cellpadding="4" cellspacing="4">
   <tr>
    <td align="right" width="150" nowrap="nowrap">Login
    </td>
    <td width="50"><input name="nick" type="text" style="width: 11.6 em" />
    </td>
   </tr>
   <tr>
    <td align="right">Password
    </td>
    <td width="50"><input name="password" type="password" style="width: 11.6 em" />
    </td>
   </tr>
   <tr>
    <td>&nbsp;
    </td>
    <td align="left"><input type="submit" name="Submit" value="Přihlásit" />
    </td>
   </tr>
  </table>
 </form>
 </div>

 <br /><br />
<?
$actiontime="900";
include 'config.php';
mysql_query("UPDATE users SET online='0' WHERE last_akce < " . (time() - $actiontime));

}

function konec()
{
?>
</body>
</html>
<?php
}
?>