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; $spalte_rechts = $row_this_ebene -> spalte_rechts; } 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); } # Goldvariablen im Content verarbeiten if (isset($content) && stristr($content,"$")) { include("./inc/var.inc.php"); $content = convert_vari($content); include("./db/dbc.php"); } } 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]")) { $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,"[include5]")) { $content = str_replace("[include5]",join("",file("./inc/include5.txt")),$content); } if (stristr($content,"[chart_gold_euro]")) { ob_start(); //startet Buffer include("./inc/chart_gold_euro.inc.php"); //./inc/chart_gold_euro.inc.php ist jetzt im Buffer $chart_gold_euro=ob_get_contents(); //Buffer wird in $var geschrieben ob_end_clean(); //Buffer wird gelöscht $content = str_replace("[chart_gold_euro]",$chart_gold_euro,$content); } if (stristr($content,"[chart_gold_dollar]")) { ob_start(); //startet Buffer include("./inc/chart_gold_dollar.inc.php"); //./inc/chart_gold_dollar.inc.php ist jetzt im Buffer $chart_gold_dollar=ob_get_contents(); //Buffer wird in $var geschrieben ob_end_clean(); //Buffer wird gelöscht $content = str_replace("[chart_gold_dollar]",$chart_gold_dollar,$content); } if (stristr($content,"[chart_gold_7d]")) { ob_start(); include("./inc/chart_gold_7d.inc.php"); $chart_gold_7d=ob_get_contents(); ob_end_clean(); $content = str_replace("[chart_gold_7d]",$chart_gold_7d,$content); include("./db/dbc.php"); } if (stristr($content,"[chart_gold_intraday]")) { ob_start(); include("./inc/chart_gold_intraday.inc.php"); $chart_gold_intraday=ob_get_contents(); ob_end_clean(); $content = str_replace("[chart_gold_intraday]",$chart_gold_intraday,$content); include("./db/dbc.php"); } if (stristr($content,"[chart_gold_750_intraday]")) { ob_start(); include("./inc/chart_gold_750_intraday.inc.php"); $chart_gold_750_intraday=ob_get_contents(); ob_end_clean(); $content = str_replace("[chart_gold_750_intraday]",$chart_gold_750_intraday,$content); include("./db/dbc.php"); } if (stristr($content,"[chart_silber_7d]")) { ob_start(); include("./inc/chart_silber_7d.inc.php"); $chart_silber_7d=ob_get_contents(); ob_end_clean(); $content = str_replace("[chart_silber_7d]",$chart_silber_7d,$content); include("./db/dbc.php"); } if (stristr($content,"[chart_silber_intraday]")) { ob_start(); include("./inc/chart_silber_intraday.inc.php"); $chart_silber_intraday=ob_get_contents(); ob_end_clean(); $content = str_replace("[chart_silber_intraday]",$chart_silber_intraday,$content); include("./db/dbc.php"); } # 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 ($ni==1) {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 einlesen $include1 = join("",file("./inc/include1.txt")); # Kein Include1 bei $ncs_array if (in_array($this_ebene1,$ncs_array)) { $content="

$h1



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

$h1



$include1 \n$content

"; } # Include 4 einlesen if (!in_array($this_ebene1,$ncs_array)) { $include4 = join("",file("./inc/include4.txt")); } else { $include4 = ""; } # rechte Spalte ja/nein if (isset($spalte_rechts) && $spalte_rechts!="" && $spalte_rechts!="NICHTS") { echo "
".$content."
$include4
$spalte_rechts
\n"; } else if (file_exists("./inc/include_rechts.txt") && $spalte_rechts!="NICHTS") { echo "
".$content."
$include4
".join("",file("./inc/include_rechts.txt"))."
\n"; } else { echo "
".$content."
$include4
\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.likebutton.iframe.php"); echo "
\n"; echo "
\n"; if (isset($spalte_rechts) && $spalte_rechts!="" && $spalte_rechts!="NICHTS") { echo "
\n"; } else if (file_exists("./inc/include_rechts.txt") && $spalte_rechts!="NICHTS") { echo "
\n"; } else { echo "
\n"; } echo "
\n"; echo "
\n"; echo "\n"; include("./inc/include6.txt"); echo "\n"; echo "\n"; exit; ?>