1
0

Use functions (not global variables) for protocol and base_url

This commit is contained in:
2014-01-24 22:44:19 -05:00
parent 98e62cf748
commit 0bcbf328da
24 changed files with 55 additions and 53 deletions

View File

@ -7,6 +7,7 @@ function get_protocol() {
$protocol = "https";
return $protocol."://";
}
$protocol = get_protocol();
$base_url = $protocol.$_SERVER['HTTP_HOST'];
function get_base_url() {
return get_protocol().$_SERVER['HTTP_HOST'];
}
?>