그누보드5 자동방지(캡챠) 없애기
IT&프로그래밍 2018. 3. 29. 10:19
/skin/board/사용하는스킨폴더/write.skin.php 내
<?php if ($is_guest) { //자동등록방지 ?>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?php echo $captcha_html ?>
</td>
</tr>
<?php } ?>
<?php if ($is_guest) { //자동등록방지 ?>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?php echo $captcha_html ?>
</td>
</tr>
<?php } ?>
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
3곳 삭제
또는 배추스킨의 경우
<?php if ($is_guest && is_g5()) { //자동등록방지 ?>
<tr>
<td class="mw_basic_write_title">· 자동등록방지</td>
<td class="mw_basic_write_content">
<?php echo $captcha_html ?>
</td>
</tr>
<?php } else if ($is_guest && is_mw_file($g4['bbs_path']."/kcaptcha_session.php")) { ?>
<tr>
<td class="mw_basic_write_title"><img id='kcaptcha_image' /></td>
<td class="mw_basic_write_content"><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required> 왼쪽의 글자를 입력하세요.</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<?php } ?>
<? if ($is_norobot) { ?>
<tr>
<td class="mw_basic_write_title">
<?
// 이미지 생성이 가능한 경우 자동등록체크코드를 이미지로 만든다.
if (function_exists("imagecreate") && $mw_basic[cf_norobot_image]) {
echo "<img src='$g4[bbs_path]/norobot_image.php?{$g4['server_time']}' border='0' align=absmiddle>";
$norobot_msg = "* 왼쪽의 자동등록방지 코드를 입력하세요.";
}
else {
echo $norobot_str;
$norobot_msg = "* 왼쪽의 글자중 <FONT COLOR='red'>빨간글자</font>만 순서대로 입력하세요.";
}
?>
</td>
<td class="mw_basic_write_content">
<input type=input size=10 name=wr_key itemname="자동등록방지" required class=mw_basic_text>
<span class=mw_basic_norobot><?=$norobot_msg?></span>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
2곳 삭제
view_comment.skin.php 내
<?php if ($is_guest) { ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?php echo $captcha_html; ?></td>
</tr>
<?php } ?>
<?php if($is_guest) echo chk_captcha_js(); ?>
2곳 삭제
또는 배추빌더의 경우
<?php if ($is_guest && $captcha_html && is_g5()) { //자동등록방지 ?>
<tr>
<td>자동등록방지</td>
<td style="padding:3px 0 3px 0;">
<?php echo $captcha_html ?>
</td>
</tr>
<?php } else if (is_mw_file("$g4[bbs_path]/kcaptcha_session.php") && $is_guest && !$write_error) { ?>
다지우고
<?php if (is_mw_file("$g4[bbs_path]/kcaptcha_session.php") && $is_guest && !$write_error) { ?>
/bbs/write_update.php 내
if ($is_guest && !chk_captcha()) {
alert('자동등록방지 숫자가 틀렸습니다.');
}
1곳 삭제
/bbs/write_comment_update.php 내
if(!chk_captcha())
alert('자동등록방지 숫자가 틀렸습니다.');
1곳 삭제
'IT&프로그래밍' 카테고리의 다른 글
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) 발생 시 (0) | 2018.11.23 |
---|---|
안드로이드 - android:scaleType (0) | 2018.11.07 |
apm 오토셋 설치 방법 (0) | 2018.03.29 |
jQuery radio (0) | 2017.12.26 |
jQuery checkbox (0) | 2017.12.16 |