캡차 체크 코드 추가

This commit is contained in:
chicpro
2013-02-22 11:15:43 +09:00
parent d4fa8a814b
commit b54a180479

View File

@ -1,6 +1,7 @@
<? <?
define('G4_CAPTCHA', true); define('G4_CAPTCHA', true);
include_once('./_common.php'); include_once('./_common.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
// 090710 // 090710
if (substr_count($wr_content, "&#") > 50) { if (substr_count($wr_content, "&#") > 50) {
@ -20,6 +21,8 @@ if (!empty($_POST['wr_email']))
if ($is_guest) { if ($is_guest) {
if ($wr_name == '') if ($wr_name == '')
alert('이름은 필히 입력하셔야 합니다.'); alert('이름은 필히 입력하셔야 합니다.');
if(!chk_captcha())
alert('스팸방지에 입력한 숫자가 틀렸습니다.');
} }
if ($w == "c" || $w == "cu") { if ($w == "c" || $w == "cu") {