|
|
|
20년 전
|
조회 1,214
|
|
|
|
20년 전
|
조회 1,151
|
|
|
|
20년 전
|
조회 1,185
|
|
|
|
20년 전
|
조회 1,170
|
|
|
|
20년 전
|
조회 1,160
|
|
|
|
20년 전
|
조회 1,299
|
|
|
|
20년 전
|
조회 1,405
|
|
|
|
20년 전
|
조회 1,112
|
|
|
|
20년 전
|
조회 1,291
|
|
|
|
20년 전
|
조회 1,192
|
|
|
|
20년 전
|
조회 1,208
|
|
|
|
20년 전
|
조회 1,137
|
|
|
|
20년 전
|
조회 1,099
|
|
|
|
20년 전
|
조회 1,847
|
|
|
|
20년 전
|
조회 1,098
|
|
|
|
20년 전
|
조회 1,448
|
|
|
|
20년 전
|
조회 1,226
|
|
|
|
20년 전
|
조회 1,144
|
|
|
|
20년 전
|
조회 1,302
|
|
|
|
20년 전
|
조회 1,256
|
|
|
|
20년 전
|
조회 1,146
|
|
|
|
20년 전
|
조회 1,542
|
|
|
|
20년 전
|
조회 1,167
|
|
|
|
20년 전
|
조회 1,127
|
|
|
|
20년 전
|
조회 1,162
|
|
|
|
20년 전
|
조회 2,655
|
|
|
|
20년 전
|
조회 1,233
|
|
|
|
20년 전
|
조회 1,160
|
|
|
|
20년 전
|
조회 1,261
|
|
|
|
20년 전
|
조회 1,281
|
댓글 6개
성공했습니다..
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=1070&sca=&sfl=mb_id&stx=quetal07&page=
에고.. 답사기하고 요거땜시 다시 폐인모드입니다....
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define("_GNUBOARD_", TRUE);
include_once("./_common.php");
$g4[title] ="최고의 필리핀 하숙 - 루나하숙에서 누가누가 머할까요? 보는중......";
include_once("$g4[path]/head.php");
$cfg[table_log] = "g4_log"; // 로그인 테이블 (접속자수)
$cfg[table_member] ="g4_member";
/*
// 접근 권한 검사
if (!$member[mb_id]) {
$msg = "비회원은 이 게시판에 접근할 권한이 없습니다.\\n\\n회원이시라면 로그인 후 이용해 보십시오.";
if ($cwin)
alert_close($msg);
else
alert($msg, "./login.php?wr_id=$wr_id{$qstr}&url=".urlencode("./board.php?bo_table=$bo_table&wr_id=$wr_id"));
}
*/
$ipsort="$g4[path]/log_log2.php&ssort=a.lo_ip2&sorder=&page=$page";
$timesort="$g4[path]/log_log2.php&ssort=a.lo_datetime2&sorder=desc&page=$page";
$timesort2="$g4[path]/log_log2.php&ssort=a.lo_datetime2&sorder=asc&page=$page";
?>
<TABLE width=100% cellpadding=4 >
<form name=loglist method=get action="./" autocomplete=auf>
<tr>
<td style='color:#575757;font-weight:bold' width=55%><?if ($member[mb_level] >= $cfg[level_max]) {?>
<a href='<?=$g4[path]?>/who_is_it.php' style='color:RED;font-weight:bold'>비우기</a> | <?}?>
</td>
<td>
</td>
</tr>
</form>
<tr><td colspan=2>
<?
//옵션: 관리자 로그포함이면 1 아님 0///
$cfg[option]=1;
if($ip ){
$opt=" where a.lo_ip2 = '$ip' ";
$sql = " select a.mb_id2, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open,a.lo_ip2,a.lo_location2, a.lo_referer2,a.lo_datetime2,a.lo_loc
from $cfg[table_log] a left join $cfg[table_member] b on (a.mb_id2 = b.mb_id)
$opt";
$result = sql_query($sql);
while($row = mysql_fetch_array($result)) {
$total_count++;
}
if (!$rows) {
$rows=20;// 몇개씩볼건가...?
}
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
if(mysql_num_rows($result) != 0) {
//include "bbs/gblayer.php";
$sql2 = " select a.mb_id2, b.mb_name, b.mb_email, b.mb_homepage,
b.mb_open,a.lo_ip2,a.lo_location2, a.lo_referer2,a.lo_datetime2,a.lo_loc
from $cfg[table_log] a left join $cfg[table_member] b on (a.mb_id2 = b.mb_id)
$opt
limit $from_record, $rows ";
$result2 = sql_query($sql2);
$p=0;
for ($i=0; $row2=mysql_fetch_array($result2); $i++) {
$p++;
if ($row2[mb_id2]) {
if ($is_admin) {
$mb_name = $row2[mb_name]; }
else { // 관리자가 아니라면
$mb_name = $row2[mb_id2]; }
} else { if ($is_admin) {
$mb_name = $row2[lo_ip2];
} else { // 관리자가 아니라면 IP 주소를 감춘후 보여줍니다.
$mb_name = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "♡.♡.♡.♡", $row2[lo_ip2]);
}
}
?>
<style>
.ht4{
border-top: 1px solid #ffffff;
border-bottom: 1px solid #b1b1b1;
background-color:#f9f9f7;
}
</style>
<TABLE width=100% cellpadding=4 style='border:1px solid #cccccc;padding:5px' class='ht4'>
<tr>
<td width=20><?=$p?>.</td><td width=140> <?=$mb_name?></td><td width='' style='color:#575757;'><a href='<?=$row2[lo_loc]?>'><?=$row2[lo_location2]?></a></td>
</tr>
<tr>
<td width=20> </td><td width=140>(<?=$row2[lo_datetime2]?>)</td><td width='' style='color:#575757;'><?=urlautolink($row2[lo_referer2]);?></td>
</tr>
</table>
<TABLE width=100% >
<tr>
<td height=3></td>
</tr>
</table>
<? } }?>
</td></tr>
</table>
<?
$pagelist = get_paging(10,$page, $total_page, "./$cfg[index]?doc=log_log2.php&rows=$rows&ip=$ip&fr_date=$fr_date&to_date=$to_date&page=");
if ($pagelist) {
echo "<table width=100% cellpadding=3 cellspacing=1><tr><td align=center style= 'font-size:13px;color:#0054ff'>$pagelist</td></tr></table>";
}
}
else{
if($cfg[option]){
$opt="";
}else if(!$cfg[option]){
$opt=" where IFNULL(b.mb_level,0) < '$cfg[level_max]' ";
}
if (!$ssort) {
$ssort = "a.lo_datetime2";
$sorder = "desc";
}
$sql_order = " order by $ssort $sorder ";
$sql = " select a.mb_id2, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open,a.lo_ip2,a.lo_location2, a.lo_referer2,a.lo_datetime2,a.lo_loc
from $cfg[table_log] a left join $cfg[table_member] b on (a.mb_id2 = b.mb_id)
$opt
$sql_order ";
$result = sql_query($sql);
while($row = mysql_fetch_array($result)) {
$total_count++;
}
if (!$rows) {
$rows=20;// 몇개씩볼건가...?
}
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
if(mysql_num_rows($result) != 0) {
$sql2 = " select a.mb_id2, b.mb_name, b.mb_email, b.mb_homepage,
b.mb_open,a.lo_ip2,a.lo_location2, a.lo_referer2,a.lo_datetime2,a.lo_loc
from $cfg[table_log] a left join $cfg[table_member] b on (a.mb_id2 = b.mb_id)
$opt
$sql_order
limit $from_record, $rows ";
$result2 = sql_query($sql2);
$p=0;
for ($i=0; $row2=mysql_fetch_array($result2); $i++) {
$p++;
if ($row2[mb_id2]) {
if ($member[mb_level] >= $cfg[level_max]) {
$mb_name = $row2[mb_name]; }
else { // 관리자가 아니라면 IP 주소를 감춘후 보여줍니다.
$mb_name = preg_replace("/\"/", """, $row2[mb_id2]);
}
} else { if ($member[mb_level] >= $cfg[level_max]) {
$mb_name = $row2[lo_ip2];
} else { // 관리자가 아니라면 IP 주소를 감춘후 보여줍니다.
$mb_name = "손님(".preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "♡.♡.♡.\\4", $row2[lo_ip2]) .")";
}
}
?>
<style>
.ht4{
border-top: 1px solid #ffffff;
border-bottom: 1px solid #b1b1b1;
background-color:#f9f9f7;
}
</style>
<TABLE width=100% cellpadding=4 style='border:1px solid #cccccc;padding:5px' class='ht4'>
<tr>
<td width=20><?=$p?>.</td><td width=140> <?if ($member[mb_level] >= $cfg[level_max]) {?><a href='<?="./$cfg[index]?doc=log_log2.php&rows=$rows&ip=$row2[lo_ip2]"?>' target='_new'><?}?><?=$mb_name?></td><td width='' style='color:#575757;'><a href='<?=$row2[lo_loc]?>' target='_new'><?=$row2[lo_location2]?></a></td>
</tr>
<tr>
<td width=20> </td><td width=140>(<?=$row2[lo_datetime2]?>)</td><td width='' style='color:#575757;'><a href='<?=$row2[lo_loc]?>' target='_new'><?=$row2[lo_referer2]?></td>
</tr>
</table>
<TABLE width=100% >
<tr>
<td height=3></td>
</tr>
</table>
<? } }?>
</td></tr>
</table>
<?
$pagelist = get_paging(10,$page, $total_page, "./$cfg[index]?doc=log_log2.php&rows=$rows&ssort=$ssort&sorder=$sorder&page=");
if ($pagelist) {
echo "<table width=100% cellpadding=3 cellspacing=1><tr><td align=center style= 'font-size:13px;color:#0054ff'>$pagelist</td></tr></table>";
}
}
?>
<?
include_once("$g4[path]/tail.php");
?>
좀전에 g4 최신 버젼을 엎었습니다.
부분적으로 패치했더니,
질/답란에 등록된 내용들을 접해 볼 수가 없어서요.
게시판 접근 포인트 관련 메시지들을 볼 수가 있어야
어떻게 삽질이라도 해 보지요^^;