현재 접속자수를 늘리는 방법 점알려주세요

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
현재 접속자수를 늘리는 방법 점알려주세요

QA

현재 접속자수를 늘리는 방법 점알려주세요

본문

제가 질문게시판을 검색을 해보니

 

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

이런 것도 있네요

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT