쏘스 정보
도움요청 쏘스
본문
-----------------------------------head.php ----------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
<body background='<?=$g4[uimg_path]?>/BackGround.gif'>
<div style="height:8"></div>
<table align="center" cellpadding="0" cellspacing="0" width="100%" bgcolor="#D2D2D2">
<tr>
<td>
</td>
<td width="900" align="center">
<table width="903" cellpadding="0" cellspacing="0" style="position:relative;">
<tr>
<td width="183" bgcolor="#B5B5B5" colspan="5" height="3"><img src="<?=$g4[uimg_path]?>/TOP/Shadow_Top.gif" border="0"></td>
<td height="3"></td>
</tr>
<tr>
<td width="3" background="<?=$g4[uimg_path]?>/TOP/Shadow_Left.gif" rowspan="2"></td>
<td width="1" bgcolor="#B5B5B5" rowspan="2"></td>
<td width="172" bgcolor="#EEEEEE" valign="top" rowspan="2">
<table cellpadding="0" cellspacing="0" width="172" height="17"><tr><td><img src="<?=$g4[uimg_path]?>/TOP/TOP_Line.gif" border="0"></td></tr></table>
<table align="center" cellpadding="0" cellspacing="0" width="100%" bgcolor="#D2D2D2">
<tr>
<td>
</td>
<td width="900" align="center">
<table width="903" cellpadding="0" cellspacing="0" style="position:relative;">
<tr>
<td width="183" bgcolor="#B5B5B5" colspan="5" height="3"><img src="<?=$g4[uimg_path]?>/TOP/Shadow_Top.gif" border="0"></td>
<td height="3"></td>
</tr>
<tr>
<td width="3" background="<?=$g4[uimg_path]?>/TOP/Shadow_Left.gif" rowspan="2"></td>
<td width="1" bgcolor="#B5B5B5" rowspan="2"></td>
<td width="172" bgcolor="#EEEEEE" valign="top" rowspan="2">
<table cellpadding="0" cellspacing="0" width="172" height="17"><tr><td><img src="<?=$g4[uimg_path]?>/TOP/TOP_Line.gif" border="0"></td></tr></table>
<table cellspacing="0" width="172" bordercolordark="white" bordercolorlight="black" cellpadding="0">
<tr>
<td height="66"><p align="center"><a href="<?=$g4[path]?>" onfocus="blur()"><img src="<?=$g4[uimg_path]?>/TOP/Title.gif" border="0"></a></p></td>
</tr>
<tr>
<td><?=outlogin("basic"); // 외부 로그인 ?></td></tr>
<tr><td height="15"></td></tr>
</table>
</td>
<td width="1" bgcolor="#B5B5B5" rowspan="2"></td>
<td width="6" background="<?=$g4[uimg_path]?>/TOP/Shadow_Right.gif" valign="top" height="22"><img src="<?=$g4[uimg_path]?>/TOP/Shadow_Top_Right.gif" border="0"></td>
<td height="20" align="right" width="100%">
<table cellpadding="0" cellspacing="0"><tr><td width="500" align="right"><A onfocus="blur()" href="javascript:window.external.AddFavorite('http://www.irivermania.net','아이리버 매니아클럽')"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Favorites.gif" width="84" height="19" border="0"></A><A onfocus="blur()" href="<?=$g4[path]?>/_PG_info.php"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Homeinfo.gif" width="84" height="19" border="0"></A><A onfocus="blur()" href="<?=$g4[path]?>/_PG_sitemap.php"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Sitemap.gif" width="73" height="19" border="0"></A></td><td width="5"></td></tr></table>
</td></tr>
<tr>
<td valign="bottom" colspan="2" height="168"><table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="bottom">
<table cellpadding="0" cellspacing="0" width="100%" height="184">
<td height="20" align="right" width="100%">
<table cellpadding="0" cellspacing="0"><tr><td width="500" align="right"><A onfocus="blur()" href="javascript:window.external.AddFavorite('http://www.irivermania.net','아이리버 매니아클럽')"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Favorites.gif" width="84" height="19" border="0"></A><A onfocus="blur()" href="<?=$g4[path]?>/_PG_info.php"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Homeinfo.gif" width="84" height="19" border="0"></A><A onfocus="blur()" href="<?=$g4[path]?>/_PG_sitemap.php"><img src="<?=$g4[uimg_path]?>/TOP/TOP_Button_Sitemap.gif" width="73" height="19" border="0"></A></td><td width="5"></td></tr></table>
</td></tr>
<tr>
<td valign="bottom" colspan="2" height="168"><table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="bottom">
<table cellpadding="0" cellspacing="0" width="100%" height="184">
<tr>
<td valign="middle" background="<?=$g4[uimg_path]?>/Channel_Title/BackGorund.gif">
<!-- 그룹에 따라 상단 이미지를 다르게 불러 온다 *수정 필요없이 그룹이름에 맞게 이미지만 넣어주면 됨* -->
<img src='<?=$g4[uimg_path]?>/Channel_Title/<?if ($gr_id)echo $gr_id; else echo "index";?>.jpg' width='720' height='112' border='0'>
<? include_once("$g4[path]/_COM_main_menu.inc.php"); //상단 메뉴 ?>
<?
//그룹에 따라 왼쪽 메뉴를 다르게 인클루드.
//보안 밎 안정성 중시!
//그룹에 따라 왼쪽 메뉴를 다르게 인클루드.
//보안 밎 안정성 중시!
switch ($gr_id) {
case(community):
include_once("$g4[path]/_GROUP_community.inc.php");
$gr_link_url = "_community.php";
break;
case(community):
include_once("$g4[path]/_GROUP_community.inc.php");
$gr_link_url = "_community.php";
break;
case(info):
include_once("$g4[path]/_GROUP_info.inc.php");
$gr_link_url = "_info.php";
break;
include_once("$g4[path]/_GROUP_info.inc.php");
$gr_link_url = "_info.php";
break;
case(maniaclub):
include_once("$g4[path]/_GROUP_maniaclub.inc.php");
$gr_link_url = "_maniaclub.php";
break;
include_once("$g4[path]/_GROUP_maniaclub.inc.php");
$gr_link_url = "_maniaclub.php";
break;
case(pds):
include_once("$g4[path]/_GROUP_pds.inc.php");
$gr_link_url = "_pds.php";
break;
include_once("$g4[path]/_GROUP_pds.inc.php");
$gr_link_url = "_pds.php";
break;
//맞는값이 없을경우 인덱스
default :
include_once("$g4[path]/_GROUP_index.inc.php");
$gr_link_url = "";
}
?>
default :
include_once("$g4[path]/_GROUP_index.inc.php");
$gr_link_url = "";
}
?>
<? include_once("$g4[path]/_COM_left_menu.inc.php"); //좌측 공통메뉴 ?>
</td><td valign='top' rowspan='2' width='1' bgcolor='#B5B5B5'></td><td valign='top' rowspan='2' bgcolor='white'>
<? if($gr_id) { //상단 현재위치 표시. 그룹id가 없을경우 표시하지 않는다 (인덱스) ?>
<table cellpadding="0" cellspacing="0" width="100%" height="25" bgcolor=eeeeee>
<tr><td valign="top" height="5" width="716"></td></tr><tr><td valign="top"width="716">
<p> <a href="<?=$g4[path]?>">HOME</a> >> <? if($gr_link_url) echo "<a href=$g4[path]/".$gr_link_url.">"; ?><?=$group[gr_subject]?><? if($gr_link_url) echo "</a>"; ?><?if($board[bo_subject]) echo " >> $board[bo_subject]"; //게시판 이름이 있을경우?></p>
</td></tr></table>
<? } ?>
<table cellpadding="0" cellspacing="0" width="100%" height="25" bgcolor=eeeeee>
<tr><td valign="top" height="5" width="716"></td></tr><tr><td valign="top"width="716">
<p> <a href="<?=$g4[path]?>">HOME</a> >> <? if($gr_link_url) echo "<a href=$g4[path]/".$gr_link_url.">"; ?><?=$group[gr_subject]?><? if($gr_link_url) echo "</a>"; ?><?if($board[bo_subject]) echo " >> $board[bo_subject]"; //게시판 이름이 있을경우?></p>
</td></tr></table>
<? } ?>
-------------------------------- _COM_left_menu.inc.php -----------------------------
<!--전체 공통 인클루드 파일
테이블이나 이미지 삽입시 172px로 맞춰줄것! -->
<br>
<table cellpadding="0" cellspacing="0" width="172">
<tr>
<td>
<p><img src="<?=$g4[uimg_path]?>/Contents_Title/Search.gif" width="172" height="27" border="0"></p>
</td>
</tr>
<tr><td align="center" valign="middle" height="55" bgcolor="#E0E0DC">
<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="11"></td>
<td width="220"></td>
<td width=""></td>
<td width="234"><img src="<?=$g4[path]?>/img/search_top.gif" width="234" height="11"></td>
<td width="35"></td>
</tr>
<tr>
<td height="33"><img src="<?=$g4[path]?>/img/bar_01.gif" width="43" height="33"></td>
<td><img src="<?=$g4[path]?>/img/bar_02.gif" width="220" height="33"></td>
<td background="<?=$g4[path]?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="25" height="25"><img src="<?=$g4[path]?>/img/search_01.gif" width="25" height="25"></td>
<td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
<td width="12"><img src="<?=$g4[path]?>/img/search_02.gif" width="12" height="25"></td>
<td width="48"><input type="image" src="<?=$g4[path]?>/img/search_button.gif" width="48" height="25" border="0"></td>
<td width="13"><img src="<?=$g4[path]?>/img/search_03.gif" width="13" height="25"></td>
</tr>
<tr>
<td width="234" height="8" colspan="5"><img src="<?=$g4[path]?>/img/search_down.gif" width="234" height="8"></td>
</tr>
</form>
</table></td>
<td></td>
</tr>
</table>
테이블이나 이미지 삽입시 172px로 맞춰줄것! -->
<br>
<table cellpadding="0" cellspacing="0" width="172">
<tr>
<td>
<p><img src="<?=$g4[uimg_path]?>/Contents_Title/Search.gif" width="172" height="27" border="0"></p>
</td>
</tr>
<tr><td align="center" valign="middle" height="55" bgcolor="#E0E0DC">
<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="11"></td>
<td width="220"></td>
<td width=""></td>
<td width="234"><img src="<?=$g4[path]?>/img/search_top.gif" width="234" height="11"></td>
<td width="35"></td>
</tr>
<tr>
<td height="33"><img src="<?=$g4[path]?>/img/bar_01.gif" width="43" height="33"></td>
<td><img src="<?=$g4[path]?>/img/bar_02.gif" width="220" height="33"></td>
<td background="<?=$g4[path]?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25> </td><td><?//=popular();?></td></tr></table></td>
<td>
<table width="100%" height="33" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="25" height="25"><img src="<?=$g4[path]?>/img/search_01.gif" width="25" height="25"></td>
<td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
<td width="12"><img src="<?=$g4[path]?>/img/search_02.gif" width="12" height="25"></td>
<td width="48"><input type="image" src="<?=$g4[path]?>/img/search_button.gif" width="48" height="25" border="0"></td>
<td width="13"><img src="<?=$g4[path]?>/img/search_03.gif" width="13" height="25"></td>
</tr>
<tr>
<td width="234" height="8" colspan="5"><img src="<?=$g4[path]?>/img/search_down.gif" width="234" height="8"></td>
</tr>
</form>
</table></td>
<td></td>
</tr>
</table>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
// f.action = "<?=$g4[bbs_path]?>/search.php"; (주석 에러땜에 막음)
f.submit();
}
</script>
<!-- 검색 끝 -->
</td></tr>
</table>
f.submit();
}
</script>
<!-- 검색 끝 -->
</td></tr>
</table>
------------------------
요렇습니다.
초보가 만들어서 소스가 허접하니 감안하세요 -_-
나머지 인클루드되는 파일이나 index.php내용, tail.php내용은 별다른 소스가 없고 그냥 단순합니다.(지워본 결과.. 아무 영향이 없더군요)
그 외 그누4 구성 파일들은 수정된것 없구요
댓글 전체