사비성님의 업/다운로더 적용하신분 조언좀.. 정보
사비성님의 업/다운로더 적용하신분 조언좀..본문
왕초짜인데요..
매뉴얼을 보고 아무리 따라 하려해도.. 여간 힘든게 어디더군요..
일단 수정된 부분은 다 적용 시켰는데요..
두 파일을 어따둬야할지 -_ -;;
그래서 에라 모르겟다 싶어서.. 그누4 폴더,스킨폴더,(스킨명)폴더 에 각 각 다 집어넣었죠..
(혼자 집에서 연습하고 있는중입니다;;)
그랬더니 글쓰기를 하니..
Parse error: parse error, unexpected $end in c:\apm_setup\htdocs\gnuboard4\skin\board\basic\write.skin.php on line 422
라는 에러가 뜨더군요..
라는 에러가 뜨더군요..
라인422를 찾아봤는데.. </script> 입니다.. 닫아준게 뭐가 잘못됐단건지..
맨아랫부분입니다;;; 수정하란 부분만 수정했는데요...
<script language="javascript">
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
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 = '공지';
}";
}
?>
<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
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(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]?>";
}
if (w.value == "u")
ca_name.value = "<?=$write[ca_name]?>";
}
function html_auto_br(obj)
{
if (obj.checked)
{
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
{
if (obj.checked)
{
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
if (result)
obj.value = "html2";
else
obj.value = "html1";
}
else
obj.value = "";
}
function fwrite_check(f)
{
var s = "";
if (s = word_filter_check(f.wr_subject.value))
{
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
{
var s = "";
if (s = word_filter_check(f.wr_subject.value))
{
alert("제목에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
if (s = word_filter_check(f.wr_content.value))
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
{
alert("내용에 금지단어('"+s+"')가 포함되어있습니다");
return;
}
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;
}
else if (char_max > 0 && char_max < cnt)
{
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
{
var cnt = parseInt(document.getElementById('char_count').innerHTML);
if (char_min > 0 && char_min > cnt)
{
alert("내용은 "+char_min+"글자 이상 쓰셔야 합니다.");
return;
}
else if (char_max > 0 && char_max < cnt)
{
alert("내용은 "+char_max+"글자 이하로 쓰셔야 합니다.");
return;
}
}
if (typeof(f.wr_key) != "undefined")
{
if (hex_md5(f.wr_key.value) != md5_norobot_key)
{
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
{
if (hex_md5(f.wr_key.value) != md5_norobot_key)
{
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
document.getElementById('btn_submit').disabled = true;
document.getElementById('btn_list').disabled = true;
document.getElementById('btn_list').disabled = true;
// 수정
var uploader = document.SABISUNGUploader;
if(uploader == "undefined")
return;
var form = document.fwrite;
f.SABISUNGUploadedFiles.value = uploader.GetUploadedFiles();
f.SABISUNGDeltedFiles.value = uploader.GetDeletedFiles();
f.SABISUNGUploadingFiles.value = uploader.GetUploadingFiles();
SABISUNGUploaderSubmit(f);
//f.action = "./write_update.php";
//f.submit();
// 수정
}
</script> <-- 라인 422
var uploader = document.SABISUNGUploader;
if(uploader == "undefined")
return;
var form = document.fwrite;
f.SABISUNGUploadedFiles.value = uploader.GetUploadedFiles();
f.SABISUNGDeltedFiles.value = uploader.GetDeletedFiles();
f.SABISUNGUploadingFiles.value = uploader.GetUploadingFiles();
SABISUNGUploaderSubmit(f);
//f.action = "./write_update.php";
//f.submit();
// 수정
}
</script> <-- 라인 422
댓글 전체
스크립트 바로 위에다가
<? } ?>
하나 넣어 보세요~~~
<? } ?>
하나 넣어 보세요~~~
해봤는데.. 마찬가지예요 ㅠㅠ
읽는건 되는데 글쓰는게 안되네요ㅠㅠ
그전에 써논글을 열람하면 업/다운로더가 적용되있습니다..
허나.. 새로 글쓰기가 안되네요 ㅠㅠ
그전에 써논글을 열람하면 업/다운로더가 적용되있습니다..
허나.. 새로 글쓰기가 안되네요 ㅠㅠ
보통 위의 에러($end) 문은 { } 이 종료되지 않은 상황일때 많이 봐서.....ㅠ.ㅠ
왜 글쓰기만 하믄 저럴까요 ㅠㅠ 돌겠네용;;
쓰기폼에서 열린 { 의 수와 닫힌 } 의 수가 같은지 찾아 보세요~~~
해결봤어요 감사합니다 ^^