From cd9fadbc441adbf5c2a97702ff60062a50847d77 Mon Sep 17 00:00:00 2001 From: Nils Bergmann Date: Sat, 16 Feb 2019 15:32:56 +0100 Subject: [PATCH] Remove protocol determination No protocol determination is neede, if you just use double slash. Signed-off-by: Nils Bergmann --- advanced/index.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/advanced/index.php b/advanced/index.php index 49eb0f45..78135e1a 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -40,13 +40,6 @@ $validExtTypes = array("asp", "htm", "html", "php", "rss", "xml", ""); // Get extension of current URL $currentUrlExt = pathinfo($_SERVER["REQUEST_URI"], PATHINFO_EXTENSION); -// Check if this is served over HTTP or HTTPS -if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { - $proto = "https"; -} else { - $proto = "http"; -} - // Set mobile friendly viewport $viewPort = ''; @@ -229,10 +222,10 @@ setHeader(); - - + + ● <?=$serverName ?> - +