diff --git a/advanced/index.php b/advanced/index.php index 0111c95f..5c2f250d 100644 --- a/advanced/index.php +++ b/advanced/index.php @@ -38,6 +38,13 @@ $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 = ''; @@ -220,10 +227,10 @@ if (explode("-", $phVersion)[1] != "0") - - + + ● <?=$serverName ?> - +