<? 
session_start
();
require 
"./func.php";
if (
$_GET["clanek"]=="prihlaseni")
{
  
$link=mysql_connect(SQL_HOSTSQL_USERNAMESQL_PASSWORD);
  
mysql_select_db(SQL_DBNAME);
  
mysql_query("SET NAMES 'utf8'");
  
$id iduzivatele($_POST["prezdivka"], $_POST["heslo"], $link);
  if (
$id<>0$_SESSION["id"]=$id;
}
elseif (
$_GET["clanek"]=="odhlaseni")
{
  unset(
$_SESSION["id"]);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>
      Web virtuální kapely
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style type="text/css" title="text/css">  
    </style>
  </head>
  <body>
  <div align="center">
    <table width="760" cellpadding="0" cellspacing="0" border="1">
      <tr>
        <td width="760" height="120" colspan="2"><img src="./images/top.jpg" width="760" height="120"></td>
      </tr>
      <tr>
        <td width="160" valign="top"><?require "./navigace.php"?></td>
        <td width="600" valign="top"><?ukazclanek()?></td>
      </tr>
    </table>
  </div>
  </body>
</html>