/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다. 수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
좋은글 - 부딪치면 해결된다
You cannot see this page without javascript.
사람들은 보기싫고 어려운 일 생기면 피하려한다. 형제끼리 의견이달라 싸우면 다시 안볼것처럼 으르릉거린다. 친구도 생각이 달라 의견 충돌이 되면 피하려 한다. 부모 자식간에도 친척들에게 어려운일 생기면 피하려 한다. 그것은 그 일이 잠시 보류상태지 해결 된것은 아니다. 어려운 일 일수록 부딪치면 해결되는 것이다. 어렵다고 자꾸 피하면 피한만큼 늦어지고 점점 멀리 도망가 일이 꼬일수도 있는것이지 그일이 해결된것은 아니다. 먼저 나를 낮추고 한번더 생각해 보는것이다. 상대가 잘했건 잘못했건 웃는 낯으로 서먹거리는 분위기를 삭 히고 폭넓게 생각해 보면 해결 안되는 일이 없는것이다. 세상사 모든게 서로 욕심부리는데서 많이 생기는것이다. 양보 할려면은 먼저 기분좋게 싹싹하게 양보하라. 그러면 상대도 웃는 얼굴에 침뱉지 못하는것이다. 세상사 죽고사는일 아니면 해결 안된게 어디 있겠는가, 양보하고 용서하라. 용서하면 용서 받는사람이나 용서하는 사람 다같이 기분이 좋은 것이다. 어렵고 힘들다고 절대 도망 가서는 안된다. 도망갈수록 스트레이스가 쌓여 건강에 치명적으로 안좋은것이다. 용서하고 양보하면 잠도 잘온다. 그래서 부딪치면 해결되고 건강에도 보약보다 좋은것이다. 용서하고 양보하거라... *** 미운 사람이 많을수록 행복은 반비례하고 좋아하는 사람이 많을수록 행복은 정비레한다***
(안심) 짧은 주소는 :
입니다
Copyright by Myceo 2008 All rights reserved
수원시 팔달구 인계동 1017-3 2층
☏1600-0324
Made By Myceo
sketchbook5, 스케치북5
sketchbook5, 스케치북5
X
나눔글꼴 설치 안내
이 PC에는 나눔글꼴 이 설치되어 있지 않습니다.
이 사이트를 나눔글꼴 로 보기 위해서는나눔글꼴 을 설치해야 합니다.
설치
취소