Session_start(); // nastaveni ankety /* if ($_POST['anketa_hlasuj'] && $_POST['odpoved']) : // zda se jiz hlasovalo $visit = 1; // zda uzivatel zaskrkl odpoved $hlasoval = 1; elseif ($_POST['anketa_hlasuj'] && $_POST['odpoved']) : // zda uzivatel zaskrkl odpoved $hlasoval = 0; endif; */ //setcookie("visit", $visit, mktime(23,59,59, date('m'), date('d'), date('Y'))); /* musi byt vzdy na zacatku */ include("./admin/php/conf/connect.php"); include("./admin/php/conf/page.inc.php"); include('class/Menu.php'); include('class/DB.php'); include('class/Navigation.php'); if ($_GET['pg']) : $dotaz = "SELECT * FROM page WHERE pag_id='".$_GET['pg']."'"; $vys = mysql_fetch_object(mysql_query($dotaz)); else : $dotaz = "SELECT * FROM page ORDER BY pag_prior DESC"; $vys = mysql_fetch_object(mysql_query($dotaz)); endif; // nacteni tridy strankovani define(STRANKOVANI_DIRECTORY, "php/strankovani/"); require (STRANKOVANI_DIRECTORY."strankovani.class.php"); /* diskuse */ define(DISKUSE_DIRECTORY, "admin/php/diskuse/"); include (DISKUSE_DIRECTORY."diskuse.inc.php"); $lang = $_GET['language']; if (isset($lang) && $lang) { if ($lang == 'en') { $_SESSION['language'] = 'en'; } elseif ($lang == 'cz') { $_SESSION['language'] = 'cz'; } } else { $_GET['language'] = $_SESSION['language']; } ?>