|
|
|
22년 전
|
조회 836
|
|
|
|
22년 전
|
조회 858
|
|
|
|
22년 전
|
조회 927
|
|
|
|
22년 전
|
조회 857
|
|
|
|
22년 전
|
조회 1,106
|
|
|
|
22년 전
|
조회 814
|
|
|
|
22년 전
|
조회 868
|
|
|
|
22년 전
|
조회 882
|
|
|
|
22년 전
|
조회 1,032
|
|
|
|
22년 전
|
조회 961
|
|
|
|
22년 전
|
조회 968
|
|
|
|
22년 전
|
조회 918
|
|
|
|
22년 전
|
조회 882
|
|
|
|
22년 전
|
조회 756
|
|
|
|
22년 전
|
조회 1,293
|
|
|
관리자
|
22년 전
|
조회 925
|
|
|
|
22년 전
|
조회 895
|
|
|
|
22년 전
|
조회 1,583
|
|
|
|
22년 전
|
조회 961
|
|
|
|
22년 전
|
조회 833
|
댓글 7개
암튼 되긴 하네요..
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
echo tail();
?>
이렇게 했습니다..
top.php를
아래와같이 하시고요.
<table width=800 cellpadding=0 cellspacing=0 align=center>
<tr>
<td colspan=3>
<a href=../>Home</a>
</td>
</tr>
<tr>
<td width=150 valign=top>
<!-- 외부 로그인 시작 -->
<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>
<tr>
<td><? require "$bbsdir/outlogin.php"; ?></td>
</tr>
</table>
<!-- 외부 로그인 끝 -->
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<!-- 게시판 목록 시작 -->
<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>
<tr>
<td>
<table width=100% height=100% cellpadding=2 cellspacing=0>
<tr>
<td bgcolor=FFFFFF>
<?
$sqlgr = " select * from $cfg[table_group] order by gr_id ";
$resgr = sql_query_error($sqlgr);
while ($rowgr = mysql_fetch_array($resgr)) {
echo " <b>$rowgr[gr_subject]</b><br>";
$sqlbo = " select * from $cfg[table_board] where gr_id = '$rowgr[gr_id]' order by bo_table ";
$resbo = sql_query_error($sqlbo);
while ($rowbo = mysql_fetch_array($resbo)) {
echo " - <a href='../bbs/gnuboard.php?bo_table=$rowbo[bo_table]'>$rowbo[bo_subject]</a><br>";
}
mysql_free_result($resbo);
}
mysql_free_result($resgr);
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 게시판 목록 끝 -->
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<!-- 현재접속자수 표시 시작 -->
<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>
<tr>
<td>
<table width=100% height=100% cellpadding=2 cellspacing=0>
<tr>
<td bgcolor=FFFFFF>
<table width=100% cellpadding=2 cellspacing=0>
<tr><td width=50% align=right>손님 </td><td width=50%><? echo get_login_count('guest') ?>명</td></tr>
<tr><td width=50% align=right>회원 </td><td width=50%><? echo get_login_count('member') ?>명</td></tr>
<tr><td width=50% align=right>전체 </td><td width=50%><? echo get_login_count('total') ?>명</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 현재접속자수 표시 끝 -->
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<!-- 회원수 표시 시작 -->
<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>
<tr>
<td>
<table width=100% height=100% cellpadding=2 cellspacing=0>
<tr>
<td bgcolor=FFFFFF>
<?
$sql = " select count(*) from $cfg[table_member] ";
$row = sql_fetch_array($sql);
$total_member = $row[0];
$sql = " select count(*) from $cfg[table_member]
where TO_DAYS(CURDATE()) - TO_DAYS(mb_datetime) = 0 ";
$row = sql_fetch_array($sql);
$today_member = $row[0];
?>
<table width=100% cellpadding=2 cellspacing=0>
<tr><td width=60% align=right>전체회원수 </td><td width=40%><?=$total_member?>명</td></tr>
<tr><td width=60% align=right>오늘가입 </td><td width=40%><?=$today_member?>명</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 회원수 표시 끝 -->
<!-- 공백 -->
<table width=100% height=5><tr><td></td></tr></table>
<!-- 접속 회원 표시 시작 -->
<table width=100% border=0 cellpadding=1 cellspacing=0 class=tablebg>
<tr>
<td>
<table width=100% bgcolor=#ffffff cellpadding=0 cellspacing=0>
<tr>
<td align=center bgcolor=FFFFFF>
<table width=100%>
<?
$sql = " select a.mb_id, b.mb_name, b.mb_icon, a.lo_ip
from $cfg[table_login] a left join $cfg[table_member] b on (a.mb_id = b.mb_id)
where a.mb_id <> ''
order by a.lo_ip ";
$result = sql_query_error($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$icon = "";
if ($row[mb_icon]) {
$icon = "<img src='$cfg[dir_member]/$row[mb_icon]' align=absmiddle> ";
}
if ($row[mb_id]) {
$mb_name = "<b>$icon$row[mb_name]</b>";
$memo_link = "<a href='javascript:;' onclick=\"window.open('../bbs/mbmemoform.php?me_recv_mb_id=$row[mb_id]', 'mbmemo', 'left=50,top=50,width=500,height=400,scrollbars=1');\"><span title='쪽지보내기'>@</span></a>";
} else {
$mb_name = $row[lo_ip];
if (is_admin($member[mb_id]) != 'default') {
$mb_name = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.\\2.*.\\4", $mb_name);
}
$memo_link = "";
}
echo "
<tr>
<td width=70% align=right style='color:777777'>$mb_name </td>
<td width=30% align=left>$memo_link</td>
</tr>";
}
mysql_free_result($result);
if ($i==0)
echo "<tr><td colspan=2 align=center><font color=222222>없음</font></td></tr>";
?>
</table>
</td>
</table>
</td>
</tr>
</table>
<!-- 접속 회원 표시 끝 -->
</td>
<td width=10></td>
<td width=640 valign=top>
제껀202 번까지 있었거든요.....에궁.. 다시깔아야 하나보네요..제꺼를 다시해보고 말씀드리죠....
index.php의
1번에서 179번 줄까지 헤드로 잡고(top.php) 195에서 202줄까지 풋더로 넣구(foot.php) 만들어서 gnu폴더에 넣었습니다
그리고 관리자 로그인한후 게시판관리 -->수정-->상단파일경로에 ../top.php 하단파일 경로에 ../foot.php 하니까 잘 나오던데요.........그리고 헤더에 링크걸어 사용하시면 됩니다. 맞나 모르겠습니다.암튼 되긴 하는데요...