스팸방지 를 자동등록방지 로 수정
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "300100";
|
$sub_menu = "300100";
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|
||||||
@ -40,10 +39,6 @@ include_once(G4_PATH.'/head.sub.php');
|
|||||||
<label for="copy_case2">구조와 데이터</label>
|
<label for="copy_case2">구조와 데이터</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th scope="col">자동등록방지</th>
|
|
||||||
<td><?=captcha_html();?></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@ -63,8 +58,6 @@ function fboardcopy_check(f)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
<? echo chk_captcha_js(); ?>
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,14 +1,9 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = '300100';
|
$sub_menu = '300100';
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$target_table = escape_trim($_POST['target_table']);
|
$target_table = escape_trim($_POST['target_table']);
|
||||||
$target_subject = escape_trim($_POST['target_subject']);
|
$target_subject = escape_trim($_POST['target_subject']);
|
||||||
|
|
||||||
@ -32,78 +27,87 @@ $file_copy = array();
|
|||||||
// 게시판 정보
|
// 게시판 정보
|
||||||
$sql = " insert into {$g4['board_table']}
|
$sql = " insert into {$g4['board_table']}
|
||||||
set bo_table = '$target_table',
|
set bo_table = '$target_table',
|
||||||
bo_subject = '$target_subject',
|
gr_id = '{$board['gr_id']}',
|
||||||
gr_id = '{$board['gr_id']}',
|
bo_subject = '$target_subject',
|
||||||
bo_admin = '{$board['bo_admin']}',
|
bo_device = '{$board['bo_device']}',
|
||||||
bo_list_level = '{$board[bo_list_level]}',
|
bo_admin = '{$board['bo_admin']}',
|
||||||
bo_read_level = '{$board[bo_read_level]}',
|
bo_list_level = '{$board[bo_list_level]}',
|
||||||
bo_write_level = '{$board[bo_write_level]}',
|
bo_read_level = '{$board[bo_read_level]}',
|
||||||
bo_reply_level = '{$board[bo_reply_level]}',
|
bo_write_level = '{$board[bo_write_level]}',
|
||||||
bo_comment_level = '{$board[bo_comment_level]}',
|
bo_reply_level = '{$board[bo_reply_level]}',
|
||||||
bo_upload_level = '{$board[bo_upload_level]}',
|
bo_comment_level = '{$board[bo_comment_level]}',
|
||||||
bo_download_level = '{$board[bo_download_level]}',
|
bo_upload_level = '{$board[bo_upload_level]}',
|
||||||
bo_html_level = '{$board[bo_html_level]}',
|
bo_download_level = '{$board[bo_download_level]}',
|
||||||
bo_link_level = '{$board[bo_link_level]}',
|
bo_html_level = '{$board[bo_html_level]}',
|
||||||
bo_count_modify = '{$board[bo_count_modify]}',
|
bo_link_level = '{$board[bo_link_level]}',
|
||||||
bo_count_delete = '{$board[bo_count_delete]}',
|
bo_trackback_level = '{$board[bo_trackback_level]}',
|
||||||
bo_read_point = '{$board[bo_read_point]}',
|
bo_count_modify = '{$board[bo_count_modify]}',
|
||||||
bo_write_point = '{$board[bo_write_point]}',
|
bo_count_delete = '{$board[bo_count_delete]}',
|
||||||
bo_comment_point = '{$board[bo_comment_point]}',
|
bo_read_point = '{$board[bo_read_point]}',
|
||||||
bo_download_point = '{$board[bo_download_point]}',
|
bo_write_point = '{$board[bo_write_point]}',
|
||||||
bo_use_category = '{$board[bo_use_category]}',
|
bo_comment_point = '{$board[bo_comment_point]}',
|
||||||
bo_category_list = '{$board['bo_category_list']}',
|
bo_download_point = '{$board[bo_download_point]}',
|
||||||
bo_disable_tags = '{$board['bo_disable_tags']}',
|
bo_use_category = '{$board[bo_use_category]}',
|
||||||
bo_use_secret = '{$board[bo_use_secret]}',
|
bo_category_list = '{$board['bo_category_list']}',
|
||||||
bo_use_dhtml_editor = '{$board[bo_use_dhtml_editor]}',
|
bo_disable_tags = '{$board['bo_disable_tags']}',
|
||||||
bo_use_sideview = '{$board[bo_use_sideview]}',
|
bo_use_sideview = '{$board[bo_use_sideview]}',
|
||||||
bo_use_good = '{$board[bo_use_good]}',
|
bo_use_file_content = '{$board[bo_use_file_content]}',
|
||||||
bo_use_nogood = '{$board[bo_use_nogood]}',
|
bo_use_secret = '{$board[bo_use_secret]}',
|
||||||
bo_use_signature = '{$board[bo_use_signature]}',
|
bo_use_dhtml_editor = '{$board[bo_use_dhtml_editor]}',
|
||||||
bo_use_ip_view = '{$board[bo_use_ip_view]}',
|
bo_use_rss_view = '{$board[bo_use_rss_view]}',
|
||||||
bo_use_list_view = '{$board['o_use_list_view']}',
|
bo_use_good = '{$board[bo_use_good]}',
|
||||||
bo_use_list_content = '{$board[bo_use_list_content]}',
|
bo_use_nogood = '{$board[bo_use_nogood]}',
|
||||||
bo_table_width = '{$board[bo_table_width]}',
|
bo_use_signature = '{$board[bo_use_signature]}',
|
||||||
bo_subject_len = '{$board[bo_subject_len]}',
|
bo_use_ip_view = '{$board[bo_use_ip_view]}',
|
||||||
bo_page_rows = '{$board[bo_page_rows]}',
|
bo_use_list_view = '{$board['o_use_list_view']}',
|
||||||
bo_new = '{$board[bo_new]}',
|
bo_use_list_content = '{$board[bo_use_list_content]}',
|
||||||
bo_hot = '{$board[bo_hot]}',
|
bo_table_width = '{$board[bo_table_width]}',
|
||||||
bo_image_width = '{$board[bo_image_width]}',
|
bo_subject_len = '{$board[bo_subject_len]}',
|
||||||
bo_skin = '{$board['bo_skin']}',
|
bo_page_rows = '{$board[bo_page_rows]}',
|
||||||
bo_include_head = '{$board['bo_include_head']}',
|
bo_new = '{$board[bo_new]}',
|
||||||
bo_include_tail = '{$board['bo_include_tail']}',
|
bo_hot = '{$board[bo_hot]}',
|
||||||
bo_content_head = '".addslashes($board['bo_content_head'])."',
|
bo_image_width = '{$board[bo_image_width]}',
|
||||||
bo_content_tail = '".addslashes($board['bo_content_tail'])."',
|
bo_skin = '{$board['bo_skin']}',
|
||||||
bo_insert_content = '".addslashes($board['bo_insert_content'])."',
|
bo_include_head = '{$board['bo_include_head']}',
|
||||||
bo_gallery_cols = '{$board[bo_gallery_cols]}',
|
bo_include_tail = '{$board['bo_include_tail']}',
|
||||||
bo_upload_size = '{$board[bo_upload_size]}',
|
bo_content_head = '".addslashes($board['bo_content_head'])."',
|
||||||
bo_reply_order = '{$board[bo_reply_order]}',
|
bo_content_tail = '".addslashes($board['bo_content_tail'])."',
|
||||||
bo_use_search = '{$board[bo_use_search]}',
|
bo_insert_content = '".addslashes($board['bo_insert_content'])."',
|
||||||
bo_show_menu = '{$board[bo_show_menu]}',
|
bo_gallery_cols = '{$board[bo_gallery_cols]}',
|
||||||
bo_order = '{$board[bo_order]}',
|
bo_gallery_width = '{$board[bo_gallery_width]}',
|
||||||
bo_notice = '{$board['bo_notice']}',
|
bo_gallery_height = '{$board[bo_gallery_height]}',
|
||||||
bo_upload_count = '{$board[bo_upload_count]}',
|
bo_mobile_gallery_cols = '{$board[bo_mobile_gallery_cols]}',
|
||||||
bo_use_email = '{$board[bo_use_email]}',
|
bo_mobile_gallery_width = '{$board[bo_mobile_gallery_width]}',
|
||||||
bo_sort_field = '{$board['bo_sort_field']}',
|
bo_mobile_gallery_height = '{$board[bo_mobile_gallery_height]}',
|
||||||
bo_1_subj = '{$board['bo_1_subj']}',
|
bo_upload_size = '{$board[bo_upload_size]}',
|
||||||
bo_2_subj = '{$board['bo_2_subj']}',
|
bo_reply_order = '{$board[bo_reply_order]}',
|
||||||
bo_3_subj = '{$board['bo_3_subj']}',
|
bo_use_search = '{$board[bo_use_search]}',
|
||||||
bo_4_subj = '{$board['bo_4_subj']}',
|
bo_show_menu = '{$board[bo_show_menu]}',
|
||||||
bo_5_subj = '{$board['bo_5_subj']}',
|
bo_order = '{$board[bo_order]}',
|
||||||
bo_6_subj = '{$board['bo_6_subj']}',
|
bo_notice = '{$board['bo_notice']}',
|
||||||
bo_7_subj = '{$board['bo_7_subj']}',
|
bo_upload_count = '{$board[bo_upload_count]}',
|
||||||
bo_8_subj = '{$board['bo_8_subj']}',
|
bo_use_email = '{$board[bo_use_email]}',
|
||||||
bo_9_subj = '{$board['bo_9_subj']}',
|
bo_sort_field = '{$board['bo_sort_field']}',
|
||||||
bo_10_subj = '{$board['bo_10_subj']}',
|
bo_1_subj = '{$board['bo_1_subj']}',
|
||||||
bo_1 = '{$board['bo_1']}',
|
bo_2_subj = '{$board['bo_2_subj']}',
|
||||||
bo_2 = '{$board['bo_2']}',
|
bo_3_subj = '{$board['bo_3_subj']}',
|
||||||
bo_3 = '{$board['bo_3']}',
|
bo_4_subj = '{$board['bo_4_subj']}',
|
||||||
bo_4 = '{$board['bo_4']}',
|
bo_5_subj = '{$board['bo_5_subj']}',
|
||||||
bo_5 = '{$board['bo_5']}',
|
bo_6_subj = '{$board['bo_6_subj']}',
|
||||||
bo_6 = '{$board['bo_6']}',
|
bo_7_subj = '{$board['bo_7_subj']}',
|
||||||
bo_7 = '{$board['bo_7']}',
|
bo_8_subj = '{$board['bo_8_subj']}',
|
||||||
bo_8 = '{$board['bo_8']}',
|
bo_9_subj = '{$board['bo_9_subj']}',
|
||||||
bo_9 = '{$board['bo_9']}',
|
bo_10_subj = '{$board['bo_10_subj']}',
|
||||||
bo_10 = '{$board['bo_10']}' ";
|
bo_1 = '{$board['bo_1']}',
|
||||||
|
bo_2 = '{$board['bo_2']}',
|
||||||
|
bo_3 = '{$board['bo_3']}',
|
||||||
|
bo_4 = '{$board['bo_4']}',
|
||||||
|
bo_5 = '{$board['bo_5']}',
|
||||||
|
bo_6 = '{$board['bo_6']}',
|
||||||
|
bo_7 = '{$board['bo_7']}',
|
||||||
|
bo_8 = '{$board['bo_8']}',
|
||||||
|
bo_9 = '{$board['bo_9']}',
|
||||||
|
bo_10 = '{$board['bo_10']}' ";
|
||||||
sql_query($sql);
|
sql_query($sql);
|
||||||
|
|
||||||
// 게시판 폴더 생성
|
// 게시판 폴더 생성
|
||||||
|
|||||||
@ -16,7 +16,7 @@ if (substr_count($to, "@") > 1)
|
|||||||
|
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ function chk_captcha()
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!captcha_result) {
|
if (!captcha_result) {
|
||||||
alert("스팸방지 숫자가 틀렸습니다.");
|
alert("자동등록방지 숫자가 틀렸습니다.");
|
||||||
captcha_key.select();
|
captcha_key.select();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -178,11 +178,11 @@ function captcha_html($class='captcha')
|
|||||||
$html .= PHP_EOL.'<script>var g4_gcaptcha_url = "'.G4_GCAPTCHA_URL.'";</script>';
|
$html .= PHP_EOL.'<script>var g4_gcaptcha_url = "'.G4_GCAPTCHA_URL.'";</script>';
|
||||||
$html .= PHP_EOL.'<script src="'.G4_GCAPTCHA_URL.'/gcaptcha.js"></script>';
|
$html .= PHP_EOL.'<script src="'.G4_GCAPTCHA_URL.'/gcaptcha.js"></script>';
|
||||||
$html .= '<fieldset id="captcha" class="'.$class.'">';
|
$html .= '<fieldset id="captcha" class="'.$class.'">';
|
||||||
$html .= '<legend class="sound_only">스팸방지</legend>';
|
$html .= '<legend class="sound_only">자동등록방지</legend>';
|
||||||
$html .= '<img src="'.$jpg_file_url.'" alt="스팸방지 숫자">';
|
$html .= '<img src="'.$jpg_file_url.'" alt="자동등록방지 숫자">';
|
||||||
$html .= '<a href="'.$wav_file_url.'" id="captcha_wav" target="_blank"><img src="'.G4_GCAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
|
$html .= '<a href="'.$wav_file_url.'" id="captcha_wav" target="_blank"><img src="'.G4_GCAPTCHA_URL.'/img/sound.gif" alt="숫자를 음성으로 듣기"></a>';
|
||||||
$html .= '<input type="text" id="captcha_key" name="captcha_key" class="captcha_box frm_input" size="6" maxlength="6" required title="스팸방지 숫자 입력">';
|
$html .= '<input type="text" id="captcha_key" name="captcha_key" class="captcha_box frm_input" size="6" maxlength="6" required title="자동등록방지 숫자 입력">';
|
||||||
$html .= '<p class="sound_only">스팸방지 숫자를 순서대로 입력하세요.</p>';
|
$html .= '<p class="sound_only">자동등록방지 숫자를 순서대로 입력하세요.</p>';
|
||||||
$html .= '</fieldset>';
|
$html .= '</fieldset>';
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@ if ($is_guest)
|
|||||||
alert('회원만 이용하실 수 있습니다.');
|
alert('회원만 이용하실 수 있습니다.');
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$recv_list = explode(',', trim($_POST['me_recv_mb_id']));
|
$recv_list = explode(',', trim($_POST['me_recv_mb_id']));
|
||||||
|
|||||||
@ -3,11 +3,11 @@ include_once('./_common.php');
|
|||||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
||||||
|
|
||||||
if ($is_member) {
|
if ($is_member) {
|
||||||
alert("이미 로그인중입니다.");
|
alert('이미 로그인중입니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once($member_skin_path.'/password_lost2.skin.php');
|
include_once($member_skin_path.'/password_lost2.skin.php');
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
/*
|
|
||||||
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
|
|
||||||
|
|
||||||
if ($is_guest && !chk_captcha()) {
|
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' ");
|
$po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' ");
|
||||||
if (!$po['po_id'])
|
if (!$po['po_id'])
|
||||||
|
|||||||
@ -17,7 +17,7 @@ if ($w == 'u' && $is_admin == 'super') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!chk_captcha()) {
|
if (!chk_captcha()) {
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$mb_id = escape_trim($_POST['mb_id']);
|
$mb_id = escape_trim($_POST['mb_id']);
|
||||||
|
|||||||
@ -22,7 +22,7 @@ if ($is_guest) {
|
|||||||
if ($wr_name == '')
|
if ($wr_name == '')
|
||||||
alert('이름은 필히 입력하셔야 합니다.');
|
alert('이름은 필히 입력하셔야 합니다.');
|
||||||
if(!chk_captcha())
|
if(!chk_captcha())
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == "c" || $w == "cu") {
|
if ($w == "c" || $w == "cu") {
|
||||||
|
|||||||
@ -149,7 +149,7 @@ if ($w == '' || $w == 'u') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($is_guest && !chk_captcha()) {
|
if ($is_guest && !chk_captcha()) {
|
||||||
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
|
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($w == '' || $w == 'r') {
|
if ($w == '' || $w == 'r') {
|
||||||
|
|||||||
Reference in New Issue
Block a user