首页| 版块| 我的| 发帖| 消息
主题:如何才能在在线统计中显示访客的具体IP地址?
zhangjingyu 
sort.php
} elseif ($action == 'online') {部分的后面,
for ($i = $start; $i < $end; $i++) {
            if (!$online_A[$i]) continue;
            $thread = explode("\t",$online_A[$i]);
            if (count($thread) < 10) {
                $thread['username'] = 'Guest';
                $thread['uid']        = 0;
                $thread['ip']        = S::inArray($windid,$manager) ? $thread[0] : "-";
                $thread['group']    = 'Guest';
                $thread['action']    = $thread[4];
                $thread['lasttime'] = $thread[5];
                $thread[2] = str_replace('','',$thread[2]);
                $forum[$thread[2]]['name'] && $thread['forum'] = "".$forum[$thread[2]]['name']."";
                $thread['atc'] = $thread[3];
            } else {
                $thread['username']    = $thread[0];
                $thread['uid']        = $thread[8];
                $thread['ip']        = S::inArray($windid,$manager) ? $thread[2] : "-";
                $thread['group']    = $ltitle[$thread[5]];
                $thread['action']    = $thread[6];
                $thread['lasttime']    = $thread[7];
                $forum[$thread[3]]['name'] && $thread['forum'] = "".$forum[$thread[3]]['name']."";
                $thread['atc'] = $thread[4];
            }
     
zhangjingyu回帖于2019-01-04 21:41[查看电脑版]
下一页 (1/3)
下一楼»:哈哈,新年快乐!
«上一楼:欢迎光临,希望下次再来。

查看全部回帖(16)
«返回主帖