통합인증 : php8버전 관련 에러 수정, 재인증시 성명도 갱신되게 쿼리 추가

This commit is contained in:
projectSylas
2021-09-28 06:56:02 +00:00
parent 497ac75031
commit 166c5e92bd
4 changed files with 14 additions and 6 deletions

View File

@ -7,9 +7,11 @@ if (!($w == '' || $w == 'u')) {
alert('w 값이 제대로 넘어오지 않았습니다.');
}
if($w == '')
if($w == '') {
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
else
$mb_name = isset($_POST['mb_name']) ? trim($_POST['mb_name']) : '';
$mb_hp = isset($_POST['mb_hp']) ? trim($_POST['mb_hp']) : '';
} else
alert('잘못된 접근입니다', G5_URL);
if(!$mb_id)
@ -41,8 +43,7 @@ if ($config['cf_cert_use'] && $cert_type && $md5_cert_no) {
$sql_certify .= " , mb_birth = '".get_session('ss_cert_birth')."' ";
$sql_certify .= " , mb_sex = '".get_session('ss_cert_sex')."' ";
$sql_certify .= " , mb_dupinfo = '".get_session('ss_cert_dupinfo')."' ";
if($w == 'u')
$sql_certify .= " , mb_name = '{$mb_name}' ";
$sql_certify .= " , mb_name = '{$mb_name}' ";
} else {
$sql_certify .= " mb_hp = '{$mb_hp}' ";
$sql_certify .= " , mb_certify = '' ";