write.skin.php 수정하니...아예 공백페이지로 나옵니다. 정보
write.skin.php 수정하니...아예 공백페이지로 나옵니다.
본문
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=8725&sca=&sfl=wr_subject&stx=%B5%BF%BF%B5%BB%F3&spt=0&page=0
브레스님의 동영상 스킨에서 첨부를 동시 사용하기
http://sir.co.kr/bbs/tb.php/g4_skin/27205
수정할 파일은 3개 입니다.
1,
write.skin.php 이파일에서 미리보기용 이미지파일1개 동영상링크1개 동영상 업로드 1개씩만 출력이 되도록 수정이 되었으며 아래의 소스를 글쓰기 화면의 링크와 업로드가 나오는 부분에 아래의
코드로 끼워(교체함) 넣어 주면 됩니다.
write.skin.php 수정하니...아예 공백페이지로 나옵니다.
어디서 부터 어디까지를 수정-교체해야할지 자세히 좀 알려주세요.
성공하신 님들이나 헐랭이 님 부탁드립니다.
아래는 write.skin.php 수정한 것입니다. 무엇이 잘 못되었는지? 지적해 주시기 바랍니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- FF(불여우) 에서는 innerHTML 종교시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="<?=$width?>" align=center>
<input type=hidden name=null><!-- 삭제하지 마십시오. -->
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<? if ($w == 'u') {?>
<input type=hidden name=wr_1 value="<?=$write[wr_1]?>">
<input type=hidden name=wr_2 value="<?=$write[wr_2]?>">
<input type=hidden name=wr_3 value="<?=$write[wr_3]?>">
<? }?>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2 ><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?=$board_skin_path?>/img/vtitle_bg.gif">
<tr>
<td width="4" ><img src="<?=$board_skin_path?>/img/title_left.gif" width="4" height="32"></td>
<td align="center"><strong>
<?=$title_msg?>
</strong></td>
<td width="4" ><img src="<?=$board_skin_path?>/img/title_right.gif" width="4" height="32"></td>
</tr>
</table></td>
</tr>
<? if ($is_name) { ?>
<tr>
<td width="95" style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>이름</td>
<td width="421"><input class=ed maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
패스워드</td>
<td><input class=ed type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_email) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
이메일</td>
<td><input class=ed maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<!--
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font> 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지 <? } ?>
<? if ($is_html) { ?><input onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?>><span class=w_title>html</span> <? } ?>
<? if ($is_secret) { ?><input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span> <? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기 <? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#F3F3F3></td></tr>
-->
<? if ($is_category) { ?>
<tr>
<td height="7" colspan="2"></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
분류</td>
<td><select name=ca_name required itemname="분류">
<option value="">선택하세요
<?=$category_option?>
</select></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<tr>
<td width="95" style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상제목</td>
<td><input class=ed style="width:100%;" name=wr_subject itemname="제목" required value="<?=$subject?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
이름</td>
<td><input type="text" class=ed style="width:100%;" name="wr_1" value="<?=$write[wr_1]?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
날짜</td>
<td><input type="text" class=ed style="width:100%;" name="wr_2" value="<?=$write[wr_2]?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td valign="top" style='padding-left:20px; padding-top:3px;'><font color="#BA003A">| </font>
내용
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td align=left valign=bottom> <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span>
</td>
</tr>
</table></td>
<td style='padding:5 0 5 0;'><textarea id=wr_content name=wr_content class=tx style='width:100%; word-break:break-all;' rows=7 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?>
<script language="javascript"> check_byte('wr_content', 'char_count'); </script>
<? } ?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<?
if ($is_file) {
?>
<tr>
<td> </td>
<td>* "미리보기(안내) 용 이미지를 업로드 합니다..</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
캡쳐이미지 첨부
</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[0]\" size=\"60\" class=\"ad\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$rows = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '0' ");
if ($rows['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[0]\" value=\"1\"><a href=\"{$file[1]['href']}\" class=\"link\">{$file[0]['source']}</a>({$file[0]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content[0]\" size=\"60\" class=\"ad\" value='{$rows['bf_content']}' title=\"업로드 이미지 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_link) { ?>
<tr>
<td> </td>
<td>* "동영상주소에 URL 경로를 입력 합니다.</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상 파일의주소
</td>
<td><input type='text' class='ed' size='80' name='wr_link1' itemname='링크 #1' value='<?=$write['wr_link1']?>'></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<?
if ($is_file) {
?>
<tr>
<td> </td>
<td>* "동영상 파일을 직접 첨부 합니다.</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상 파일첨부
</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[1]\" size=\"60\" class=\"ad\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$rowm = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '1' ");
if ($rowm['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[1]\" value=\"1\"><a href=\"{$file[1]['href']}\" class=\"link\">{$file[1]['source']}</a>({$file[1]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content\" size=\60\" class=\"ad\" value='{$rowm['bf_content']}' title=\"업로드 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
;
}
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
objTbl.deleteRow(objTbl.rows.length - 1);
}
</script></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_trackback) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
트랙백주소</td>
<td><input class=ed size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
<? if ($w=="u") { ?>
<input type=checkbox name="re_trackback" value="1">
핑 보냄
<? } ?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_norobot) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
<?=$norobot_str?>
</td>
<td><input class=ed type=input size=10 name=wr_key itemname="자동등록방지" required>
* 왼쪽의 글자중 <font color="red">빨간글자만</font> 순서대로 입력하세요.</td>
</tr>
<? } ?>
<tr>
<td colspan=2 height=1 bgcolor=#1B769E></td>
</tr>
<tr>
<td colspan=2 height=3 bgcolor=#EFEFEF></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" colspan="2"></td>
</tr>
<tr>
<td width="50%" align="center" valign="top"><div align="left"><a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a>
</div></td>
<td width="50%" align="center" valign="top"><div align="right">
<input name="image" type=image id="btn_submit" accesskey='s' src="<?=$board_skin_path?>/img/btn_write.gif" border=0 vspace="5">
</div></td>
</tr>
</table>
</td></tr></table>
</form>
<script language="Javascript">
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]?>";
if (typeof(ca_name) != "undefined")
if (w.value == "r")
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 = "";
}
function fwrite_check(f)
{
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;
}
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;
}
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
f.action = "./write_update.php";
f.submit();
}
</script>
브레스님의 동영상 스킨에서 첨부를 동시 사용하기
http://sir.co.kr/bbs/tb.php/g4_skin/27205
수정할 파일은 3개 입니다.
1,
write.skin.php 이파일에서 미리보기용 이미지파일1개 동영상링크1개 동영상 업로드 1개씩만 출력이 되도록 수정이 되었으며 아래의 소스를 글쓰기 화면의 링크와 업로드가 나오는 부분에 아래의
코드로 끼워(교체함) 넣어 주면 됩니다.
write.skin.php 수정하니...아예 공백페이지로 나옵니다.
어디서 부터 어디까지를 수정-교체해야할지 자세히 좀 알려주세요.
성공하신 님들이나 헐랭이 님 부탁드립니다.
아래는 write.skin.php 수정한 것입니다. 무엇이 잘 못되었는지? 지적해 주시기 바랍니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<!-- FF(불여우) 에서는 innerHTML 종교시 폼이 <table> 아래에 있으면 인식하지 못합니다. -->
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" autocomplete="off">
<table width="<?=$width?>" align=center>
<input type=hidden name=null><!-- 삭제하지 마십시오. -->
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<? if ($w == 'u') {?>
<input type=hidden name=wr_1 value="<?=$write[wr_1]?>">
<input type=hidden name=wr_2 value="<?=$write[wr_2]?>">
<input type=hidden name=wr_3 value="<?=$write[wr_3]?>">
<? }?>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2 ><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?=$board_skin_path?>/img/vtitle_bg.gif">
<tr>
<td width="4" ><img src="<?=$board_skin_path?>/img/title_left.gif" width="4" height="32"></td>
<td align="center"><strong>
<?=$title_msg?>
</strong></td>
<td width="4" ><img src="<?=$board_skin_path?>/img/title_right.gif" width="4" height="32"></td>
</tr>
</table></td>
</tr>
<? if ($is_name) { ?>
<tr>
<td width="95" style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>이름</td>
<td width="421"><input class=ed maxlength=20 size=15 name=wr_name itemname="이름" required value="<?=$name?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_password) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
패스워드</td>
<td><input class=ed type=password maxlength=20 size=15 name=wr_password itemname="패스워드" <?=$password_required?>></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_email) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
이메일</td>
<td><input class=ed maxlength=100 size=50 name=wr_email email itemname="이메일" value="<?=$email?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<!--
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font> 옵션</td>
<td><? if ($is_notice) { ?><input type=checkbox name=notice value="1" <?=$notice_checked?>>공지 <? } ?>
<? if ($is_html) { ?><input onclick="html_auto_br(this);" type=checkbox value="<?=$html_value?>" name="html" <?=$html_checked?>><span class=w_title>html</span> <? } ?>
<? if ($is_secret) { ?><input type=checkbox value="secret" name="secret" <?=$secret_checked?>><span class=w_title>비밀글</span> <? } ?>
<? if ($is_mail) { ?><input type=checkbox value="mail" name="mail" <?=$recv_email_checked?>>답변메일받기 <? } ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#F3F3F3></td></tr>
-->
<? if ($is_category) { ?>
<tr>
<td height="7" colspan="2"></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
분류</td>
<td><select name=ca_name required itemname="분류">
<option value="">선택하세요
<?=$category_option?>
</select></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<tr>
<td width="95" style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상제목</td>
<td><input class=ed style="width:100%;" name=wr_subject itemname="제목" required value="<?=$subject?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
이름</td>
<td><input type="text" class=ed style="width:100%;" name="wr_1" value="<?=$write[wr_1]?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
날짜</td>
<td><input type="text" class=ed style="width:100%;" name="wr_2" value="<?=$write[wr_2]?>"></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<tr>
<td valign="top" style='padding-left:20px; padding-top:3px;'><font color="#BA003A">| </font>
내용
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td align=left valign=bottom> <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span>
</td>
</tr>
</table></td>
<td style='padding:5 0 5 0;'><textarea id=wr_content name=wr_content class=tx style='width:100%; word-break:break-all;' rows=7 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?>
<script language="javascript"> check_byte('wr_content', 'char_count'); </script>
<? } ?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<?
if ($is_file) {
?>
<tr>
<td> </td>
<td>* "미리보기(안내) 용 이미지를 업로드 합니다..</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
캡쳐이미지 첨부
</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[0]\" size=\"60\" class=\"ad\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$rows = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '0' ");
if ($rows['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[0]\" value=\"1\"><a href=\"{$file[1]['href']}\" class=\"link\">{$file[0]['source']}</a>({$file[0]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content[0]\" size=\"60\" class=\"ad\" value='{$rows['bf_content']}' title=\"업로드 이미지 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_link) { ?>
<tr>
<td> </td>
<td>* "동영상주소에 URL 경로를 입력 합니다.</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상 파일의주소
</td>
<td><input type='text' class='ed' size='80' name='wr_link1' itemname='링크 #1' value='<?=$write['wr_link1']?>'></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<?
if ($is_file) {
?>
<tr>
<td> </td>
<td>* "동영상 파일을 직접 첨부 합니다.</td>
</tr>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
동영상 파일첨부
</td>
<td>
<?
echo "<input type=\"file\" name=\"bf_file[1]\" size=\"60\" class=\"ad\" title=\"파일 용량 " . get_filesize($board['bo_upload_size']) . " 이하만 업로드 가능\">";
if ($w == "u"){
$rowm = sql_fetch(" select bf_file, bf_content from {$g4['board_file_table']} where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_no = '1' ");
if ($rowm['bf_file']){
echo "<br /><input type=\"checkbox\" name=\"bf_file_del[1]\" value=\"1\"><a href=\"{$file[1]['href']}\" class=\"link\">{$file[1]['source']}</a>({$file[1]['size']}) 파일 삭제";
}else{
echo "";
}
}
if ($is_file_content){
echo "<br /><input type=\"text\" name=\"bf_content\" size=\60\" class=\"ad\" value='{$rowm['bf_content']}' title=\"업로드 파일에 해당 되는 내용을 입력하세요.\">";
}
?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
;
}
flen++;
}
<?=$file_script; //수정시에 필요한 스크립트?>
function del_file()
{
// file_length 이하로는 필드가 삭제되지 않아야 합니다.
var file_length = <?=(int)$file_length?>;
var objTbl = document.getElementById("variableFiles");
if (objTbl.rows.length - 1 > file_length)
objTbl.deleteRow(objTbl.rows.length - 1);
}
</script></td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_trackback) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
트랙백주소</td>
<td><input class=ed size=50 name=wr_trackback itemname="트랙백" value="<?=$trackback?>">
<? if ($w=="u") { ?>
<input type=checkbox name="re_trackback" value="1">
핑 보냄
<? } ?>
</td>
</tr>
<tr>
<td colspan=2 height=1 bgcolor=#F3F3F3></td>
</tr>
<? } ?>
<? if ($is_norobot) { ?>
<tr>
<td style='padding-left:20px; height:25px;'><font color="#BA003A">| </font>
<?=$norobot_str?>
</td>
<td><input class=ed type=input size=10 name=wr_key itemname="자동등록방지" required>
* 왼쪽의 글자중 <font color="red">빨간글자만</font> 순서대로 입력하세요.</td>
</tr>
<? } ?>
<tr>
<td colspan=2 height=1 bgcolor=#1B769E></td>
</tr>
<tr>
<td colspan=2 height=3 bgcolor=#EFEFEF></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" colspan="2"></td>
</tr>
<tr>
<td width="50%" align="center" valign="top"><div align="left"><a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_path?>/img/btn_list.gif" border=0></a>
</div></td>
<td width="50%" align="center" valign="top"><div align="right">
<input name="image" type=image id="btn_submit" accesskey='s' src="<?=$board_skin_path?>/img/btn_write.gif" border=0 vspace="5">
</div></td>
</tr>
</table>
</td></tr></table>
</form>
<script language="Javascript">
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]?>";
if (typeof(ca_name) != "undefined")
if (w.value == "r")
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 = "";
}
function fwrite_check(f)
{
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;
}
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;
}
}
if (typeof(f.wr_key) != "undefined") {
if (hex_md5(f.wr_key.value) != md5_norobot_key) {
alert("자동등록방지용 빨간글자가 순서대로 입력되지 않았습니다.");
f.wr_key.focus();
return;
}
}
f.action = "./write_update.php";
f.submit();
}
</script>
댓글 전체

해당 페이지 URL을 공개하시는 편이
빠른 답변을 얻으실 수 있습니다.
빠른 답변을 얻으실 수 있습니다.

line 244쯤에 }가 잘못 들어가 있네요.
소스를 처음부터 찬찬히 검토해 보세요.
소스를 처음부터 찬찬히 검토해 보세요.

엑스엠엘님 감사합니다.
해결되었습니다.
해결되었습니다.