aboutsummaryrefslogtreecommitdiffhomepage
path: root/readityourself.php
diff options
context:
space:
mode:
Diffstat (limited to 'readityourself.php')
-rwxr-xr-xreadityourself.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/readityourself.php b/readityourself.php
index 2071b417..c59bb9d1 100755
--- a/readityourself.php
+++ b/readityourself.php
@@ -26,7 +26,11 @@ require_once dirname(__FILE__).'/inc/rain.tpl.class.php';
26 26
27 27
28function url(){ 28function url(){
29 $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; 29 $protocol = "http";
30 if(isset($_SERVER['HTTPS']))
31 if($_SERVER['HTTPS'] != "off")
32 $protocol = "https";
33
30 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 34 return $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
31} 35}
32 36