현재 접속자 가 나타나지 않습니다.

· 17년 전 · 1029 · 1
소스 찾아보니 이부분인거 같은데 왜 안나오는 지 모르겠어요

관리자로 로그인하고 카페 가입을 했는데도 현재 접속자 없음으로 나옵니다.



function cb_current_connect($cb_name, $skin_dir="")
{
global $config, $g4, $member, $is_admin, $nc, $cb;

if ($cb_name == "")
alert("cb_name이 전달되지 않았습니다.");

// 회원, 방문객 카운트
$sql = " select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt
from $g4[login_table]
where lo_location like \"".$cb_name." - 클럽%\" ";
// where mb_id <> '$config[cf_admin]' and lo_location like '$cb_name - 클럽%' ";
$row2 = sql_fetch($sql);

$list = array();
//회원 이름 정보출력
$sql2 = " select a.mb_id, mb_sex, b.mb_level, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, a.lo_ip, a.lo_location, a.lo_url
from $g4[login_table] a left join $g4[member_table] b on (a.mb_id = b.mb_id)
where lo_location like \"$cb_name - 클럽%\" order by a.lo_datetime desc";
// where a.mb_id <> '$config[cf_admin]' and lo_location like '$cb_name - 클럽%' order by a.lo_datetime desc";
$result = sql_query($sql2);

for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i] = $row;

if ($row[mb_id])
$list[$i][name] = "<b>"."$row[mb_nick]"."</b>"." "."$level_icon"." "."$sex_icon";
else
$list[$i][name] = "손님&nbsp;"."(".preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]).")";

$list[$i][num] = sprintf("%03d",$i+1);
}

echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";

if ($skin_dir)
$connect_skin_path = "$nc[cb_path]/skin/connect/$skin_dir";
else
$connect_skin_path = "$nc[cb_path]/skin/connect/$cb[cb_connect_skin]";

ob_start();
include ("$connect_skin_path/current_connect.skin.php");
$content = ob_get_contents();
ob_end_clean();

return $content;
}
|

댓글 1개

mb_id <> '$config[cf_admin]'
모든 프로그램에서 관리자는 현재방문자 통계에서 뺍니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고