회원가입 값 체크 코드 수정
This commit is contained in:
@ -5,8 +5,12 @@ include_once(G5_LIB_PATH.'/register.lib.php');
|
|||||||
$mb_email = trim($_POST['reg_mb_email']);
|
$mb_email = trim($_POST['reg_mb_email']);
|
||||||
$mb_id = trim($_POST['reg_mb_id']);
|
$mb_id = trim($_POST['reg_mb_id']);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_email', '');
|
||||||
|
|
||||||
if ($msg = empty_mb_email($mb_email)) die($msg);
|
if ($msg = empty_mb_email($mb_email)) die($msg);
|
||||||
if ($msg = valid_mb_email($mb_email)) die($msg);
|
if ($msg = valid_mb_email($mb_email)) die($msg);
|
||||||
if ($msg = prohibit_mb_email($mb_email)) die($msg);
|
if ($msg = prohibit_mb_email($mb_email)) die($msg);
|
||||||
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
|
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_email', $mb_email);
|
||||||
?>
|
?>
|
||||||
@ -4,9 +4,13 @@ include_once(G5_LIB_PATH.'/register.lib.php');
|
|||||||
|
|
||||||
$mb_id = trim($_POST['reg_mb_id']);
|
$mb_id = trim($_POST['reg_mb_id']);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_id', '');
|
||||||
|
|
||||||
if ($msg = empty_mb_id($mb_id)) die($msg);
|
if ($msg = empty_mb_id($mb_id)) die($msg);
|
||||||
if ($msg = valid_mb_id($mb_id)) die($msg);
|
if ($msg = valid_mb_id($mb_id)) die($msg);
|
||||||
if ($msg = count_mb_id($mb_id)) die($msg);
|
if ($msg = count_mb_id($mb_id)) die($msg);
|
||||||
if ($msg = exist_mb_id($mb_id)) die($msg);
|
if ($msg = exist_mb_id($mb_id)) die($msg);
|
||||||
if ($msg = reserve_mb_id($mb_id)) die($msg);
|
if ($msg = reserve_mb_id($mb_id)) die($msg);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_id', $mb_id);
|
||||||
?>
|
?>
|
||||||
@ -5,9 +5,13 @@ include_once(G5_LIB_PATH.'/register.lib.php');
|
|||||||
$mb_nick = trim($_POST['reg_mb_nick']);
|
$mb_nick = trim($_POST['reg_mb_nick']);
|
||||||
$mb_id = trim($_POST['reg_mb_id']);
|
$mb_id = trim($_POST['reg_mb_id']);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_nick', '');
|
||||||
|
|
||||||
if ($msg = empty_mb_nick($mb_nick)) die($msg);
|
if ($msg = empty_mb_nick($mb_nick)) die($msg);
|
||||||
if ($msg = valid_mb_nick($mb_nick)) die($msg);
|
if ($msg = valid_mb_nick($mb_nick)) die($msg);
|
||||||
if ($msg = count_mb_nick($mb_nick)) die($msg);
|
if ($msg = count_mb_nick($mb_nick)) die($msg);
|
||||||
if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg);
|
if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg);
|
||||||
if ($msg = reserve_mb_nick($mb_nick)) die($msg);
|
if ($msg = reserve_mb_nick($mb_nick)) die($msg);
|
||||||
|
|
||||||
|
set_session('ss_check_mb_nick', $mb_nick);
|
||||||
?>
|
?>
|
||||||
@ -79,6 +79,17 @@ if ($w == '' || $w == 'u') {
|
|||||||
if ($msg = valid_mb_id($mb_id)) alert($msg, "", true, true);
|
if ($msg = valid_mb_id($mb_id)) alert($msg, "", true, true);
|
||||||
if ($msg = count_mb_id($mb_id)) alert($msg, "", true, true);
|
if ($msg = count_mb_id($mb_id)) alert($msg, "", true, true);
|
||||||
|
|
||||||
|
// 이름, 닉네임에 utf-8 이외의 문자가 포함됐다면 오류
|
||||||
|
// 서버환경에 따라 정상적으로 체크되지 않을 수 있음.
|
||||||
|
$tmp_mb_name = iconv('UTF-8', 'UTF-8//IGNORE', $mb_name);
|
||||||
|
if($tmp_mb_name != $mb_name) {
|
||||||
|
alert('이름을 올바르게 입력해 주십시오.');
|
||||||
|
}
|
||||||
|
$tmp_mb_nick = iconv('UTF-8', 'UTF-8//IGNORE', $mb_nick);
|
||||||
|
if($tmp_mb_nick != $mb_nick) {
|
||||||
|
alert('닉네임을 올바르게 입력해 주십시오.');
|
||||||
|
}
|
||||||
|
|
||||||
if ($w == '' && !$mb_password)
|
if ($w == '' && !$mb_password)
|
||||||
alert('비밀번호가 넘어오지 않았습니다.');
|
alert('비밀번호가 넘어오지 않았습니다.');
|
||||||
if($w == '' && $mb_password != $mb_password_re)
|
if($w == '' && $mb_password != $mb_password_re)
|
||||||
@ -103,6 +114,14 @@ if ($w == '' || $w == 'u') {
|
|||||||
if ($w=='') {
|
if ($w=='') {
|
||||||
if ($msg = exist_mb_id($mb_id)) alert($msg);
|
if ($msg = exist_mb_id($mb_id)) alert($msg);
|
||||||
|
|
||||||
|
if (get_session('ss_check_mb_id') != $mb_id || get_session('ss_check_mb_nick') != $mb_nick || get_session('ss_check_mb_email') != $mb_email) {
|
||||||
|
set_session('ss_check_mb_id', '');
|
||||||
|
set_session('ss_check_mb_nick', '');
|
||||||
|
set_session('ss_check_mb_email', '');
|
||||||
|
|
||||||
|
alert('올바른 방법으로 이용해 주십시오.');
|
||||||
|
}
|
||||||
|
|
||||||
// 본인확인 체크
|
// 본인확인 체크
|
||||||
if($config['cf_cert_use'] && $config['cf_cert_req']) {
|
if($config['cf_cert_use'] && $config['cf_cert_req']) {
|
||||||
if(trim($_POST['cert_no']) != $_SESSION['ss_cert_no'] || !$_SESSION['ss_cert_no'])
|
if(trim($_POST['cert_no']) != $_SESSION['ss_cert_no'] || !$_SESSION['ss_cert_no'])
|
||||||
|
|||||||
Reference in New Issue
Block a user