include ('includes/php.iniset.inc.php'); include ('includes/func.inc.php'); include ('frontpage/includes/globals.inc.php'); include ('frontpage/includes/func.inc.php'); include ('frontpage/includes/urlcrypt.inc.php'); include ('frontpage/includes/database.class.php'); session_start(); // decrypt url if (!$_SESSION['CryptKey']) { $_SESSION['CryptKey'] = 'o'.md5(time()); } $_GET = urldecrypt($_GET['o']); //lang if ($_GET['lang']) $_SESSION['lang'] = $_GET['lang']; elseif (!$_SESSION['lang']) foreach($LANG as $key=>$val) { if (!$_SESSION['lang']) $_SESSION['lang'] = $key; else continue; } // db $db = dbconnect($DB_ACCESS); // page $page = getPageData($db, $_GET['page']); if ($page['parent'] > 0) $parentpage = getPageData($db, $page['parent']); // header stranky if (file_exists('header/'.$page['id'].'.php')) include('header/'.$page['id'].'.php'); echo ''; ?>