function get_current_url_unsafe(){ $uri = getenv('REQUEST_URI'); $https = getenv('HTTPS'); $host = getenv('HTTP_HOST'); $protocol = ($https == 'on') ? 'https':'http'; $url = "{$protocol}://{$host}{$uri}"; return $url; } $url = get_current_url_unsafe(); //echo $url; ?>
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||