diff --git a/shop/item.php b/shop/item.php
index 409f171b4..767c94f8b 100644
--- a/shop/item.php
+++ b/shop/item.php
@@ -1,6 +1,9 @@
include_once('./_common.php');
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
+include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
+
+$captcha_html = captcha_html();
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
@@ -721,26 +724,8 @@ function explan_resize_image()
}
-
diff --git a/shop/itemqa.inc.php b/shop/itemqa.inc.php
index 6fcdebb02..604229120 100644
--- a/shop/itemqa.inc.php
+++ b/shop/itemqa.inc.php
@@ -17,8 +17,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
번호
제목
작성자
-
작성일
-
답변
+
작성일
+
답변
@@ -101,7 +101,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
";
- if ($row[mb_id] == $member[mb_id] && !$iq_answer)
+ if ($row['mb_id'] == $member['mb_id'] && !$iq_answer)
{
echo "수정 ";
echo "삭제 ";
@@ -197,10 +197,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
내용
-
-
-
- * 왼쪽의 자동등록방지 코드를 입력하세요.
+
=$captcha_html?>
+
@@ -218,9 +216,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+ /*
+ */ ?>
@@ -215,9 +215,7 @@ function itemusewin(query_string)
diff --git a/shop/itemusewinupdate.php b/shop/itemusewinupdate.php
index f0324b648..fc2b8141f 100644
--- a/shop/itemusewinupdate.php
+++ b/shop/itemusewinupdate.php
@@ -1,5 +1,6 @@
include_once('./_common.php');
+include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');
if (!$is_member) {
alert_close("사용후기는 회원만 평가가 가능합니다.");
@@ -9,11 +10,8 @@ $is_subject = trim($_REQUEST['is_subject']);
$is_content = trim($_REQUEST['is_content']);
if ($w == '' || $w == 'u') {
- $key = get_session("captcha_keystring");
- if (!($key && $key == $_POST['is_key'])) {
- //session_unregister("captcha_keystring");
- unset($_SESSION['captcha_keystring']);
- alert("정상적인 접근이 아닌것 같습니다.");
+ if (!chk_captcha()) {
+ alert('자동등록방지 숫자가 틀렸습니다.');
}
$is_name = $member['mb_name'];