현재 접속자수를 늘리는 방법 점알려주세요
본문
제가 질문게시판을 검색을 해보니
current_connect.php <- 이파일을 수정해야 된다는데 어디를 수정을 해야 되나요?
아래는 current_connect.php 여기에 있는 소스를 올리겠습니다.
<?php
include_once('./_common.php');
if(!$is_member) {
alert('회원만 이용가능한 서비스 입니다.', G5_URL);
}
if(!$is_admin && !is_partner($member['mb_id'])) {
alert('접근권한이 없습니다.', G5_URL);
}
$g5['title'] = '현재접속자';
include_once('./_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 {$g5['login_table']} a left join {$g5['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);
$total_count = sql_num_rows($result);
for($i=0; $row=sql_fetch_array($result); $i++) {
$row['lo_url'] = get_text($row['lo_url']);
$list[$i] = $row;
if($row['mb_id']) {
//$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'] = cut_str($row['mb_nick'], $config['cf_cut_name']);
} else {
if($is_admin)
$list[$i]['name'] = $row['lo_ip'];
else
$list[$i]['name'] = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", G5_IP_DISPLAY, $row['lo_ip']);
}
$list[$i]['num'] = sprintf('%03d',$i+1);
}
include_once($connect_skin_path.'/current_connect.skin.php');
include_once('./_tail.php');
?>
답변 1
$list[$i]['num'] = sprintf('%03d',$i+1);
맨 아래줄 쯤에 여기를
$list[$i]['num'] = sprintf('%03d',$i+1+(원하는 숫자));
로 변경 하시면 되지 않을까요?
아니면
https://sir.kr/cmall/1480686310
이런 것도 있네요