SSL 선택적 사용시 XEDITION 레이아웃의 로그인 팝업에 SSL이 적용되지 않는 문제 수정

This commit is contained in:
Kijin Sung 2015-10-14 11:36:11 +09:00
parent 0326a8b5d1
commit 592328eeb0
2 changed files with 14 additions and 2 deletions

View file

@ -471,6 +471,18 @@ function getFullSiteUrl()
return $url;
}
/**
* Return the exact url of the current page
*
* @return string
*/
function getCurrentPageUrl()
{
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
return htmlspecialchars($url, ENT_COMPAT, 'UTF-8', FALSE);
}
/**
* Return if domain of the virtual site is url type or id type
*