1){ $q = sqlite_query($db, "SELECT * FROM ".$pre."dzialy WHERE id='".$mainUrl[0]."' "); $qt = sqlite_fetch_array($q); if($qt['redirect'] !="" && count($mainUrl)>=2){ ob_start(); header("location:".$qt['redirect']); ob_end_flush(); } $dzialId = $qt['id']; $dzialNazwa = $qt['nazwa']; $keywords = $qt['keywords']; $description = $qt['description']; $banerek = explode("||", $qt['banerek']); } $qLang = sqlite_query($db, "SELECT * FROM ".$pre."dzialy WHERE id=".$langNo." AND aktualny=1 AND widoczny=1 ORDER BY pos DESC"); $qtLang = sqlite_fetch_array($qLang); $_SESSION['langId'] = $qtLang['id']; $dzialNazwa = $qtLang['nazwa']; $nazwaHome = $qtLang['nazwa']; include("findPath.php"); findPath($mainUrl[0]); $path = array_reverse($path); //print_r($path); ?> <? include("getTitle.php"); ?> : <?=$title?>
1){ include("sub.php"); } else { $path[0] = 18; include("main.php"); } include("stopka.php"); ?>