/*
* 제작자: 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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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') {
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->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);
}
?>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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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') {
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->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);
}
?>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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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') {
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->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);
}
?>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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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->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("/^([가-힣]+)$/u", $temp_name)) $error_msg = '이름은 한글만 허용됩니다.';
$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') {
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->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);
}
?>
수블미 - 수원의 열두번째 - 신규 블루하우스 '깨작깨작'입니다 : )
안녕하세요 수블미 회원분들
이번 블루하우스 선정된 '깨작깨작;들깨놀이터' 입니다.
충북 음성군에 위치한 '깨작깨작'은 어린이 들깨 체험과 내외부 단독대관을 병합한 체험장이라고 보시면 될것 같습니다.
(빅버드 출발기준 차로 1시간 10분정도 걸립니다)
네이버 예약에서 회차를 선택하여 예약하면 들깨관련 체험프로그램은 20분 내외 진행하면서 총 2시간 동안 내외부 놀이공간에서 자유롭게 아이들이 놀수 있게끔 단독대관으로 이용가능한 공간입니다.
(얼마 전 개인계정으로 청백적 미니카 트랙 올리며 자영업 준비한다고 했던 그곳 맞습니다^^)
제가 10여년전 부모님과함께 들기름 수출 및 가공 업장을 운영하러 음성군으로 내려오면서부터 음성군에 거주하다보니 충북지역 2호 블루하우스로 선정되었습니다. (1호는 다들 아시죠?홍먹!)
아쉽게도 4월 블루하우스 이벤트에는 선정되지 않아
전진우선수 브로마이드는 드릴수 없지만
블루하우스 선정 기념 깨작깨작x수원 스티커를 자체 제작하였습니다.
방문주시는 수원팬 아이들에게 드릴테니 많은 관심 부탁드립니다.
아이들 체험&단독 대관 놀이터라고 해서 성인분들께서 방문 아예 안되는것은 아닙니다.
외부음식을 가져오셔도 되니까 체험 즐기시고 편안하게 대관 이용하시면서 음식도 드셔도 됩니다
(가스시설은 없습니다)
내외부공간이 있는 단독대관 형식이다보니 소모임분들 워크샵 대관문의도 언제든 환영합니다^^
추후 수원삼성과 관련된 다양한 어린이 체험, 행사도 진행해보고자 합니다.^^
많은 유아,어린이 팬들 관심부탁드려요!
인스타그램
https://www.instagram.com/kkaezak_kkaezak/
네이버예약
https://booking.naver.com/booking/12/bizes/1084146?area=plt&theme=place
다가오는 안양전도 승리하면서 승격까지 쭉 기세를 이어나가길 바라겠습니다!
감사합니다
-
주니크컬러
조회 수 653
24.04.22.19:09 +35
-
해리슨
조회 수 435
24.04.20.21:50 +2 -11
-
블루프린트
조회 수 495
24.04.19.18:57 +7
-
깨작깨작
조회 수 760
24.04.19.17:57 +44
-
산토수
조회 수 476
24.04.19.16:52 +21
-
돌아와블루윙
조회 수 1518
24.03.27.21:13 +103
-
아크펍
조회 수 935
24.03.04.12:52 +9
-
이윤태
조회 수 995
24.02.28.22:10 +4
-
백골청년
조회 수 1357
24.02.13.13:51 +79
-
스탄게츠
조회 수 1133
24.01.25.14:12 +62
-
이윤태
조회 수 1302
24.01.10.11:28 +6
-
스탠
조회 수 525
24.01.04.19:17 +22
-
정상넨
조회 수 987
23.12.08.00:23 +26 -2
-
해리슨
조회 수 343
23.11.23.18:32 +5
-
-
블루프린트
조회 수 263
23.11.02.09:57 +7
-
산토수
조회 수 643
23.08.30.19:07 +19 -1
-
산토수
조회 수 581
23.08.17.16:25 +16
-
산토수
조회 수 453
23.07.18.22:21 +20
-