Created
August 12, 2016 06:48
-
-
Save enlacee/7868f078f5e3a634824597c979e5b1fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/wp-content/themes/lbel2/headerCountrySelect.php:7 | |
echo getCurrentURL() | |
function getCurrentURL() | |
{ | |
$currentURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
$currentURL .= $_SERVER["SERVER_NAME"]; | |
if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") { | |
$currentURL .= ":".$_SERVER["SERVER_PORT"]; | |
} | |
$currentURL .= $_SERVER["REQUEST_URI"]; | |
return $currentURL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment