@@ -95,4 +95,17 @@ function update() {
}
+function pageURL() {
+
+ $pageURL = 'http';
+ if (isset($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]==="on") $pageURL .= "s";
+ $pageURL .= "://";
+ if ($_SERVER["SERVER_PORT"]!="80") $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER['SCRIPT_NAME'];
+ else $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER['SCRIPT_NAME'];
+ return $pageURL;
+}
?>