0) { if ($row_this_ebene = mysql_fetch_object($result_this_ebene)) { $this_id = $row_this_ebene -> id; $title = $row_this_ebene -> title; $keywords = $row_this_ebene -> keywords; $desc = $row_this_ebene -> desc; $h1 = $row_this_ebene -> h1; $content = $row_this_ebene -> mobile; } else { $this_id=""; } # GMAP-Include if (stristr($content,"[gmap]")) { include("./gmap/gmappoints.php"); $content = str_replace("[gmap]","$gmappoints",$content); } } else { header_404(); } # SiteMap if ($this_ebene1 == "sitemap") { $Pages_Gesamt = 0; $content1=""; $result_root = mysql_query(" SELECT `navlink` FROM `content` WHERE `ebene1`='/' "); $row_root = mysql_fetch_object($result_root); $root_navlink = $row_root -> navlink; $content = "
\n"; $content .= "Verfügbare Inhalte von
$this_host:

\n"; $content .= "$root_navlink\n"; $content .= "\n"; if (isset($content1) && $content1 != "") { $content .= "\n"; } # $content .= "$Pages_Gesamt Seiten gesamt auf $this_host."; $content .= "
"; $content .= "
"; } # Includes verarbeiten 2/3/4 optional in Content setzen if (stristr($content,"[include2]")) { $content = str_replace("[include2]",join("",file("./inc/include2.txt")),$content); } if (stristr($content,"[include3]")) { $content = str_replace("[include3]",join("",file("./inc/include3.txt")),$content); } if (stristr($content,"[include4]")) { $content = str_replace("[include4]",join("",file("./inc/include4.txt")),$content); } # Content ausgeben # header('Cache-Control: max-age=3600, must-revalidate'); header('Content-Type: text/html; charset=utf-8'); header('Content-Style-Type: text/css'); header('Content-Script-Type: text/javascript'); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "$title\n"; if (stristr($_SERVER['REQUEST_URI'],"impressum") || stristr ($_SERVER['REQUEST_URI'],"datenschutz") || stristr ($_SERVER['REQUEST_URI'],"bildquellen")) { echo "\n"; } if (isset($desc) && $desc != "") { echo "\n"; } if (isset($keywords) && $keywords != "") { echo "\n"; } echo "\n"; if ($rating_box==1) { echo "\n"; } echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; # Include 1 Content-Anfang / kein Include 1 bei $ncs_array if (in_array($this_ebene1,$ncs_array)) { $content="

$h1


\n$content"; } else { $include1 = join("",file("./inc/include1.txt")); $content="

$h1

\"$h1

$include1 \n$content

\n"; if ($fb_share==1) { $content .= "
Teilen
\n"; } } echo "
".$content; if (!in_array($this_ebene1,$ncs_array)) { if ($navi_dropdown==1) { navi_dropdown($this_id,$this_host,$ncs_array); } echo "
\n"; } # Include 5 (Content-Ende, Werbung) if (!in_array($this_ebene1,$ncs_array)) { echo join("",file("./inc/include5.txt")); } echo "
\n"; $sys_nav = array(); # Navi Ebene 1 $result_ebene1_nav = mysql_query(" SELECT `id`, `ebene1`, `navlink`, `navbr` FROM `content` WHERE `ebene2`='' && `ebene3`='' && `ebene4`='' && `ebene5`='' && `shownav`='1' GROUP BY `ebene1` ORDER BY `navsort` ASC, `navlink` ASC "); while ($row_ebene1_nav = mysql_fetch_object($result_ebene1_nav)) { $ebene1_id = $row_ebene1_nav -> id; $ebene1_navlink = $row_ebene1_nav -> navlink; $ebene1_page = $row_ebene1_nav -> ebene1; $ebene1_navbr = $row_ebene1_nav -> navbr; # Navi unterteilen / Leerzeile einfügen if ($ebene1_navbr==1) {echo "
";} if ($ebene1_page=="impressum" || $ebene1_page=="datenschutz" || $ebene1_page=="sitemap") { array_push($sys_nav,"$ebene1_id|$ebene1_page|$ebene1_navlink"); } else { if ($ebene1_id == $this_id) { if ($ebene1_page=="/") { echo "\n"; } else { echo "\n"; } } else { if ($ebene1_page=="/") { echo "$ebene1_navlink\n"; } else { echo "$ebene1_navlink\n"; } } # Navi Ebene 2 $result_ebene2_nav = mysql_query(" SELECT `id`, `ebene2`, `navlink` FROM `content` WHERE `ebene1`='$this_ebene1' && `ebene2`!='' && `ebene3`='' && `ebene4`='' && `ebene5`='' && `shownav`='1' ORDER BY `navsort` ASC, `navlink` ASC, `ebene2` ASC "); while ($row_ebene2_nav = mysql_fetch_object($result_ebene2_nav)) { $ebene2_id = $row_ebene2_nav -> id; $ebene2_navlink = $row_ebene2_nav -> navlink; $ebene2_page = $row_ebene2_nav -> ebene2; if ($ebene1_page == $this_ebene1 && $ebene1_page != "/") { if ($ebene1_page==$this_ebene1) { if ($ebene2_id == $this_id) { echo "\n"; } else { echo "$ebene2_navlink\n"; } # Navi Ebene 3 $result_ebene3_nav = mysql_query(" SELECT `id`, `ebene3`, `navlink` FROM `content` WHERE `ebene1`='$this_ebene1' && `ebene2`='$this_ebene2' && `ebene3`!='' && `ebene4`='' && `ebene5`='' && `shownav`='1' ORDER BY `navsort` ASC, `navlink` ASC, `ebene3` ASC "); while ($row_ebene3_nav = mysql_fetch_object($result_ebene3_nav)) { $ebene3_id = $row_ebene3_nav -> id; $ebene3_navlink = $row_ebene3_nav -> navlink; $ebene3_page = $row_ebene3_nav -> ebene3; if ($ebene2_page == $this_ebene2) { if (strlen($ebene3_navlink)>32) {$ebene3_class= "a_u2_10px";} else {$ebene3_class= "a_u2";} if ($ebene3_id == $this_id) { echo "\n"; } else { echo "$ebene3_navlink\n";} # Navi Ebene 4 $result_ebene4_nav = mysql_query(" SELECT `id`, `ebene3`, `ebene4`, `navlink` FROM `content` WHERE `ebene1`='$this_ebene1' && `ebene2`='$this_ebene2' && `ebene3`!='' && `ebene4`!='' && `ebene5`='' && `shownav`='1' ORDER BY `navsort` ASC, `navlink` ASC, `ebene4` ASC "); while ($row_ebene4_nav = mysql_fetch_object($result_ebene4_nav)) { $ebene4_id = $row_ebene4_nav -> id; $ebene4_navlink = $row_ebene4_nav -> navlink; $ebene4_page = $row_ebene4_nav -> ebene4; $ebene3_check = $row_ebene4_nav -> ebene3; if ($ebene3_check == $ebene3_page) { if ($ebene4_id == $this_id) { echo "\n"; } else { echo "$ebene4_navlink\n"; } # Navi Ebene 5 $result_ebene5_nav = mysql_query(" SELECT `id`, `ebene4`, `ebene5`, `navlink` FROM `content` WHERE `ebene1`='$this_ebene1' && `ebene2`='$this_ebene2' && `ebene5`!='' && `shownav`='1' ORDER BY `navlink` ASC, `ebene5` ASC "); while ($row_ebene5_nav = mysql_fetch_object($result_ebene5_nav)) { $ebene5_id = $row_ebene5_nav -> id; $ebene5_navlink = $row_ebene5_nav -> navlink; $ebene5_page = $row_ebene5_nav -> ebene5; $ebene4_check = $row_ebene5_nav -> ebene4; if ($ebene4_check == $ebene4_page) { if ($ebene5_id == $this_id) { echo "\n"; } else { echo "$ebene5_navlink\n"; } } } } } } } } else { echo "$ebene2_navlink\n"; } } } } } echo "
"; foreach($sys_nav as $sys_nav_item) { $sys_nav_item = explode("|",$sys_nav_item); if ($sys_nav_item[1] == $this_ebene1) { echo "\n"; } else { echo "$sys_nav_item[2]\n"; } } echo "
\n"; # Rating if ($rating_box==1) { include("./rating/rating.php"); } else {echo "
";} # Facebook Like-Button # include("./inc/fb.like.iframe.php"); echo "
\n"; echo "
\n"; # Include 6 außerhalb Content, ganz unten im Quelltext, optional für Counter etc. # include("./inc/include6.txt"); # Datenbank-ID zu Kontrolle echo "\n"; echo "\n"; echo "\n"; exit; ?>