현재접속자에서... 정보
현재접속자에서...본문
현재접속자 보기에서
관리자 아이디는 출력이 안되는데요.
소스는
<?
$sub_menu = "200810";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$token = get_token();
$g4[title] = adm_exp_lang('현재 접속자');
include_once("./admin.head.php");
$list = array();
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, 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 a.mb_id <> '$config[cf_admin]'
order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i] = $row;
if ($row[mb_id])
{
//$list[$i][name] = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
$list[$i][name] = $list[$i][name]." ( ".$row[lo_ip]." )";
}
else
{
if ($is_admin)
$list[$i][name] = $row[lo_ip];
else
$list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]);
}
$list[$i][num] = sprintf("%03d",$i+1);
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&page=");
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
$connect_skin_path = "$g4[path]/skin/connect/basic";
include_once("$connect_skin_path/current_connect.skin.php");
?>
관리자 아이디는 출력되지 않습니다.
<?
include_once("./admin.tail.php");
?>
입니다.
관리자 아이디도 출력되게 하려면 어떡해 해야하나요?
관리자 아이디는 출력이 안되는데요.
소스는
<?
$sub_menu = "200810";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$token = get_token();
$g4[title] = adm_exp_lang('현재 접속자');
include_once("./admin.head.php");
$list = array();
$sql = " select a.mb_id, b.mb_nick, b.mb_name, b.mb_email, b.mb_homepage, b.mb_open, b.mb_point, 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 a.mb_id <> '$config[cf_admin]'
order by a.lo_datetime desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i] = $row;
if ($row[mb_id])
{
//$list[$i][name] = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$list[$i][name] = get_sideview($row[mb_id], cut_str($row[mb_nick], $config[cf_cut_name]), $row[mb_email], $row[mb_homepage]);
$list[$i][name] = $list[$i][name]." ( ".$row[lo_ip]." )";
}
else
{
if ($is_admin)
$list[$i][name] = $row[lo_ip];
else
$list[$i][name] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row[lo_ip]);
}
$list[$i][num] = sprintf("%03d",$i+1);
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&page=");
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
$connect_skin_path = "$g4[path]/skin/connect/basic";
include_once("$connect_skin_path/current_connect.skin.php");
?>
관리자 아이디는 출력되지 않습니다.
<?
include_once("./admin.tail.php");
?>
입니다.
관리자 아이디도 출력되게 하려면 어떡해 해야하나요?
댓글 전체
where a.mb_id <> '$config[cf_admin]'
이 구문 빼시면되요
이 구문 빼시면되요