$isHttps = false; if(isset($_SERVER["HTTPS"]) == true && strtolower($_SERVER["HTTPS"]) == "on"){ $isHttps = true; } if(isset($_SERVER["SERVER_PORT"]) == true && $_SERVER["SERVER_PORT"] == 443){ $isHttps = true; } if(isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) == true && strtolower($_SERVER["HTTP_X_FORWARDED_PROTO"]) == "https"){ $isHttps = true; } if($isHttps == false){ $redirectPath = "https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; header($_SERVER["SERVER_PROTOCOL"]." 301 Moved Permanently\n"); header("Location: ".$redirectPath); exit; } #header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); #header("Last-Modified: " . gmdate("D, d M Y H:i:s") ." GMT"); #header("Cache-Control: no-cache"); #header("Pragma: no-cache"); #header("Cache-Control: post-check=0, pre-check=0", FALSE); include "lib/phpInclude.php"; if (!$_REQUEST['content']) { $url = getExpression('HOME') . "" . $ADDURLVARS; header('Location: '.$url.''); exit; } if ((strstr($content,"content/produkt") && $action=="overview") || (strstr($content,"content/xml_vorlage/index")&&$navlink==13&&$gewaehlterBereich==14)) { $tmp = parse_url($_SERVER["REQUEST_URI"]); setcookie("HEROSBackLink", "", time()-3600); setcookie("HEROSBackLink", $tmp["query"], time()+3600); } else { if ($_COOKIE["HEROSBackLink"]) { $mycookie = $_COOKIE["HEROSBackLink"]; setcookie("HEROSBackLink", "", time()-3600); setcookie("HEROSBackLink", $mycookie, time()+3600); } } ?>