자동등록방지가 안나타나요
본문
<?php if ($is_use_captcha) { //자동등록방지 ?>
<div class="write_div">
<?php echo $captcha_html ?>
</div>
<?php } ?>
<script>
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
</script>
위에 것을 넣어두 아예 불러들어오질 못해서 아무것도 출력이 안되네요.
다른 bbs 파일에 자동등록방지 숫자가 잘못되었다는 것은 지워지지 않았고 원본 그누보드랑 같습니다.
어떻게 하면 자동등록방지가 뜰수 있을까요?
<?php
include_once(G5_PATH . '/article.php');
add_stylesheet('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.min.css">', 0);
add_stylesheet("<link rel=\"stylesheet\" href=\"{$board_skin_url}/write.skin.css\">", 0);
add_javascript('<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>', 0);
sql_query("
ALTER TABLE `{$write_table}`
ADD `wr_open` VARCHAR(255) NOT NULL,
ADD `wr_close` VARCHAR(255) NOT NULL
");
?>
<script>
var $wr_1 = '<?php if($w) echo $write['wr_1']; else if($member['mb_3']) echo $member['mb_3']; else echo $szone; ?>';
var $wr_2 = '<?php if($w) echo $write['wr_2']; else if($member['mb_4']) echo $member['mb_4']; else echo $scity; ?>';
var $wr_11 = '<?php if($w) echo $write['wr_11']; else if($member['mb_3']) echo $member['mb_3']; else echo $szone; ?>';
var $wr_12 = '<?php if($w) echo $write['wr_12']; else if($member['mb_4']) echo $member['mb_4']; else echo $scity; ?>';
$(function(){
$('#wr_1').on('change', function(){
$('#wr_2 option:gt(0)').remove();
if($('#wr_1').val() == 'SJ'){
$('#wr_2').prop('disabled', true);
$('#wr_2').removeAttr('required');
} else{
$.each($('#wr_1 option:selected').attr('data-city').split('|'), function(key, val){
$('#wr_2').append('<option value="' + val + '">' + val + '</option>');
});
$('#wr_2').prop('disabled', false);
$('#wr_2').attr('required', 'required');
if($wr_2){
$('#wr_2').val($wr_2);
$wr_2 = '';
}
}
});
$('#wr_11').on('change', function(){
$('#wr_12 option:gt(0)').remove();
if($('#wr_11').val() == 'SJ'){
$('#wr_12').prop('disabled', true);
$('#wr_12').removeAttr('required');
} else{
$.each($('#wr_11 option:selected').attr('data-city').split('|'), function(key, val){
$('#wr_12').append('<option value="' + val + '">' + val + '</option>');
});
$('#wr_12').prop('disabled', false);
$('#wr_12').attr('required', 'required');
if($wr_12){
$('#wr_12').val($wr_12);
$wr_12 = '';
}
}
});
$('.datepicker').datepicker({
monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
dayNamesMin: ['일','월','화','수','목','금','토'],
dateFormat: 'yy-mm-dd',
yearSuffix: '년',
showMonthAfterYear: true
});
$('#wr_1').val($wr_1).trigger('change');
$('#wr_11').val($wr_11).trigger('change');
});
function fwrite_submit(){
<?php echo $editor_js; ?>
}
</script>
<section class="section">
<h1 class="title">
<img src="<?php echo G5_IMG_URL; ?>/plus.png">
<?php echo $board['bo_subject']; ?>
</h1>
<form class="write-skin" id="fwrite" name="fwrite" method="post" action="<?php echo $action_url; ?>" enctype="multipart/form-data" onsubmit="return fwrite_submit(this);">
<p>
<span>접수기간</span>
<input type="text" name="wr_open" value="<?php echo $write['wr_open']; ?>" readonly="readonly" class="datepicker">
~
<input type="text" name="wr_close" value="<?php echo $write['wr_close']; ?>" readonly="readonly" class="datepicker">
</p>
<?php if($is_category){ ?>
<p>
<span>
분류
<i class="fa fa-check"></i>
</span>
<select id="ca_name" name="ca_name" style="border-radius: 0px 5px 5px 0px;" required>
<option value="">선택</option>
<?php foreach(explode('|', $board['bo_category_list']) as $val){ ?>
<option value="<?php echo $val; ?>" <?php if($write['ca_name'] == $val) echo 'selected="selected"'; ?>><?php echo $val; ?></option>
<?php } ?>
</select>
</p>
<?php } ?>
<p>
<span>
교육명
<i class="fa fa-check"></i>
</span>
<input type="text" name="wr_subject" value="<?php echo $subject; ?>" required>
</p>
<?php for($key = 0; $is_file && $key < $file_count; $key++){ ?>
<p>
<span>
<?php
if($key == 0){
echo '대표이미지';
} else if($key == 1){
echo '배경이미지';
} else{
echo '첨부파일 #' . ($key - 1);
}
?>
</span>
<input type="file" name="bf_file[]">
<?php if($w == 'u' && $file[$key]['file']){ ?>
<label>
<input type="checkbox" name="bf_file_del[<?php echo $key; ?>]" value="1">
<?php echo $file[$key]['source']; ?> 삭제
</label>
<?php } ?>
<?php if($key == 0){ ?>
<em style="display: block;margin-top: 10px;font-style: normal;">가로 800픽셀 × 세로 1000픽셀, 용량 500KB 이하</em>
<?php } else if($key == 1){ ?>
<em style="display: block;margin-top: 10px;font-style: normal;">가로 1000픽셀 × 세로 400픽셀, 용량 500KB 이하</em>
<?php } ?>
</p>
<?php } ?>
<!--p>
<span>일시</span>
<textarea name="wr_3"><?php echo $write['wr_3']; ?></textarea>
</p-->
<p>
<span>
교육주소
<i class="fa fa-check"></i>
</span>
<select id="wr_1" name="wr_1" value="<?php echo $write['wr_1'] ?>" required>
<option value="">선택</option>
<option value="온라인" data-city="전국">온라인</option>
<?php foreach($ZONE as $key => $val){ ?>
<option value="<?php echo $key; ?>" data-city="<?php echo $CITY[$key]; ?>"><?php echo $val; ?></option>
<?php } ?>
</select>
<select id="wr_2" name="wr_2" value="<?php echo $write['wr_2'] ?>" disabled="disabled" required>
<option value="">선택</option>
</select>
</p>
<p>
<span>
상세주소
</span>
<input type="text" name="wr_link2" value="<?php if($w) echo $write['wr_link2']; else echo $member['mb_5']; ?>">
</p>
<p>
<span>교육장소</span>
<textarea name="wr_4"><?php echo $write['wr_4']; ?></textarea>
</p>
<p>
<span>비용</span>
<textarea name="wr_link1"><?php echo $write['wr_link1']; ?></textarea>
</p>
<p>
<span>교육기간</span>
<textarea name="wr_5"><?php echo $write['wr_5']; ?></textarea>
</p>
<p>
<span>모집정원</span>
<input type="text" name="wr_6" value="<?php echo $write['wr_6']; ?>">
</p>
<p>
<span>신청자격</span>
<textarea name="wr_7"><?php echo $write['wr_7']; ?></textarea>
</p>
<p>
<span id="span3">후원</span>
<input type="text" name="wr_13" value="<?php echo $write['wr_13']; ?>">
</p>
<p class="gray">
<span>기관명</span>
<input type="text" name="wr_8" value="<?php if($w) echo $write['wr_8']; else echo $member['mb_1']; ?>" required>
</p>
<p class="gray">
<span>
주소
<i class="fa fa-check"></i>
</span>
<select id="wr_11" name="wr_11" required>
<option value="">선택</option>
<?php foreach($ZONE as $key => $val){ ?>
<option value="<?php echo $key; ?>" data-city="<?php echo $CITY[$key]; ?>"><?php echo $val; ?></option>
<?php } ?>
</select>
<select id="wr_12" name="wr_12" disabled="disabled" required>
<option value="">선택</option>
</select>
</p>
<p class="gray">
<span>
상세주소
<i class="fa fa-check"></i>
</span>
<input type="text" name="wr_link3" value="<?php if($w) echo $write['wr_link3']; else echo $member['mb_5']; ?>" required>
</p>
<p class="gray">
<span>문의</span>
<input type="text" name="wr_9" value="<?php if($w) echo $write['wr_9']; else echo $member['mb_tel']; ?>">
</p>
<p class="gray">
<span>웹사이트</span>
<input type="text" name="wr_10" value="<?php if($w) echo $write['wr_10']; else echo $member['mb_homepage']; ?>" placeholder="http://">
</p>
<div>
<?php echo $editor_html; ?>
<p>
<?php if($is_notice){ ?>
<label>
<input type="checkbox" name="notice" value="1" <?php echo $notice_checked; ?>>
추천아이콘
</label>
<?php } ?>
</p>
</div>
<p>
<span>
해쉬태그
</span>
<input type="text" name="wr_homepage" value="<?php echo $write['wr_homepage']; ?>">
</p>
<fieldset>
<button type="button" onclick="history.back();">돌아가기</button>
<button type="submit">저장하기</button>
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
<input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>">
<input type="hidden" name="sdate" value="<?php echo $sdate; ?>">
<input type="hidden" name="szone" value="<?php echo $szone; ?>">
<input type="hidden" name="scity" value="<?php echo $scity; ?>">
<input type="hidden" name="swr7" value="<?php echo $swr7; ?>">
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
<input type="hidden" name="spt" value="<?php echo $spt; ?>">
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="html" value="html1">
</fieldset>
</form>
</section>
답변을 작성하시기 전에 로그인 해주세요.