Merge branch 'kjh_master' of github.com:gnuboard/g5-update into update_220613
This commit is contained in:
@ -516,7 +516,10 @@ if (isset($_SESSION['ss_mb_id']) && $_SESSION['ss_mb_id']) { // 로그인중이
|
||||
$member = get_member($_SESSION['ss_mb_id']);
|
||||
|
||||
// 차단된 회원이면 ss_mb_id 초기화, 또는 세션에 저장된 회원 토큰값을 비교하여 틀리면 초기화
|
||||
if( ($member['mb_intercept_date'] && $member['mb_intercept_date'] <= date("Ymd", G5_SERVER_TIME)) || (function_exists('check_auth_session_token') && !check_auth_session_token($member['mb_datetime'])) ) {
|
||||
if( ($member['mb_intercept_date'] && $member['mb_intercept_date'] <= date("Ymd", G5_SERVER_TIME))
|
||||
|| ($member['mb_leave_date'] && $member['mb_leave_date'] <= date("Ymd", G5_SERVER_TIME))
|
||||
|| (function_exists('check_auth_session_token') && !check_auth_session_token($member['mb_datetime']))
|
||||
) {
|
||||
set_session('ss_mb_id', '');
|
||||
$member = array();
|
||||
} else {
|
||||
|
||||
@ -32,10 +32,11 @@ class HttpClient {
|
||||
$data = substr($data, 1); // remove leading "&"
|
||||
$url_data = parse_url($url);
|
||||
|
||||
// host 가 inicis.com 의 주소가 아니라면 false 반환
|
||||
// [scheme] => https, [host] => fcstdpay.inicis.com, [path] => /api/payAuth
|
||||
if (preg_match("#inicis\.com$#", $url_data["host"]) == false) {
|
||||
// error_log(print_r($url_data, 1));
|
||||
// host 가 .inicis.com 의 주소가 아니라면 false 반환
|
||||
// [scheme] => https
|
||||
// [host] => fcstdpay.inicis.com || stdpay.inicis.com || ksstdpay.inicis.com
|
||||
// [path] => /api/payAuth
|
||||
if (preg_match("#\.inicis\.com$#", $url_data["host"]) == false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user