묻고답하기

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

 

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 남기남
154154 닷홈에서 사용중인 게시판 페이지의 FTP경로를 알고 싶은데 경로를 찾는 방법이있나요? [2] 2018.01.12 by 154154
uppylook 유튜브 썸네일을 자동으로 저장하는 방법이 있을까요? [1] 2018.01.12 by HowtoXE
너무잠이와요 Specified query ID value is invalid 오류 [2] 2018.01.12 by 너무잠이와요
너무잠이와요 스킨내에서 query 문 실행 [2] 2018.01.12 by 너무잠이와요
정승열 XE에서 이미지 용량 늘이기 질문 file  
너무잠이와요 xe 개발자 메뉴얼 [2] 2018.01.11 by 너무잠이와요
jforgood 게시판 스킨 적용시 확장변수 자동 생성 [1] 2018.01.11 by 너무잠이와요
csc17134 레이아웃 수정 좀 도와주세요 [2] 2018.01.11 by Ansi™
crazyfox**** 게시판에서 상단 로고클릭시 홈페이지 메인으로 이동하는 방법 [2] 2018.01.11 by crazyfox****
카이4525b 글 등록시 등록중 표시 할 수 없나요? file  
카이4525b 네이버 애널리틱스 사용하시는 분 계시나요? [2] 2018.01.11 by 카이4525b
JinK 스케치북 사용시 표만들기.  
두르 1and1 사이트 탈퇴 문의 [3] file 2018.01.10 by Ansi™
가나다 코멘트입력창을 코멘트 상단으로 올리고 싶습니다. [1] 2018.01.10 by Ansi™
유화 홈페이지 상단의 로고 클릭시 홈페이지연결 도와주세요 ㅠ [1] 2018.01.10 by Ansi™
비욘세 www.도메인.com/xe 리다이렉트 문의  
달재 내용 변경에 관한 문의드립니다. 도움 부탁드립니다. [4] 2018.01.10 by 달재
방랑식객 1.9.0 업데이트 후 저장 or 등록 버튼 미 리턴 문제 [5] 2018.01.09 by 최황삼
코카콜라 아이디의 값은 영문, 숫자, _만 가능하며 첫글자는 영문이어야 합니다.] 로그인 도와주세요 [2] 2018.01.09 by DoorWeb
psh0**** 관리자 페이지 접속오류 file  
타이레놀 도와주세요. 갑자기 홈 접속이 안되는데요 [3] 2018.01.09 by 타이레놀
권만주 특정그룹에 게시판 HTML 편집기에 style css 코드 삽입 권한 문의  
카이4525b 서버 이전... 총체적 난국입니다...ㅠㅠ [2] 2018.01.08 by 카이4525b
rail_man 섬네일 이미지가 일정하게 나타나지 않습니다. [4] 2018.01.08 by rail_man
타이레놀 메인화면에 최근게시물 안나오게 하는 방법이요 [1] 2018.01.08 by Ansi™
화랑529 사이트 이전했는데.. 왜 이런게 뜨나요 ??  
곰북이 로그인 오류  
waydo php 5.3에서만 작동합니다. [1] 2018.01.07 by waydo
유샤인 ver 1.9.2로 새로 만든 XE에 로그인 시에 이런 에러 메세지가 뜹니다.  
쮸야282 폰에서는 로그인인 되는데 웹에서는 안되네요. [1] file 2018.01.06 by 휘즈