HOR-2773 we need to use G::is_https() for get the protocol

change to use G::is_https()
This commit is contained in:
Marco A. Nina Mena
2017-02-23 15:14:44 -04:00
parent 55bea03c6a
commit 41eb7b2f9a
14 changed files with 13 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ if (function_exists("http_response_code")) {
http_response_code(200);
}
$http = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https" : "http";
$http = G::is_https() ? "https" : "http";
$host = $_SERVER["SERVER_NAME"] . (($_SERVER["SERVER_PORT"] != "80") ? ":" . $_SERVER["SERVER_PORT"] : "");
$urlLogin = $http . "://" . $host . "/sys/en/neoclassic/login/login";