aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index e32996fa..167c4401 100755
--- a/index.php
+++ b/index.php
@@ -53,7 +53,11 @@ switch ($action) {
53} 53}
54 54
55function url(){ 55function url(){
56 $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; 56 $protocol = "http";
57 if(isset($_SERVER['HTTPS']))
58 if($_SERVER['HTTPS'] != "off")
59 $protocol = "https";
60
57 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 61 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
58} 62}
59?> 63?>