+ // Compile the script name
+ $script = COMPILE_CODE($script);
+
+ // Use default SERVER_URL by default... ;) So?
+ $url = SERVER_URL;
+ if (substr($script, 0, 7) == "http://") {
+ // Use the hostname from script URL as new hostname
+ $url = substr($script, 7);
+ $extract = explode("/", $url);
+ $url = $extract[0];
+ // Done extracting the URL :)
+ }
+