HTTPS Ermittlung korrigiert

This commit is contained in:
oesi
2015-12-02 10:11:41 +01:00
parent 798c34efbe
commit a1e8a7241b
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -20,12 +20,11 @@
//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
$ar = APP_ROOT;
if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);
//Originaldateien des Herstellers
echo '<link rel="stylesheet" type="text/css" href="'.$ar.'vendor/FHC-vendor/easyui/themes/icon.css">';
echo '<link rel="stylesheet" type="text/css" href="'.$ar.'vendor/FHC-vendor/easyui/themes/gray/easyui.css">';
+1 -2
View File
@@ -19,9 +19,8 @@
*/
//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
$ar = APP_ROOT;
if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);
+1 -1
View File
@@ -21,7 +21,7 @@
$ar = APP_ROOT;
if(isset($_SERVER["https"]) && $_SERVER["https"] != "")
if(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] != "" && $_SERVER["HTTPS"] != "off")
$ar = preg_replace("/^http:/i", "https:", $ar);
else
$ar = preg_replace("/^https:/i", "http:", $ar);