Use functions (not global variables) for protocol and base_url
This commit is contained in:
		| @@ -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']; | ||||
| } | ||||
| ?> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user