글쓰기중 이상한 문제
xxxhead.php
==========================================================================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
HTML 틀 상단
사용자가 수정시 주의 요망
*/
/*
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
*/
// 쪽지가 전달되었나?
if ($member[mb_memo_call_mb_id]) {
$mb = get_member($member[mb_memo_call_mb_id]);
$sql = " update $cfg[table_member]
set mb_memo_call_mb_id = ''
where mb_id = '$member[mb_id]' ";
sql_query($sql);
alert("{$mb[mb_name]}($member[mb_memo_call_mb_id])님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
include "./bbs/gblayer.php";
?>
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=euc-kr'>
<title><?=$html_title?></title>
<link rel='stylesheet' href='./style.css' type='text/css'>
<link rel='stylesheet' href='./mystyle.css' type='text/css'>
<script language="JavaScript" type="text/JavaScript">
<!--
function allblur() {
for (i = 0; i < document.links.length; i++)
document.links[i].onfocus = document.links[i].blur;
}
document.onfocusin = allblur;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language='JavaScript' src='./javascript.js'></script>
</head>
<body leftmargin='<?=$cfg[leftmargin]?>' topmargin='<?=$cfg[topmargin]?>' <?=$script?> onLoad="MM_preloadImages('/images/info_title_07_2.gif','/images/info_title_08_2.gif','/images/info_title_09_2.gif','/images/info_title_10_2.gif','/images/info_title_11_2.gif')">
<!-- 상단 책갈피 -->
<a name='gnuboard_head'></a>
<table width="800" height="86" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="Table_01">
<tr>
<td background="/images/info_title_01.gif" width="229" height="85" rowspan="2"></td>
<td background="/images/info_title_02.gif" width="381" height="17" colspan="4"></td>
<td> <a href="./?doc=info_main_v5.php"><img src="/images/info_title_03.gif" alt="메인" width="45" height="17" border="0"></a></td>
<td colspan="2"> <img src="/images/info_title_04.gif" width="60" height="17" alt="사이트맵"></td>
<td> <img src="/images/info_title_05.gif" width="72" height="17" alt="단몽"></td>
<td background="/images/info_title_06.gif" width="13" height="17"></td>
</tr>
<tr>
<td> <a href="javascript:;" onMouseOver="MM_swapImage('Image1','','/images/info_title_07_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_07.gif" alt="소개" name="Image1" width="107" height="68" border="0" id="Image1"></a></td>
<td> <a href="./?doc=bbs/gnuboard.php&bo_table=news" onMouseOver="MM_swapImage('Image2','','/images/info_title_08_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_08.gif" alt="뉴스" name="Image2" width="118" height="68" border="0" id="Image2"></a></td>
<td> <a href="./?doc=bbs/gnuboard.php&bo_table=note" onMouseOver="MM_swapImage('Image3','','/images/info_title_09_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_09.gif" alt="팁/테크" name="Image3" width="121" height="68" border="0" id="Image3"></a></td>
<td colspan="3"> <a href="./?doc=bbs/gnuboard.php&bo_table=usernote" onMouseOver="MM_swapImage('Image4','','/images/info_title_10_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_10.gif" alt="유저노트" name="Image4" width="118" height="68" border="0" id="Image4"></a></td>
<td colspan="3"> <a href="./?doc=bbs/gnuboard.php&bo_table=freeboard" onMouseOver="MM_swapImage('Image5','','/images/info_title_11_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_11.gif" alt="노갈까기" name="Image5" width="107" height="68" border="0" id="Image5"></a></td>
</tr>
<tr>
<td> <img src="/images/spacer.gif" width="229" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="107" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="118" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="121" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="35" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="45" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="38" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="22" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="72" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="13" height="1" alt=""></td>
</tr>
</table>
<table width="800" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td background="/images/info_lore_01.gif" width="186" height="50"></td>
<td background="/images/info_lore_02.gif" width="596" height="50"></td>
<td background="/images/info_lore_03.gif" width="18" height="50"></td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="5" colspan="3"></td>
</tr>
<tr>
<td width="180" align="center" valign="top">
<table width="180" height="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="/images/login_01.gif" width="180" height="86" colspan="3"></td>
</tr>
<tr>
<td background="/images/login_02.gif" width="10" height="103"></td>
<td width="159" height="103" align="center" background="/images/login_03.gif">
<? include "./bbs/outlogin.php";?>
</td>
<td background="/images/login_04.gif" width="11" height="103"></td>
</tr>
<tr>
<td background="/images/login_05.gif" width="180" height="11" colspan="3"></td>
</tr>
</table>
<? include "/home/muchunrang/traffic.php" ?>
</td>
<td width="5" rowspan="2"> </td>
<td rowspan="2">
==========================================================================================
xxxxfoot.php
==========================================================================================
</td>
</tr>
<tr>
<td align="center" valign="bottom">
<table width="180" height="165" border="0" cellpadding="0" cellspacing="0">
<tr align="center" valign="top">
<td width="180" height="44" colspan="3" background="/images/counter_01.gif"></td>
</tr>
<tr>
<td colspan="3" background="/images/counter_02.gif" width="180" height="3"></td>
</tr>
<tr>
<td background="/images/counter_03.gif" width="14" height="17"></td>
<td background="/images/counter_04.gif" width="149" height="17"></td>
<td background="/images/counter_05.gif" width="17" height="17"></td>
</tr>
<tr>
<td background="/images/counter_06.gif" width="14" height="89"></td>
<td width="149" height="89" align="center" background="/images/counter_07.gif">
<? include "./bbs/count.php"; ?>
</td>
<td background="/images/counter_08.gif" width="17" height="89"></td>
</tr>
<tr>
<td background="/images/counter_09.gif" width="14" height="12"></td>
<td background="/images/counter_10.gif" width="149" height="12"></td>
<td background="/images/counter_11.gif" width="17" height="12"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="800" height="125"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td background="/images/copyright_01.gif" width="103" height="60"></td>
<td background="/images/copyright_02.gif" width="588" height="60"></td>
<td background="/images/copyright_03.gif" width="109" height="60"></td>
</tr>
<tr>
<td background="/images/copyright_04.gif" width="103" height="60"></td>
<td background="/images/copyright_05.gif" width="588" height="60"></td>
<td background="/images/copyright_06.gif" width="109" height="60"></td>
</tr>
</table>
<script language='JavaScript' src='./wrest.js'></script>
<!-- 사용 skin
board : <?="$board_skin\n"?>
outlogin : <?="$outlogin_skin\n"?>
member : <?="$member_skin\n"?>
latest : <?="$latest_skin\n"?>
vote : <?="$vote_skin\n"?>
-->
</body>
</html>
==========================================================================================
==========================================================================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
/*
HTML 틀 상단
사용자가 수정시 주의 요망
*/
/*
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
*/
// 쪽지가 전달되었나?
if ($member[mb_memo_call_mb_id]) {
$mb = get_member($member[mb_memo_call_mb_id]);
$sql = " update $cfg[table_member]
set mb_memo_call_mb_id = ''
where mb_id = '$member[mb_id]' ";
sql_query($sql);
alert("{$mb[mb_name]}($member[mb_memo_call_mb_id])님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
include "./bbs/gblayer.php";
?>
<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=euc-kr'>
<title><?=$html_title?></title>
<link rel='stylesheet' href='./style.css' type='text/css'>
<link rel='stylesheet' href='./mystyle.css' type='text/css'>
<script language="JavaScript" type="text/JavaScript">
<!--
function allblur() {
for (i = 0; i < document.links.length; i++)
document.links[i].onfocus = document.links[i].blur;
}
document.onfocusin = allblur;
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language='JavaScript' src='./javascript.js'></script>
</head>
<body leftmargin='<?=$cfg[leftmargin]?>' topmargin='<?=$cfg[topmargin]?>' <?=$script?> onLoad="MM_preloadImages('/images/info_title_07_2.gif','/images/info_title_08_2.gif','/images/info_title_09_2.gif','/images/info_title_10_2.gif','/images/info_title_11_2.gif')">
<!-- 상단 책갈피 -->
<a name='gnuboard_head'></a>
<table width="800" height="86" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="Table_01">
<tr>
<td background="/images/info_title_01.gif" width="229" height="85" rowspan="2"></td>
<td background="/images/info_title_02.gif" width="381" height="17" colspan="4"></td>
<td> <a href="./?doc=info_main_v5.php"><img src="/images/info_title_03.gif" alt="메인" width="45" height="17" border="0"></a></td>
<td colspan="2"> <img src="/images/info_title_04.gif" width="60" height="17" alt="사이트맵"></td>
<td> <img src="/images/info_title_05.gif" width="72" height="17" alt="단몽"></td>
<td background="/images/info_title_06.gif" width="13" height="17"></td>
</tr>
<tr>
<td> <a href="javascript:;" onMouseOver="MM_swapImage('Image1','','/images/info_title_07_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_07.gif" alt="소개" name="Image1" width="107" height="68" border="0" id="Image1"></a></td>
<td> <a href="./?doc=bbs/gnuboard.php&bo_table=news" onMouseOver="MM_swapImage('Image2','','/images/info_title_08_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_08.gif" alt="뉴스" name="Image2" width="118" height="68" border="0" id="Image2"></a></td>
<td> <a href="./?doc=bbs/gnuboard.php&bo_table=note" onMouseOver="MM_swapImage('Image3','','/images/info_title_09_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_09.gif" alt="팁/테크" name="Image3" width="121" height="68" border="0" id="Image3"></a></td>
<td colspan="3"> <a href="./?doc=bbs/gnuboard.php&bo_table=usernote" onMouseOver="MM_swapImage('Image4','','/images/info_title_10_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_10.gif" alt="유저노트" name="Image4" width="118" height="68" border="0" id="Image4"></a></td>
<td colspan="3"> <a href="./?doc=bbs/gnuboard.php&bo_table=freeboard" onMouseOver="MM_swapImage('Image5','','/images/info_title_11_2.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="/images/info_title_11.gif" alt="노갈까기" name="Image5" width="107" height="68" border="0" id="Image5"></a></td>
</tr>
<tr>
<td> <img src="/images/spacer.gif" width="229" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="107" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="118" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="121" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="35" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="45" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="38" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="22" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="72" height="1" alt=""></td>
<td> <img src="/images/spacer.gif" width="13" height="1" alt=""></td>
</tr>
</table>
<table width="800" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td background="/images/info_lore_01.gif" width="186" height="50"></td>
<td background="/images/info_lore_02.gif" width="596" height="50"></td>
<td background="/images/info_lore_03.gif" width="18" height="50"></td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="5" colspan="3"></td>
</tr>
<tr>
<td width="180" align="center" valign="top">
<table width="180" height="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="/images/login_01.gif" width="180" height="86" colspan="3"></td>
</tr>
<tr>
<td background="/images/login_02.gif" width="10" height="103"></td>
<td width="159" height="103" align="center" background="/images/login_03.gif">
<? include "./bbs/outlogin.php";?>
</td>
<td background="/images/login_04.gif" width="11" height="103"></td>
</tr>
<tr>
<td background="/images/login_05.gif" width="180" height="11" colspan="3"></td>
</tr>
</table>
<? include "/home/muchunrang/traffic.php" ?>
</td>
<td width="5" rowspan="2"> </td>
<td rowspan="2">
==========================================================================================
xxxxfoot.php
==========================================================================================
</td>
</tr>
<tr>
<td align="center" valign="bottom">
<table width="180" height="165" border="0" cellpadding="0" cellspacing="0">
<tr align="center" valign="top">
<td width="180" height="44" colspan="3" background="/images/counter_01.gif"></td>
</tr>
<tr>
<td colspan="3" background="/images/counter_02.gif" width="180" height="3"></td>
</tr>
<tr>
<td background="/images/counter_03.gif" width="14" height="17"></td>
<td background="/images/counter_04.gif" width="149" height="17"></td>
<td background="/images/counter_05.gif" width="17" height="17"></td>
</tr>
<tr>
<td background="/images/counter_06.gif" width="14" height="89"></td>
<td width="149" height="89" align="center" background="/images/counter_07.gif">
<? include "./bbs/count.php"; ?>
</td>
<td background="/images/counter_08.gif" width="17" height="89"></td>
</tr>
<tr>
<td background="/images/counter_09.gif" width="14" height="12"></td>
<td background="/images/counter_10.gif" width="149" height="12"></td>
<td background="/images/counter_11.gif" width="17" height="12"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="800" height="125"border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td background="/images/copyright_01.gif" width="103" height="60"></td>
<td background="/images/copyright_02.gif" width="588" height="60"></td>
<td background="/images/copyright_03.gif" width="109" height="60"></td>
</tr>
<tr>
<td background="/images/copyright_04.gif" width="103" height="60"></td>
<td background="/images/copyright_05.gif" width="588" height="60"></td>
<td background="/images/copyright_06.gif" width="109" height="60"></td>
</tr>
</table>
<script language='JavaScript' src='./wrest.js'></script>
<!-- 사용 skin
board : <?="$board_skin\n"?>
outlogin : <?="$outlogin_skin\n"?>
member : <?="$member_skin\n"?>
latest : <?="$latest_skin\n"?>
vote : <?="$vote_skin\n"?>
-->
</body>
</html>
==========================================================================================
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 9개
위 소스 재밌네요.. 제가 좀 퍼갑니다..
지니//
<? for ($i=1; $i<=$cfg[file_count]; $i++) { ?>
<tr>
<td align="right" class="verda_7">File # <?=$i?></td>
<td align="center" class="verda_7">|</td>
<td><input type='file' name='wr_file<?=$i?>' itemname='파일 #<?=$i?>' style='width:70%;' class='i_t'><?=$file[$i][delete]?></td>
</tr>
<? } ?>
이렇게 되어있습니다. 매우 표준적이죠. 자작한 스킨이긴 하지만 기본적인 토대를 그누베이직의 함수나 변수들을 가져와서 문제가 없었습니다. ^_^ 신경써주셔서 감사합니다.
나라오름 //
네 그부분이 문제였습니다. 그 파일은 throttle 을 이용한 구문을 통해 트래픽을 표시하는 것인데... 왜 문제가 됐을까요. -0-; 없애니까 정상적으로 표시가 되는군요.
아래와 같은 소스로 되어 있었습니다.
<?
ini_set("allow_url_fopen","1"); // 서버 설정에 따라 file() 함수의 사용이 가능하도록... [라인추가]
$throttle = "http://xxxxxxxxxxxxxx/";
$file = file($throttle); // 소스를 읽고,
$traffic = sprintf("%0.2f",strip_tags($file[43]) / 1024); // 44번 라인을 읽어서 태그를 없애고 MB단위로...배열은 0부터 44-1 = 43
$limit = sprintf("%0.1f",strip_tags(eregi_replace("M", "",$file[47]))); // 48번 라인을 읽어서 태그를 없애고 GB단위로...
$widred = sprintf("%0.1f",$traffic/$limit*100);
?>
<table border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="center"><font style='font-family:verdana;font-size:7pt;color:#666666;font-weight:bold;'>- Traffic : <font style='font-family:verdana;font-size:7pt;color:darkblue;'>
<?=$traffic?>
MB</font> / <font style='font-family:verdana;font-size:7pt;color:darkred;'>
<?=$limit?>
MB</font></font></td>
</tr>
<tr>
<td bgcolor="#CCE3FD" style="border:1px solid #999999;">
<table width="<?=$widred?>%" height="5" border="0" cellpadding="0" cellspacing="2" bgcolor="#E30000">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
괜찮으시다면 이 소스가 문제가 안생기도록 수정해주실수는 없을까요;;
이 부분의 traffic.php 파일을 한번 살펴보십시오..
제가 보긴 인클루드되는 파일에 문제가 있는것 같습니다.
for ($i=1; $i<=$cfg[file_count]; $i++) {
$file[$i][file] = $write["wr_file".$i];
if ($file[$i][file]) {
$file[$i][delete] = "<br><input type=checkbox name='wr_file_del{$i}' value='1'>".$write["wr_file".$i."_source"]." 파일 삭제";
}
}
소스중 ".$write["wr_file".$i."_source"]." 부분이 파일이름입니다.
그중 위의 함수 $file[$i][delete] 를 스킨파일 gbform.skin.php 에서 다시 불러오는데.. 이때 문제가 발생하는듯 싶네요.
전체 소스보다는 스킨파일 gbform.skin.php 에서 for 구문만 올려주실수는 없는지요.
보탬이 되어 드리지 못해 죄송합니다.