관리자화면의 현재접속자 보기 정보
관리자화면의 현재접속자 보기
본문
관리자화면에 sir처럼 현재접속자 리스트를 볼수는 없을까요?
관리자화면에 있는 접속현황은 미비해서 현재접속자를 알수가 없더라구요.
질문을 하고도 이게 맞는 질문인가 생각하게 되네요.
제 질문 다들 이해하시죠? ^^;
댓글 전체
adm/admin.menu200.php을 덮으세요..
<?
$menu["menu200"] = array (
array("200000", "회원관리", ""),
array("200100", "회원관리", "$g4[admin_path]/member_list.php"),
array("200200", "포인트관리", "$g4[admin_path]/point_list.php"),
array("200300", "회원메일발송", "$g4[admin_path]/mail_list.php"),
array("-"),
array("200800", "접속자현황", "$g4[admin_path]/visit_list.php"),
array("200850", "현재접속자", "$g4[admin_path]/current_connect.php"),
array("-"),
array("200900", "투표관리", "$g4[admin_path]/poll_list.php")
);
?>
adm/current_connect.php 로 올리세요.
<?
$sub_menu = "200850";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "현재접속자";
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]);
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/$config[cf_connect_skin]";
include_once("$connect_skin_path/current_connect.skin.php");
include_once("./admin.tail.php");
?>
<?
$menu["menu200"] = array (
array("200000", "회원관리", ""),
array("200100", "회원관리", "$g4[admin_path]/member_list.php"),
array("200200", "포인트관리", "$g4[admin_path]/point_list.php"),
array("200300", "회원메일발송", "$g4[admin_path]/mail_list.php"),
array("-"),
array("200800", "접속자현황", "$g4[admin_path]/visit_list.php"),
array("200850", "현재접속자", "$g4[admin_path]/current_connect.php"),
array("-"),
array("200900", "투표관리", "$g4[admin_path]/poll_list.php")
);
?>
adm/current_connect.php 로 올리세요.
<?
$sub_menu = "200850";
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");
$g4[title] = "현재접속자";
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]);
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/$config[cf_connect_skin]";
include_once("$connect_skin_path/current_connect.skin.php");
include_once("./admin.tail.php");
?>
천상재회님 이런오류가 관리자화면에 발생하네요.
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 39
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home/sok/bbs/adm/admin.menu200.php:13) in /home/sok/bbs/head.sub.php on line 39
adm/current_connect.php 로 올리세요.
<?
$sub_menu = "200850";
에서
<? 넘 우측에 공백이 하나 들갔을 겁니다.....없애 주세요...
<?
$sub_menu = "200850";
에서
<? 넘 우측에 공백이 하나 들갔을 겁니다.....없애 주세요...
adm폴더에 current_connect.php 파일을 만들어서 업로드했습니다.
<? 공백도 없앳는데
그래도 마찬가지네요 ㅜㅜ
<? 공백도 없앳는데
그래도 마찬가지네요 ㅜㅜ
맨 끝에도 하나 없애 보세요...제 홈에 위소스 그대로 적용해도 에러 없었습니다..
으하하하 천상재회님 adm/admin.menu200.php 여기서 공백을 없애주니까 되네요.
아 엄청해맷네요..
감사합니다. 너무 좋아요 ㅎㅎㅎ
아 엄청해맷네요..
감사합니다. 너무 좋아요 ㅎㅎㅎ
테스트입니다~아