<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if(defined('G5_THEME_PATH')) {
require_once(G5_THEME_PATH.'/head.php');
return;
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/head.php');
return;
}
include_once(G5_PATH.'/head.sub.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
include_once(G5_LIB_PATH.'/outlogin.lib.php');
include_once(G5_LIB_PATH.'/language.lib.php');
include_once(G5_LIB_PATH.'/poll.lib.php');
include_once(G5_LIB_PATH.'/visit.lib.php');
include_once(G5_LIB_PATH.'/connect.lib.php');
?>
<!-- 상단 시작 { -->
<div id="header" <? if(!$is_member){ echo "style='height:75px;'"; } ?> >
<? if($is_admin){ ?>
<div id="mgt">
</div>
<? } ?>
<div id="hd">
<div id="skip_to_container"><a href="#container">본문 바로가기</a></div>
<?php
if(defined('_INDEX_')) { // index에서만 실행
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
}
?>
<div id="logo"><a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/logo.png" alt="<?php echo $config['cf_title']; ?>"></a></div>
<div id="search">
<fieldset id="sch" >
<script>
function fsearchbox_submit(f)
{
if (f.stx.value.length < 2) {
alert("<?=$lang['sch_text1']?>");
f.stx.select();
f.stx.focus();
return false;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++) {
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1) {
alert("<?=$lang['sch_text2']?>");
f.stx.select();
f.stx.focus();
return false;
}
return true;
}
</script>
</fieldset>
</div>
<div id="member">
<ul>
<?php if ($is_member) { ?>
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php"><?=$lang['infor_text']?></a></li>
<li><a href="<?php echo G5_BBS_URL ?>/logout.php"><?=$lang['logout_text']?></a></li>
<?php } else { ?>
<li><a href="<?php echo G5_BBS_URL ?>/login.php"><?=$lang['login_text']?></a></li>
<li><a href="<?php echo G5_BBS_URL ?>/register_form.php"><?=$lang['join_text']?></a></li>
<?php } ?>
</ul>
</div>
</div>
<ul id="navi">
<? for($i=0;$i<count($lang['nv_name']);$i++){ ?>
<li><a href="<?=$lang['nv_link'][$i]?>" target="_<?=$lang['nv_target'][$i]?>"><img src="<?php echo G5_IMG_URL ?>/icon<?=$i?>.png" /><?=$lang['nv_name'][$i]?></a></li>
<? } ?>
</ul>
</div>
<div id="banner"><? echo latest('banner', 'a1', 4, 24); ?></div>
<!-- } 상단 끝 -->
<hr>
<!-- 콘텐츠 시작 { -->
<div id="wrapper">
<div id="container_wr">
<div id="container">
<? include_once(G5_PATH.'/category.php'); ?>
<? include_once(G5_PATH.'/title.php'); ?>
<? include_once(G5_PATH.'/notice.php'); ?>