ob_start(); session_start(); if(!empty($_GET['switch']) && $_GET['switch']=="eng") { $_SESSION['lang']="eng"; header("Location: /"); } elseif(!empty($_GET['switch']) && $_GET['switch']=="pl") { unset($_SESSION['lang']); header("Location: /"); } elseif(!empty($_GET['switch']) && $_GET['switch']=="ger") { $_SESSION['lang']="ger"; header("Location: /"); } include("config.inc.php"); include("funkcje.inc.php"); $strona_glowna=1; if(empty($_GET['kid'])) $_GET['kid']="3_glowna"; if(!empty($_GET['kid'])) { ValidateKat($_GET['kid']); $kat_id=KatID($_GET['kid']); $kat_nazwa=KatName($kat_id); $title=KatHead($kat_id); $SITE_KAT=$kat_id; } if(!empty($_GET['pkid'])) { ValidateKat($_GET['pkid']); $pkat_id=KatID($_GET['pkid']); $pkat_nazwa=KatName($pkat_id); $title=KatHead($pkat_id); $SITE_KAT=$pkat_id; } if(!empty($_GET['ppkid'])) { ValidateKat($_GET['ppkid']); $ppkat_id=KatID($_GET['ppkid']); $ppkat_nazwa=KatName($ppkat_id); $title=KatHead($ppkat_id); $SITE_KAT=$ppkat_id; } if(!empty($_GET['nid'])) { ValidateNews($_GET['nid']); $news_id=NewsID($_GET['nid']); $news_tytul=NewsTytul($news_id); $title=NewsHead($news_id); }?>