염치불구 하고 질문드립니다..(포인트 부족으로 질답란 사용이..ㅠ) 정보
염치불구 하고 질문드립니다..(포인트 부족으로 질답란 사용이..ㅠ)본문
스샷과 같이 공지사항을 체크시에
새글이 중복 등록이 됩니다. 검색어 여러조합으로 하나하나 검색해봤지만
만족할만한 답변, 해결이 안되고 있습니다.
초보라 이거저거 만져봐도 안되고..
스킨은 베이직 스킨을 사용중이며 사용중인 write.skin.php을 아래에 적어두겠습니다.
미리 감사드립니다 꾸벅..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// Naver SmartEditor 삽입
if ($is_dhtml_editor) {
echo "
";
}
?>
:: <?=$title_msg?>::
<? if ($is_password) { ?> | ||||||
패스워드 | > | |||||
<? if ($is_email) { ?>
<? } ?>
<? if ($is_homepage) { ?>
<? } ?>
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "";
} else {
$option .= "html ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "비밀글 ";
} else {
$option_hidden .= "";
}
}
if ($is_mail) {
$option .= "답변메일받기 ";
}
}
echo $option_hidden;
if ($option) {
?>
<? } ?>
<? if ($is_category) { ?>
<? } ?> 제 목
내용
onkeyup="check_byte('wr_content', 'char_count');"<?}?> itemname="내용" required><?=$content?>
<? if ($write_min || $write_max) { ?> <?}?>
<? if ($is_link) { ?>
<? for ($i=1; $i<=$g4[link_count]; $i++) { ?>
<? } ?>
<? } ?>
<? if ($is_file) { ?>
파일
<? } ?>
<? if ($is_trackback) { ?>
트랙백주소
<? if ($w=="u") { ?>핑 보냄<? } ?>
<? } ?>
<? if ($is_guest) { ?>
<? } ?>
function imageClickResult(req) {
var result = req.responseText;
var img = document.createElement("IMG");
img.setAttribute("src", "<?=$g4[bbs_path]?>/kcaptcha_image.php?t=" + (new Date).getTime());
document.getElementById('kcaptcha_image').src = img.getAttribute('src');
md5_norobot_key = result;
}
<? if (!$is_member) { ?>Event.observe(window, "load", imageClick);<? } ?>
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
echo "
if (typeof(document.fwrite.ca_name) != 'undefined')
{
document.fwrite.ca_name.options.length += 1;
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].value = '공지';
document.fwrite.ca_name.options[document.fwrite.ca_name.options.length-1].text = '공지';
}";
}
?>
with (document.fwrite)
{
if (typeof(wr_name) != "undefined")
wr_name.focus();
else if (typeof(wr_subject) != "undefined")
wr_subject.focus();
else if (typeof(wr_content) != "undefined")
wr_content.focus();
if (typeof(ca_name) != "undefined")
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj)
{
if (obj.checked) {
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을
태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_submit(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.value)) {
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
if (s = word_filter_check(f.wr_content.value)) {
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return false;
}
if (document.getElementById('char_count')) {
if (char_min > 0 || char_max > 0) {
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt) {
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return false;
}
else if (char_max > 0 && char_max < cnt) {
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return false;
}
}
}
if (typeof(f.wr_key) != 'undefined') {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert('자동등록방지용 글자가 제대로 입력되지 않았습니다.');
f.wr_key.select();
f.wr_key.focus();
return false;
}
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
else
echo "f.action = './write_update.php';";
?>
return true;
}
try{
elClicked.form.submit();
}catch(e){}
}
//-->
0
댓글 3개


http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=126957&sca=&sfl=wr_subject&stx=%B0%F8%C1%F6&sop=and
공지 이외의 글도 두번씩 뜨나요?