diff options
-rwxr-xr-x | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -53,7 +53,11 @@ switch ($action) { | |||
53 | } | 53 | } |
54 | 54 | ||
55 | function url(){ | 55 | function 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 | ?> |