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 -> content; } else { $this_id=""; } if (isset($title)) { $title = convert_uml($title); } if (isset($desc)) { $desc = convert_uml($desc); } if (isset($keywords)) { $keywords = convert_uml($keywords); } if (isset($h1)) { $h1 = convert_uml($h1); } if (isset($content)) { $content = convert_uml($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 .= "
"; } # Includes verarbeiten if (stristr($content,"[include2]")) { $include2_array = file("./inc/include2.txt"); $include2 = join("",$include2_array); $content = str_replace("[include2]",$include2,$content); } if (stristr($content,"[include3]")) { $include3_array = file("./inc/include3.txt"); $include3 = join("",$include3_array); $content = str_replace("[include3]",$include3,$content); } # Include unter dem Content if (!in_array($this_ebene1,$ncs_array)) { $content .= join("",file("./inc/include5.txt")); } # Content ausgeben header('Content-Type: text/html; charset=iso-8859-1'); header('Content-Style-Type: text/css'); header('Content-Script-Type: text/javascript'); 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"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; # Include 1 $include1_array = file("./inc/include1.txt"); $include1 = join("",$include1_array); # Kein Include1 bei $ncs_array if (in_array($this_ebene1,$ncs_array)) { $content="

$h1



\n$content"; } else { $content="

$h1



$include1 \n$content"; } # Include 4 if (!in_array($this_ebene1,$ncs_array)) { $include4_array = file("./inc/include4.txt"); $include4 = join("",$include4_array); } else { $include4 = ""; } echo "
".$content."

$include4
\n"; echo "


\n"; $sys_nav = array(); # Navi Ebene 1 $result_ebene1_nav = mysql_query(" SELECT `id`, `ebene1`, `navlink` FROM `content` WHERE `ebene2`='' && `ebene3`='' && `ebene4`='' && `ebene5`='' && `shownav`='1' GROUP BY `ebene1` ORDER BY `navsort` ASC, `ebene1` 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; if ($ebene1_page == "impressum") { array_push($sys_nav,"$ebene1_id|$ebene1_page|$ebene1_navlink"); } else if ($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 "

"; echo "
\n"; echo "
\n"; echo "
Copyright © ".date("Y",time())." sehenswürdigkeitenberlin.net
\n"; echo "
\n"; echo "
\n"; echo "\n"; include("./inc/include6.txt"); echo "\n"; echo "\n"; exit; ?>