
if(!isset($page)) $page="novinky";
$invalide = array('/','/\/',':','.');
$page = str_replace($invalide,' ',$page);
if(!file_exists($page.".php")) $page = "error";
include($page.".php");
?>
ob_start(); session_start(); include 'inc/db_conn.php'; include 'inc/function.php'; include "./texyla/texyla.php"; include('strankovani.php'); removeMagicQuotesGpc(); if(isset($_COOKIE['Username'])) { $username = $_COOKIE['Username']; $password = $_COOKIE['Password']; $check = mysql_query("SELECT id,login,heslo FROM uzivatele WHERE login = '$username' and heslo='$password'") or die(mysql_error()); $pocet=mysql_num_rows($check); if("$pocet"=="1"){ while($vypis=mysql_fetch_array($check)){ $_SESSION['UserId'] = $vypis[id]; $_SESSION['UserPassword'] = $vypis[heslo]; } } } if("$_SESSION[UserId]"!=""){ Overit();Administrace(); } ?>