묻고답하기

홈페이지 헤더 부분에 아래와 같이 뜹니다.

 

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); } ?>

 
 
 
현재 NGINX, PHP, MYSQL 구조 입니다.
 
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
lis**** 회원정보 보기에서 특정탭 기능 제거 [2] file 2018.02.23 by 메이퀸
인룸 쉬운설치  
메이퀸 익명게시판에서 회원정보보기랑 작성한 글, 댓글 보기 하려고합니다.  
인룸 가르쳐주세요 [1] 2018.02.23 by SEAGER
휴ㅣ노 XE Core ver 1.9.2 업데이트 후 홈페지가 안열려요? [6] file 2018.02.23 by SEAGER
무한잉크 네이버 웹마스터 도구 file  
probass XE core '1.7.3.6' 설치가 XE core '1.5.4.3' 데모페이지로 바귀었어요  
홈런볼11 특정 ip 만 허용하는 조건문 [2] 2018.02.23 by 이동근
5146362 레이아웃 변경 적용이 안됩니다 [1] file 2018.02.23 by 이동근
모얼더 cloudflare CDN 위치가 원래 오락가락 하나요? [5] 2018.02.23 by 다니엘
라이온 제*로보드 질문  
zigtruck 버튼추가, 아이콘변경이 따로 가능한가요? file  
프로개미 xe debugPrint 가 안됩니다. php7.0 [1] 2018.02.22 by gidd****
무한잉크 레벨포인트에 수식을 어떻게 적어야 할지... [1] file 2018.02.21 by sejin7940
true0 게시판 목록형식을 변경하고 싶습니다. [1] file 2018.02.21 by sejin7940
무한잉크 .htaccess [1] 2018.02.21 by 무한잉크
한누리 제로보드 v.4 이용자입니다  
whiterose5889 www 붙여주는 addon 설정후 관리자 login 불가... [1] file 2018.02.21 by HowtoXE
니콜라스요 마켓 플레이스 수익 방법은 무엇인가요? [3] 2018.02.21 by HowtoXE
성호군 회원만 일괄 삭제방법. [1] 2018.02.20 by sejin7940
메이퀸 추천 이동 모듈(sejin7940_vote)을 비추천에서도 사용하고싶습니다. [1] 2018.02.20 by sejin7940
화니짱 편집메뉴가 오류입니다. [1] 2018.02.20 by sejin7940
bb 관리자페이지 오류. [1] 2018.02.20 by sejin7940
카이4525b 포인트팡팡플러스 와 회원관리오류... [2] 2018.02.19 by 카이4525b
colorpen 게시글 이미지업로드 에러  
판다렌 혹시 MS Azure 웹 앱에 XE 올려보신 분 있나요?  
0115 로그인이 되지 않습니다. [3] 2018.02.17 by whiterose5889
xe_마니 DoorWeb 레이아웃 B 문의드립니다.  
클로버홈 XE3 사용자 매뉴얼은 없습니까? [2] 2018.02.14 by 클로버홈
클로버홈 XE Core와 XE3의 차이점이 무엇입니까? [2] 2018.02.14 by 클로버홈