/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
/*
* 제작자: LI-NA (hyung778@gmail.com);
* 라이선스: GPL v2;
* 쿠로네코: 다이스키;
*/
$ai = $addon_info;
$allowed_email_list = explode("\r\n", $ai->allowed_email_list);
$allowed_nick_sc_list = explode("\r\n", $ai->allowed_nick_sc_list);
$block_member_extvar_list = explode("\r\n", $ai->block_member_extvar_list);
$logged_info = Context::get('logged_info');
if($logged_info->is_admin == 'Y' && $ai->block_admin == 'y') return;
if($called_position=='before_module_init') {
if(Context::get('act')=='procMemberInsert') {
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = 'Only english is allowed for name.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_incert == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지를 등록할 수 없습니다.';
if($ai->block_image_name_incert == 'y' && Context::get('image_name')) $error_msg = '이미지 이름을 등록할 수 없습니다.';
if($ai->block_image_mark_incert == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크를 등록할 수 없습니다.';
}else if(Context::get('act')=='procMemberModifyInfo') {
if($ai->block_email_modifiy == 'y' && $logged_info->email_address != Context::get('email_address')) $error_msg = '메일 주소는 변경하실 수 없습니다.';
if($ai->block_id_modifiy == 'y' && $logged_info->user_id != Context::get('user_id')) $error_msg = '아이디는 변경하실 수 없습니다.';
if($ai->block_name_modifiy == 'y' && $logged_info->user_name != Context::get('user_name')) $error_msg = '이름은 변경하실 수 없습니다.';
if($ai->block_nick_modifiy == 'y' && $logged_info->nick_name != Context::get('nick_name')) $error_msg = '닉네임은 변경하실 수 없습니다.';
// if($ai->kakao_email_chk == 'y') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
// }
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
if($ai->block_name_incert != 'n') {
$temp_name = iconv(mb_detect_encoding(Context::get('user_name'), 'auto'),'utf-8',Context::get('user_name'));
if($ai->block_name_incert == 'k' && !preg_match("/[\xA1-\xFE][\xA1-\xFE]/", $temp_name)) $error_msg = '이름은 한글 1자 이상 포함되어야 됩니다.';
$temp_name = explode(' ',Context::get('user_name'));
if($ai->block_name_incert == 'e' && !preg_match("/^([a-zA-Z]+)$/u", $temp_name)) $error_msg = '이름은 영어만 허용됩니다.';
}
if($ai->block_name_length != 0) {
if($ai->block_name_length_type == '1' && mb_strlen(Context::get('user_name'),'utf-8') > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
if($ai->block_name_length_type == '2' && strlen(Context::get('user_name')) > $ai->block_name_length) $error_msg = '이름은 '.$ai->block_name_length.'자까지만 허용됩니다.';
}
if($ai->block_nick_char_incert != 'n') {
if($ai->block_nick_char_incert == 'e' && preg_match('/([a-zA-Z]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 영문은 허용되지 않습니다.';
if($ai->block_nick_char_incert == 'k' && preg_match('/([가-힣]+)/u',Context::get('nick_name'))) $error_msg = '닉네임에 한글은 허용되지 않습니다.';
}
if($ai->block_nick_sc_incert == 'y') {
$temp_nick = iconv(mb_detect_encoding(Context::get('nick_name'), 'auto'),'utf-8',Context::get('nick_name'));
$temp_nick = str_replace($allowed_nick_sc_list,'a',$temp_nick);
if(!preg_match('/^([가-힣a-zA-Z]+)$/u',$temp_nick)) $error_msg = '닉네임에 특수문자는 허용되지 않습니다.';
}
if($ai->block_nick_length != 0) {
if($ai->block_nick_length_type == '1' && mb_strlen(Context::get('nick_name'),'utf-8') > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
if($ai->block_nick_length_type == '2' && strlen(Context::get('nick_name')) > $ai->block_nick_length) $error_msg = '닉네임은 '.$ai->block_nick_length.'자까지만 허용됩니다.';
}
if($ai->block_profile_image_change == 'y' && Context::get('profile_image')) $error_msg = '프로필 이미지는 변경하실 수 없습니다';
if($ai->block_image_name_change == 'y' && Context::get('image_name')) $error_msg = '이미지 이름은 변경하실 수 없습니다';
if($ai->block_image_mark_change == 'y' && Context::get('image_mark')) $error_msg = '이미지 마크는 변경하실 수 없습니다';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
if($logged_info->$val != Context::get($val)) $error_msg = $val.'은(는) 변경하실 수 없습니다';
}
}
}else if(Context::get('act')=='procMemberModifyEmailAddress' || Context::get('act')=='procMemberResetAuthMail') {
$kakao_email_chk = explode('@',Context::get('email_address'));
$kakao_email_chk = $kakao_email_chk[1];
if($kakao_email_chk =='kakao.com') $error_msg = 'kakao.com 의 이메일은 임시로 저장된 메일입니다.
수신이 가능한 다른 이메일을 입력해 주세요';
if($ai->block_email_incert == 'y') {
$mail_host = explode('@',Context::get('email_address'));
$mail_host = $mail_host[1];
if(!in_array($mail_host,$allowed_email_list)) $error_msg = '허용되지 않는 메일 주소입니다.';
}
}
if($error_msg) {
$error_info = new stdClass;
$error_info->msg = $error_msg;
$error_info->id = Context::get('xe_validator_id');
$_SESSION['addon_error'] = $error_info;
header('HTTP/1.1 301 Moved Permanently');
header('Location: '.Context::get('error_return_url'),true, 301);
Context::close();
exit();
}
}else if($called_position=='after_module_proc' && $_SESSION['addon_error']) {
$error_info = $_SESSION['addon_error'];
unset($_SESSION['addon_error']);
Context::set('XE_VALIDATOR_MESSAGE',$error_info->msg);
Context::set('XE_VALIDATOR_MESSAGE_TYPE','error');
Context::set('XE_VALIDATOR_ID',$error_info->id);
}else if($called_position=='before_display_content' && $ai->block_html_blocked == 'y') {
$block_list = '';
$disabled_list = '';
if(Context::get('act')=='dispMemberSignUpForm') {
if($ai->block_profile_image_incert == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_incert == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_incert == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
}else if(Context::get('act')=='dispMemberModifyInfo') {
if($ai->kakao_email_chk == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_email_modifiy == 'y') $block_list = $block_list.'\'email_address\',';
if($ai->block_id_modifiy == 'y') $block_list = $block_list.'\'user_id\',';
if($ai->block_name_modifiy == 'y') $block_list = $block_list.'\'user_name\',';
if($ai->block_nick_modifiy == 'y') $block_list = $block_list.'\'nick_name\',';
if($ai->block_profile_image_change == 'y') $disabled_list = $disabled_list.'\'profile_image\',';
if($ai->block_image_name_change == 'y') $disabled_list = $disabled_list.'\'image_name\',';
if($ai->block_image_mark_change == 'y') $disabled_list = $disabled_list.'\'image_mark\',';
if($ai->block_member_extvar == 'y') {
foreach($block_member_extvar_list as $key => $val) {
$block_list = $block_list.'\''.$val.'\',';
}
}
}
$block_list = $block_list.'\'tamp\'';
$disabled_list = $disabled_list.'\'tamp\'';
$code = "";
if(Context::get('act')=='dispMemberSignUpForm' || Context::get('act')=='dispMemberModifyInfo') Context::addHtmlHeader($code);
}
?>
태그공부 - 페이스북,트위터 meta 관련 함수 정의
요즘 SNS 공유하기 버튼은 필수!~
그런데 원하는 내용으로 공유가 잘 안되어 골치아프다..
meta태그를 이용하면, 공유하기 연동시 원하는 내용으로 설정할 수 있는데 SNS마다 조금씩 차이가 있기에 정리해본다.
meta태그 뿐 아니라 웹페이지의 기본속성인 <title>과 <meta name="description">, <meta name="keywords"> 등의 값은 검색에도 도움이 되니 꼭 설정해 주도록 하자!
<!-- 페이스북 -->
<meta property="og:title" content="제목"/> <meta property="og:site_name" content="사이트명"/> <meta property="og:type" content="분류 (website,article,place,product,event ...)"/> <meta property="og:url" content="주소"/> <meta property="og:image" content="썸네일 (200x200.jpg)"/> <meta property="og:description" content="요약글"/>
<!-- 트위터 -->
<meta name="twitter:card" content="분류 (summary, photo, gallery ...)"> <meta name="twitter:title" content="제목"> <meta name="twitter:site" content="사이트명"> <meta name="twitter:creator" content="작성자명"> <meta name="twitter:image" content="썸네일"> <meta name="twitter:description" content="포스트 내용">
<!-- 미투데이 -->
<meta property="me2:post_body" content="포스트 내용"/> <meta property="me2:post_tag" content="태그"/> <meta property="me2:image" content="썸네일"/> <meta property="me2:latitude" content="위도"/> <meta property="me2:longitude" content="경도"/> <meta property="me2:post_icon" content="포스트 아이콘 (1~12 숫자"/> <meta property="me2:category1" content="카테고리1"/> <meta property="me2:category2" content="카테고리2"/>
이 외에도 몇가지 속성이 있기에.. 필요하다면 각 SNS의 개발 레퍼런스를 참고하자~
추가로 개발 레퍼런스의 주소가 바뀌는 경우도 있어서 캡쳐한 화면을 올리는데, 속성값이 변경될 수 있으니 적용이 안되면~ 가이드를 다시 찾아보자~
(2013년 11월 1일 기준)
페이스북
글 종류를 type으로 구분하여 사용
속성: https://developers.facebook.com/docs/opengraph/creating-object-types/#properties
타입분류: https://developers.facebook.com/docs/opengraph/property-types/
트위터
트위터는 글 종류를 card 타입으로 구분하여 사용
속성: https://dev.twitter.com/docs/cards/markup-reference
미투데이
사실 미투데이는 잘 안쓰고, 레퍼런스도 잘 못찾겠어서.. 일단 대충 패스 ㅎㅎ
플러그인 레퍼런스: http://me2day.net/me2/plugin/guide/metoo_plugins
API 레퍼런스: http://developer.naver.com/wiki/pages/Me2dayAPI
출처 : http://classe82.blog.me/20198541611
■ 연관된글
-
수용화(수원,용인,화성)커뮤니티(구)수원성 페이스북 그룹 오픈
-
메르스 관련 페이지 오픈
-
메르스 첫번째 희생자의 페이스북 내용
-
수수료 관련 메뉴 보완 및 기사 기본정보 툴팁기능 업데이트 안내
(안심) 짧은 주소는 :
입니다
List of Articles
| 번호 | 제목 |
날짜 | 조회 수 |
|
28 |
table 테이블, 칸에서 수평, 수직정렬 (align, valign)
TABLE의 수평,수직 정렬 테이블에서 정렬시 테이블관련 속성에서 지원하는 align을 사용하도록 하자!!! 새로운 <p align=center> 내용 </p> 태그를 사용할 필요가...
|
2017.02.20 | 763 |
|
27 |
구글 해킹 취약점 2
검색 서비스는 우리들이 접할 수 있는 각종 포털 탈사이트(다음, 야후, 네이버, 엠파스등)에서도 제공해 준다. 하지만 대부분의 이러한 사이트들의 검색엔진은 포...
|
2015.05.05 | 28278 |
|
26 |
구글링 해킹 취약점
구글은 정보수집 작업중 꼭 거쳐야 하는 작업으로 삭제를 해도 DB에 저장되어 있는 것이 있기 때문에 검색을 한다면 중요 파일부터, 기밀정보 등을 볼수있다. 구...
|
2015.04.29 | 4105 |
|
25 |
국내 오픈 API 자료
부록. 국내 오픈 API 자료해외에서는 이미 1990년대 부터 마이크로소프트, 썬마이크로시스템즈 등 소프트웨어 플랫폼을 이용한 외부 개발자 전도(Developer Evang...
|
2015.02.12 | 1483 |
|
24 |
유튜브의 동영상을 검색할 수 있는 API입니다.
유튜브의 동영상을 검색할 수 있는 API입니다. 기본 URL http://gdata.youtube.com/feeds/api/videos 파라메터 q : 검색하고자 하는 검색어입니다. alt : 리턴받...
|
2015.01.28 | 2848 |
|
23 |
구글 URL Shortener API
회사에서 앱에 버전정보를 관리하는 툴을 개발하여 사용하고 있습니다. 다운로드 화일에 대한 메일을 보낼수도 있고 URL 복사해서 보낼수도 있고 카톡을 통해 보...
|
2015.01.26 | 4191 |
|
22 |
Facebook 에 이미지와 URL을 공유할때 주의해야 할점
Facebook 에 이미지와 URL을 공유할때 주의해야 할점 - 이미지는 200px*200px 이상(470px*246px 권장) - Redirect 는 안하는게 좋음 - Debug 를 하자 https://dev...
|
2015.01.26 | 1574 |
|
» |
페이스북,트위터 meta 관련 함수 정의
요즘 SNS 공유하기 버튼은 필수!~ 그런데 원하는 내용으로 공유가 잘 안되어 골치아프다.. meta태그를 이용하면, 공유하기 연동시 원하는 내용으로 설정할 수 있...
|
2015.01.26 | 2448 |
|
20 |
모바일웹 전화걸기 링크
아직 안써보긴 했는데. 조만간 쓸일 이 있을거 같아서 자료를 찾아봤다. 모바일웹 제작시 전화걸기 링크. 터치하면 전화걸기 <a href = "tel:02-3395-0000">3395-...
|
2015.01.14 | 2745 |
|
19 |
한번에 끝내는 Ubuntu 웹서버세팅 (우분투 서버세팅)
다시 요약해서 최신에 맞게 작성해 봅니다. 최종수정 : 2014-10-16 현재 배포된 Ubuntu 버전은 아래와 같습니다. 운영체제의 수명이 긴 LTS 버전을 설치하도록 합...
|
2014.12.11 | 3223 |
|
18 |
웹접속 브라우저 정보 가져오기
<?function check_agent() { global $HTTP_SERVER_VARS; /*----------------------------------------------------------------- OS Pattern 'keyword' => 'name'...
|
2014.11.14 | 1378 |
|
17 |
지도 링크 주소 형식
빨간색 부분은 변경 가능한 부분. 네이버 지도http://maps.naver.com/?menu=location&mapMode=0&lat=37.5702182&lng=126.9792156&dlevel=14&...
|
2014.11.11 | 5458 |
|
16 |
$_SERVER [ ] 값
$_SERVER['DOCUMENT_ROOT'] = 현재 사이트가 위치한 서버상의 위치 => /webapp/include $_SERVER['HTTP_ACCEPT_ENCODING'] = 인코딩 받식 => gzip, deflate $_SER...
|
2014.11.06 | 1149 |
|
15 |
유튜브 동영상 다운로드 받는 간편한 방법
유튜브에서 동영상을 보다 보면 다운로드 받고 싶어질 때가 있다. 유튜브 동영상을 다운로드 받는 방법은 다양하게 있겠지만, 지금까지 본 방법 중 가장 쉬운 방...
|
2014.10.17 | 1795 |
|
14 |
[팁] 페이스북 동영상 간단히 다운로드 받는 방법
페이스북에 올라와 있는 동영상을 보다 보면 다운로드 받고 싶은 생각이 들 때가 있다. 그러나 페이스북 동영상은 바로 다운 받을 수 없게 되어 있다. 간단하게 ...
|
2014.10.17 | 2768 |
|
13 |
웹사이트를 통째로 다운로드 할 수 있는 툴
Website Copier 또는 Offline Browser 로 불리우는 3가지 무료 유틸리티를 소개합니다. 소스 코드까지 공개 되어 있는 오픈 소스 소프트웨어 HTTrack 과 Free Dow...
|
2014.09.18 | 13230 |
|
12 |
카카오스토리 웹연동
<!doctype HTML> < html> < head> < meta charset="utf-8"> < meta http-equiv="X-UA-Compatible" content="IE=edge" /> < title>Login Demo - Kakao Javascript ...
|
2014.08.20 | 7881 |
|
11 |
카카오링크, 스토리링크, 마이피플 보내기 정보
커피는막심 님 소스를 이용해서 만들어 보았습니다. http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=26976&sca=&sfl=wr_subject%7C%7Cwr...
|
2014.05.03 | 6785 |
|
10 |
php 내장함수
PHP내장함수는 다음과 같습니다. 내용이 길지만 참고하시길... *time() -용도: 현재 시각을 timestamp값으로 구한다. -방법: time() *date() -용도: 사용자가 지...
|
2014.03.07 | 2813 |
|
9 |
두개의 전화번호 구성 알아내기
DB이전시 전화번호가 2가지 종류로 뒤섞여 있어 하나 구성해 봤습니다. ex ) 02-1111-2222 0211112222 위와 같이 뒤섞여 있는 데이터 입니다. 참고하시고 더 좋은...
|
2014.03.04 | 3137 |
Copyright by Myceo 2008 All rights reserved
수원시 팔달구 인계동 1017-3 2층
☏1600-0324
Made By Myceo
sketchbook5, 스케치북5
sketchbook5, 스케치북5
나눔글꼴 설치 안내
이 PC에는 나눔글꼴이 설치되어 있지 않습니다.
이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.
설치
취소