"; IF ($headinstall) { IF (!file_exists($path."/own-incs/head.inc")) { require("$path/inc/head.inc"); } ELSE { require($path."own-incs/head.inc"); } } $cms_body.=" "; // Die Bodyinformationen werden durch head.inc übergeben $cms_body.=""; $body_temp=$body; $body=""; IF (!$site AND $sid) { $ssresult=mysql_query("Select id,ausgabestring FROM formsites WHERE id='$sid'"); $found=mysql_num_rows($ssresult); } IF (!$sfid AND !$sfinc AND !$subfid AND !$subfinc OR (!$found AND $sid)) { $ssresult=mysql_query("Select id,ausgabestring FROM formsites WHERE name='HTML-Seiten'"); while($zeile=mysql_fetch_array($ssresult)) { $sfid=$zeile["id"]; $ausg=$zeile["ausgabestring"]; } $arr=explode(",",$ausg); $sfinc=$arr[0]; IF ($site) {$add="Hauptseite='1' AND";} $result=@mysql_query("SELECT id FROM html WHERE $add cleared != '1' ORDER BY id LIMIT 1"); $found=@mysql_num_rows($result); while($zeile=@mysql_fetch_array($result)) { $sid=$zeile["id"]; } $subforminc1=$path."open_inc/html_out.inc"; } // Wenn über Site ein festen Name vorgegeben wird, dann diesen aufrufen und anzeigen IF ($site or $article) { require("$path/inc/sitecheck.inc"); } // ECHO "$akt_Baustein_id $site $sid $sfid $sfinc $subid $subfid $subfinc
"; $arr=explode("/",$shopurl); $rawurl="http://$arr[0]"; $shortlink="$rawurl$PHP_SELF"; IF ($QUERY_STRING) {$shortlink.="?$QUERY_STRING";} parse_str($shortlink,$arr); $link_pfad=""; $linkzus=""; foreach ($arr as $key => $value) { IF (!strstr($key,"http:") AND !strstr($key,"https:") AND !is_array($value) AND $key != 'sfid' AND $key != 'sid' AND $key != 'sfinc' AND $key != 'subfid' AND $key != 'subid' AND $key != 'subfinc' AND $key != 'blocknr' AND $key != 'sublayer' AND $key != 'ml' AND $key != 'multilanguage' AND $value != '') { $linkzus.="&$key=$value"; } } $string="SELECT puffer_code FROM xmlsitemap WHERE (sid='$sid' AND sfid='$sfid' AND sfinc='$sfinc' AND subid='$subid' AND subfid='$subfid' AND subfinc='$subfinc' AND linkzus = '$linkzus' OR shortlink='$rawurl$PHP_SELF?$QUERY_STRING') AND puffer_code != '' AND Sprache = '$ml'"; // ECHO $string; $result=mysql_query("$string"); $puffercodefound=mysql_num_rows($result); IF ($puffercodefound) { while($zeile=mysql_fetch_array($result)) { $puffer_code=$zeile["puffer_code"]; } } IF (!$puffer_code ) { IF ($sfid AND $sfinc) { $subforminc1=$path."own-incs/".$sfinc.".inc"; $subforminc2=$path."open_inc/".$sfinc.".inc"; } IF ($subfid AND $subfinc AND !$sfid AND !$sfinc) { $subforminc1=$path."own-incs/".$subfinc.".inc"; $subforminc2=$path."open_inc/".$subfinc.".inc"; } // Wenn über Site ein fester Name vorgegeben wird, dann diesen aufrufen und anzeigen IF ($site or $article) { require("$path/inc/sitecheck.inc"); } IF (file_exists("$subforminc1")) {require("$subforminc1");} IF (file_exists("$subforminc2") AND !file_exists("$subforminc1")) {require("$subforminc2");} IF ($adminhelp AND $uname AND $ucode AND $direct_edit) {$cms_body.= "
$adminhelp
";} // require($path."inc/css_menu_aktivierung.inc"); $cms_body.= "$Google_Analytics_Code"; $festvariablen = array ("[PRO_JAVAADD]" => "$PRO_Javahead"); $cms_body=strtr("$cms_body", $festvariablen ); IF ($_SERVER['HTTPS']) { $festvariablen = array ("http://" => "https://", "https://".$shopurl."https//".$shopurl => "https://$shopurl", "https://".$shopurl."https://".$shopurl => "https://$shopurl"); $htmlout_temp=strtr("$htmlout_temp", $festvariablen ); $cms_body=strtr("$cms_body", $festvariablen ); } } ELSE { $cms_body=$puffer_code; } IF (!$unbekannteSeite) { ECHO $cms_body; } ELSE { header ('HTTP/1.1 301 Moved Permanently'); header("refresh:0; url=http://$shopurl"); } IF (!$puffer_code) { IF (!$admintool_CacheAktiv) {$cms_body="";} // Daten sollen nicht in den Cachespeicher // Im HTMl-Verzeichnis müssen schreibrechte zum erzeugen der Datei sitemap_index.xml existieren! require($path."inc/tempwriteout.inc"); } $messungEnde = strtok(microtime(), " ") + strtok(" "); // echo "
Dauer: ".number_format($messungEnde - $messungStart, 6)." Sekunden"; ?>