갤러리 사진 오른쪽마우스 사용금지.... 정보
갤러리 사진 오른쪽마우스 사용금지....본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
갤러리 사진의 오른쪽마우스 사용금지를 설정하려고 질문 답변에 있는 몇가지 를
적용해 봤으나 되지않아 문의 드립니다.
skin/board/elpis+class-teacher/view.skin.php
< view.skin.php >
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="2" bgcolor="#9A9AFA"></td></tr>
<tr>
<td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<?
for ($i=0; $i<=4; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
}
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%><? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=25% align=right><? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- <tr><td height=2 bgcolor=#B0ADF5></td></tr> -->
<tr>
<td height="10"> </td>
</tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="210">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="9" colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_top.gif" width="210" height="9"></td>
</tr>
<tr>
<td width="9" background="<?= $board_skin_path?>/img/progress/skin_left.gif"></td>
<td width="192">
<!-- 이미지출력 -->
<?
// 파일 출력
if ($view[file][0][view]) {?>
<a href="<?=$image[0]?>" target="_blank"><img src="<?=$image[0]?>" name=gallery_img width="192" height="140" border=0 value=0></a>
<? } else {
echo "<img src={$board_skin_path}/img/progress/no_image.gif>";
} ?></a>
</td>
<td width="9" valign="top" background="<?= $board_skin_path?>/img/progress/skin_right.gif"><img src="<?= $board_skin_path?>/img/progress/skin_right_img.gif" width="9" height="5"></td>
</tr>
<tr>
<td colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_down.gif" width="210" height="9"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td colspan="3" height="30" align="right">
</td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- 추가필드시작-->
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 고 객 명 : <?php echo $view[subject] ?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 공 사 위 치 : <?php echo $view[wr_1] ?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 규 모 : <?=$view[wr_2]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 시 공 일 자 : <?=$view[wr_3]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 조 회 : <?=$view[wr_hit]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<!-- 추가필드끝-->
<tr>
<td height="20" valign="bottom"></td>
</tr>
<tr>
<td>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
<!-- 박스 시작-->
<table border="0" cellpadding="0" cellspacing="0" width="620">
<tr>
<td width="620" height="154">
<table border="0" cellpadding="0" cellspacing="0" width="622" bgcolor="#CCCCCC" height="152">
<tr>
<td width="1" bgcolor="white" height="1"></td>
<td width="620" height="1"></td>
<td width="1" bgcolor="white" height="1"></td>
</tr>
<tr>
<td width="1" height="70"></td>
<td width="620" bgcolor="#E8E5E5" height="152" valign="top">
<table border="0" cellpadding="3" cellspacing="0" width="298" height="152">
<tr>
<td width="290" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="148" align="center">
<tr>
<td width="100%" height="148" bgcolor="white" valign="top" align="center">
<table border="0" width="650" cellpadding="5" cellspacing="0">
<tr>
<td width="650" >
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<br>
<span class="ct lh"><?=$view[content];?></span>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
</table>
</td>
<td width="1" height="70"></td>
</tr>
<tr>
<td width="1" bgcolor="white" height="1"></td>
<td width="620" height="1"></td>
<td width="1" bgcolor="white" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 박스 끝-->
</td>
</tr>
<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
<tr>
<td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
<tr>
<td>
<br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td>
</tr>
</table><br>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<!-- 게시글 보기 끝 -->[EOF]
오류 주소 :
갤러리 사진의 오른쪽마우스 사용금지를 설정하려고 질문 답변에 있는 몇가지 를
적용해 봤으나 되지않아 문의 드립니다.
skin/board/elpis+class-teacher/view.skin.php
< view.skin.php >
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="2" bgcolor="#9A9AFA"></td></tr>
<tr>
<td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<?
for ($i=0; $i<=4; $i++) {
$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];
}
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%><? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=25% align=right><? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<table width="100%" cellspacing="0" cellpadding="0">
<!-- <tr><td height=2 bgcolor=#B0ADF5></td></tr> -->
<tr>
<td height="10"> </td>
</tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="210">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="9" colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_top.gif" width="210" height="9"></td>
</tr>
<tr>
<td width="9" background="<?= $board_skin_path?>/img/progress/skin_left.gif"></td>
<td width="192">
<!-- 이미지출력 -->
<?
// 파일 출력
if ($view[file][0][view]) {?>
<a href="<?=$image[0]?>" target="_blank"><img src="<?=$image[0]?>" name=gallery_img width="192" height="140" border=0 value=0></a>
<? } else {
echo "<img src={$board_skin_path}/img/progress/no_image.gif>";
} ?></a>
</td>
<td width="9" valign="top" background="<?= $board_skin_path?>/img/progress/skin_right.gif"><img src="<?= $board_skin_path?>/img/progress/skin_right_img.gif" width="9" height="5"></td>
</tr>
<tr>
<td colspan="3"><img src="<?= $board_skin_path?>/img/progress/skin_down.gif" width="210" height="9"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
<tr>
<td colspan="3" height="30" align="right">
</td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- 추가필드시작-->
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 고 객 명 : <?php echo $view[subject] ?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 공 사 위 치 : <?php echo $view[wr_1] ?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 규 모 : <?=$view[wr_2]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 시 공 일 자 : <?=$view[wr_3]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<td height=30 > <?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 조 회 : <?=$view[wr_hit]?></td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
<!-- 추가필드끝-->
<tr>
<td height="20" valign="bottom"></td>
</tr>
<tr>
<td>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"> </td>
</tr>
</table>
<!-- 박스 시작-->
<table border="0" cellpadding="0" cellspacing="0" width="620">
<tr>
<td width="620" height="154">
<table border="0" cellpadding="0" cellspacing="0" width="622" bgcolor="#CCCCCC" height="152">
<tr>
<td width="1" bgcolor="white" height="1"></td>
<td width="620" height="1"></td>
<td width="1" bgcolor="white" height="1"></td>
</tr>
<tr>
<td width="1" height="70"></td>
<td width="620" bgcolor="#E8E5E5" height="152" valign="top">
<table border="0" cellpadding="3" cellspacing="0" width="298" height="152">
<tr>
<td width="290" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="148" align="center">
<tr>
<td width="100%" height="148" bgcolor="white" valign="top" align="center">
<table border="0" width="650" cellpadding="5" cellspacing="0">
<tr>
<td width="650" >
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<br>
<span class="ct lh"><?=$view[content];?></span>
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
</table>
</td>
<td width="1" height="70"></td>
</tr>
<tr>
<td width="1" bgcolor="white" height="1"></td>
<td width="620" height="1"></td>
<td width="1" bgcolor="white" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 박스 끝-->
</td>
</tr>
<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
if ($view[link][$i])
{
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle> 홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
}
}
?>
<tr>
<td>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?>
</td>
</tr>
<tr>
<td>
<br>
<?
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td>
</tr>
</table><br>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
<!-- 게시글 보기 끝 -->[EOF]
댓글 전체
<script type="text/javascript">
var objBody = document.getElementsByTagName("body");
objBody[0].setAttribute("onselectstart",function(){return false;});
objBody[0].setAttribute("ondragstart",function(){return false;});
objBody[0].setAttribute("ondragdrop",function(){return false;});
objBody[0].setAttribute("oncontextmenu",function(){return false;});
</script>
이거를 우클릭방지하고싶은 게시판에 적용하시면 그게시판만 우클릭안되실거에요~
아니시면
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
이거를 head.sub.php 하단에 적용하시면 전체홈페이지 우클릭안되구요~
var objBody = document.getElementsByTagName("body");
objBody[0].setAttribute("onselectstart",function(){return false;});
objBody[0].setAttribute("ondragstart",function(){return false;});
objBody[0].setAttribute("ondragdrop",function(){return false;});
objBody[0].setAttribute("oncontextmenu",function(){return false;});
</script>
이거를 우클릭방지하고싶은 게시판에 적용하시면 그게시판만 우클릭안되실거에요~
아니시면
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
이거를 head.sub.php 하단에 적용하시면 전체홈페이지 우클릭안되구요~
[ head.sub.php ]
<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset=$g4[charset]");
$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
/*
// 만료된 페이지로 사용하시는 경우
header("Cache-Control: no-cache"); // HTTP/1.1
header("Expires: 0"); // rfc2616 - Section 14.21
header("Pragma: no-cache"); // HTTP/1.0
*/
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title><?=$g4['title']?></title>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
</head>
<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?=$g4['path']?>";
var g4_bbs = "<?=$g4['bbs']?>";
var g4_bbs_img = "<?=$g4['bbs_img']?>";
var g4_url = "<?=$g4['url']?>";
var g4_is_member = "<?=$is_member?>";
var g4_is_admin = "<?=$is_admin?>";
var g4_bo_table = "<?=isset($bo_table)?$bo_table:'';?>";
var g4_sca = "<?=isset($sca)?$sca:'';?>";
var g4_charset = "<?=$g4['charset']?>";
var g4_cookie_domain = "<?=$g4['cookie_domain']?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script type="text/javascript" src="<?=$g4['path']?>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script>
<body topmargin="0" leftmargin="0" <?=isset($g4['body_script']) ? $g4['body_script'] : "";?>>
<a name="g4_head"></a>
<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
// 쪽지를 받았나?
if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset=$g4[charset]");
$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
/*
// 만료된 페이지로 사용하시는 경우
header("Cache-Control: no-cache"); // HTTP/1.1
header("Expires: 0"); // rfc2616 - Section 14.21
header("Pragma: no-cache"); // HTTP/1.0
*/
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title><?=$g4['title']?></title>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
</head>
<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?=$g4['path']?>";
var g4_bbs = "<?=$g4['bbs']?>";
var g4_bbs_img = "<?=$g4['bbs_img']?>";
var g4_url = "<?=$g4['url']?>";
var g4_is_member = "<?=$is_member?>";
var g4_is_admin = "<?=$is_admin?>";
var g4_bo_table = "<?=isset($bo_table)?$bo_table:'';?>";
var g4_sca = "<?=isset($sca)?$sca:'';?>";
var g4_charset = "<?=$g4['charset']?>";
var g4_cookie_domain = "<?=$g4['cookie_domain']?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script type="text/javascript" src="<?=$g4['path']?>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/common.js"></script>
<body topmargin="0" leftmargin="0" <?=isset($g4['body_script']) ? $g4['body_script'] : "";?>>
<a name="g4_head"></a>
말그대로 하단에 엔터쳐서 넣으시면됩니다
<body>와 </body>사이에 들어가야되서요~
head.sub.php에서 body를 열어주고 tail.sub.php에서 body를 닫아주므로
그누보드는 어느페이지든 head.sub.php를 위에열고 tail.sub.php를 아래 닫아주므로
head.sub.php 제일하단인
<a name="g4_head"></a> 이부분아래
지정해주면 됩니다.
<body>와 </body>사이에 들어가야되서요~
head.sub.php에서 body를 열어주고 tail.sub.php에서 body를 닫아주므로
그누보드는 어느페이지든 head.sub.php를 위에열고 tail.sub.php를 아래 닫아주므로
head.sub.php 제일하단인
<a name="g4_head"></a> 이부분아래
지정해주면 됩니다.