\"[Mobile"; } # Path zerlegen $path = explode("/", substr($_SERVER["REQUEST_URI"],1)); if ($path[0] == "") { $path[0] = "/"; } $this_ebene1 = $path[0]; $this_ebene2 = $path[1]; $this_ebene3 = $path[2]; $this_ebene4 = $path[3]; $this_ebene5 = $path[4]; # Content $Param_Ebene = "`ebene1`='$this_ebene1' && `ebene2`='$this_ebene2' && `ebene3`='$this_ebene3' && `ebene4`='$this_ebene4' && `ebene5`='$this_ebene5' "; $result_this_ebene = mysql_query(" SELECT `id`,`ni`,`title`,`keywords`,`desc`,`h1`,`content`, `shownavmobile`,`media`,`update_s`,`fb_s`,`tw_s`,`p1_s`,`li_s`,`xi_s`,`pi_s` FROM `content` WHERE $Param_Ebene "); if ($result_this_ebene && mysql_num_rows($result_this_ebene) > 0) { if ($row_this_ebene = mysql_fetch_object($result_this_ebene)) { $this_id = $row_this_ebene -> id; $ni = $row_this_ebene -> ni; $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; $shownavmobile = $row_this_ebene -> shownavmobile; $media = $row_this_ebene -> media; $update_s = $row_this_ebene -> update_s; $fb_s = $row_this_ebene -> fb_s; $tw_s = $row_this_ebene -> tw_s; $p1_s = $row_this_ebene -> p1_s; $li_s = $row_this_ebene -> li_s; $xi_s = $row_this_ebene -> xi_s; $pi_s = $row_this_ebene -> pi_s; if ($shownavmobile!=1) { $mobilecheck=0; $mobile_link=""; } } else { $this_id=""; } $media_title = $title; # 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('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 "$title\n"; if (isset($canonical)) {echo $canonical;} if ($ni==1 || 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"; } if (stristr($content,"class=\"imgzoom\"")) { echo "\n"; echo "\n"; } if ($mobilecheck==1) { echo "\n"; } echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; # Include 1 Content-Anfang / kein Include 1 bei $ncs_array $include1 = join("",file("./inc/include1.txt")); if (in_array($this_ebene1,$ncs_array)) { $content="

$h1



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

$h1

$mobile_link

$include1 \n$content
\n"; # Include 5 $content .= join("",file("./inc/include5.txt")); if ($fb_share==1) { $content .= "
Teilen
\n"; } } echo "
".$content; if (!in_array($this_ebene1,$ncs_array)) { if ($rating_box==1) { include("./rating/rating.php"); } if ($navi_dropdown==1) { navi_dropdown($this_id,$this_host,$ncs_array); } echo "
\n"; } echo "
\n"; 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_page = $row_ebene1_nav -> ebene1; $ebene1_navlink = $row_ebene1_nav -> navlink; $ebene1_navbr = $row_ebene1_nav -> navbr; # Navi unterteilen / Leerzeile einfügen if ($ebene1_navbr==1) {echo "

";} 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`, `ebene1`,`ebene2`, `navlink` FROM `content` WHERE `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; $ebene1_check = $row_ebene2_nav -> ebene1; if ($ebene1_check == $ebene1_page && $ebene1_page != "/") { if ($ebene1_check == $ebene1_page) { if ($ebene2_id == $this_id) { echo "\n"; } else { echo "$ebene2_navlink\n"; } # Navi Ebene 3 $result_ebene3_nav = mysql_query(" SELECT `id`, `ebene2`, `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; $ebene2_check = $row_ebene3_nav -> ebene2; if ($this_ebene1 == $ebene1_page && $this_ebene2 == $ebene2_page) { 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`='$this_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' && `ebene3`='$this_ebene3' && `ebene4`='$this_ebene4' && `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 "
"; # Facebook Like-Button # include("./inc/fb.like.iframe.php"); echo "
\n"; echo "
\n"; echo "
\n"; echo "
\n"; # Sharebar if (isset($sharebar) && $sharebar==1) { include("./inc/sharebar.inc.php"); } echo "
\n"; echo "
\n"; # Include 6 außerhalb Content, ganz unten im Quelltext, optional für Counter etc. if (file_exists("./inc/include6.txt")) { include("./inc/include6.txt"); } # Datenbank-ID zu Kontrolle echo "\n"; echo "\n"; echo "\n"; exit; ?>