# Config [ 0=nein / 1=ja ] $fb_share = 0; # Facebook Share-Button unter dem Content $navi_dropdown = 1; # Navigations-DropDown unter dem Content $rating_box=1; # Rating-System anzeigen $web_host="www.museumsinselberlin.net"; # ohne http:// und ohne / am Ende # Sys include("./db/dbc.php"); include("./inc/functions.inc.php"); $this_host=$_SERVER["HTTP_HOST"]; if (stristr($_SERVER["HTTP_HOST"],"localhost")) {$web_host="localhost:141";} # No-Content-Sites $ncs_array = array("impressum","sitemap","datenschutz","bildquellen"); # Check URI # Störende Parameter entfernen if (stristr($_SERVER["REQUEST_URI"],"?fb_")) { $_SERVER["REQUEST_URI"] = substr($_SERVER["REQUEST_URI"],0,(strpos($_SERVER["REQUEST_URI"],"?"))); header_301("http://".$this_host.$_SERVER["REQUEST_URI"]."/"); } if (preg_replace('/[A-Za-z0-9-\/%.]/i', '', $_SERVER["REQUEST_URI"]) != "" || stristr($_SERVER["REQUEST_URI"],"//")) { if (stristr($_SERVER["REQUEST_URI"],"//")) { while(stristr($_SERVER["REQUEST_URI"],"//")) { $_SERVER["REQUEST_URI"] = str_replace("//","/",$_SERVER["REQUEST_URI"]); } header_301("http://".$this_host.$_SERVER["REQUEST_URI"]); } if (stristr($_SERVER["REQUEST_URI"],",")) { while(stristr($_SERVER["REQUEST_URI"],",")) { $_SERVER["REQUEST_URI"] = str_replace(",","",$_SERVER["REQUEST_URI"]); } header_301("http://".$this_host.$_SERVER["REQUEST_URI"]); } header_404(); } if (substr($_SERVER["REQUEST_URI"],-4)!=".php" && substr($_SERVER["REQUEST_URI"],-1)!="/") { header_301("http://".$this_host.$_SERVER["REQUEST_URI"]."/"); } # Web-Host $web_url = "http://".$web_host.$_SERVER["REQUEST_URI"]; # 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`,`title`,`keywords`,`desc`,`h1`,`mobile` 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; $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 = "