diff --git a/bbs/poll_result.php b/bbs/poll_result.php index 5a4186e8d..5ebe45fc7 100644 --- a/bbs/poll_result.php +++ b/bbs/poll_result.php @@ -1,4 +1,5 @@ +define('G4_CAPTCHA', 1); include_once('./_common.php'); $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$po_id}' "); diff --git a/bbs/poll_update.php b/bbs/poll_update.php index c95303dd3..83ddea0c3 100644 --- a/bbs/poll_update.php +++ b/bbs/poll_update.php @@ -1,6 +1,11 @@ +define('G4_CAPTCHA', 1); include_once('./_common.php'); +if ($is_guest && !chk_captcha()) { + alert('스팸방지에 입력한 숫자가 틀렸습니다.'); +} + $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' "); if (!$po['po_id']) alert('po_id 값이 제대로 넘어오지 않았습니다.'); diff --git a/skin/poll/neo/poll_result.skin.php b/skin/poll/neo/poll_result.skin.php index da5918eab..54b992cd9 100644 --- a/skin/poll/neo/poll_result.skin.php +++ b/skin/poll/neo/poll_result.skin.php @@ -49,7 +49,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 } ?> if ($member['mb_level'] >= $po['po_level']) { ?> -
} ?> @@ -90,5 +91,13 @@ $(function() { $(".btn_win a").click(function() { window.close(); }); + }); + +function fpollresult_submit(f) +{ + if ($is_guest) { echo chk_captcha_js(); } ?> + + return true; +} \ No newline at end of file