88 lines
3.5 KiB
PHP
88 lines
3.5 KiB
PHP
<?
|
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
|
|
include_once(G4_PATH.'/head.sub.php');
|
|
include_once(G4_LIB_PATH.'/latest.lib.php');
|
|
include_once(G4_LIB_PATH.'/outlogin.lib.php');
|
|
include_once(G4_LIB_PATH.'/poll.lib.php');
|
|
include_once(G4_LIB_PATH.'/visit.lib.php');
|
|
include_once(G4_LIB_PATH.'/connect.lib.php');
|
|
include_once(G4_LIB_PATH.'/popular.lib.php');
|
|
|
|
//print_r2(get_defined_constants());
|
|
?>
|
|
|
|
<header id="hd">
|
|
<div id="to_content"><a href="#container">본문 바로가기</a></div>
|
|
|
|
<h1><?=$config['cf_title']?></h1>
|
|
|
|
<div id="hd_wrapper">
|
|
<ul id="snb">
|
|
<? if ($is_member) { ?>
|
|
<li><a href="<?=G4_BBS_URL?>/logout.php">로그아웃</a></li>
|
|
<? if ($is_admin) { ?><li><a href="<?=G4_ADMIN_URL?>">관리자</a></li><? } ?>
|
|
<li><a href="<?=G4_BBS_URL?>/member_confirm.php?url=<?=G4_BBS_URL?>/register_form.php">정보수정</a></li>
|
|
<? } else { ?>
|
|
<li><a href="<?=G4_BBS_URL?>/login.php">로그인</a></li>
|
|
<li><a href="<?=G4_BBS_URL?>/register.php">회원가입</a></li>
|
|
<? } ?>
|
|
<li><a href="<?=G4_BBS_URL?>/current_connect.php">현재접속자 <?=connect(); // 현재 접속자수 ?></a></li>
|
|
<li><a href="<?=G4_BBS_URL?>/new.php">최근게시물</a></li>
|
|
</ul>
|
|
|
|
<fieldset id="schall">
|
|
<legend>사이트 내 전체검색</legend>
|
|
<form name="fsearchbox" method="get" action="<?=G4_BBS_URL?>/search.php" onsubmit="return fsearchbox_submit(this);">
|
|
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
|
<input type="hidden" name="sop" value="and">
|
|
<input type="text" id="schall_stx" name="stx" title="검색어" maxlength="20"><input type="image" id="schall_submit" src="<?=G4_IMG_URL?>/btn_search.jpg" alt="검색">
|
|
</form>
|
|
|
|
<script>
|
|
function fsearchbox_submit(f)
|
|
{
|
|
if (f.stx.value.length < 2) {
|
|
alert("검색어는 두글자 이상 입력하십시오.");
|
|
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("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
|
|
f.stx.select();
|
|
f.stx.focus();
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
</script>
|
|
</fieldset>
|
|
|
|
<div id="logo"><a href="<?=G4_URL?>"><img src="<?=G4_IMG_URL?>/logo.jpg" alt="처음으로" width="57" height="38"></a></div>
|
|
<?if (defined('_INDEX_')) {?>
|
|
<div id="idx_catch"><img src="<?=G4_URL?>/img/idx_catch.jpg" alt="Sharing All Possibilities" width="471" height="61"></div>
|
|
<?}?>
|
|
|
|
</div>
|
|
</header>
|
|
|
|
<hr>
|
|
|
|
<div id="wrapper">
|
|
<div id="lnb">
|
|
<?=outlogin('neo'); // 외부 로그인 ?>
|
|
<?=poll('neo'); // 설문조사 ?>
|
|
</div>
|
|
<div id="container">
|
|
<? if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) {?><h1 id="wrapper_title"><?=$g4['title']?></h1><?}?>
|