Generate a list of users and their IP addresses?

Author Message

Noicokuna Niemoge

Tuesday 17 March 2009 2:12:15 am

Hello;

I'd like to generate a list of users and their IP addresses, both anonymous and logged in.

How can I do this with PHP (not template predefined settings), in an extension? I want to get the user list with their IPs and make it be updated frequently, not using cron... saving it to xml or json formatted file. Updating it frequently without a cron can be a problem...

It is the only thing that gives me problems. I'm working on user Google Map, showing their location worldwide. With a little help from you, we can do this together. :)

Shiki soku ze ku...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 04:58:41
Script start
Timing: Jan 20 2025 04:58:41
Module start 'layout'
Timing: Jan 20 2025 04:58:41
Module start 'content'
Timing: Jan 20 2025 04:58:43
Module end 'content'
Timing: Jan 20 2025 04:58:43
Script end

Main resources:

Total runtime1.3746 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.2891152.6406
Module start 'layout' 0.00580.0048 741.929739.4766
Module start 'content' 0.01061.3623 781.4063427.2500
Module end 'content' 1.37290.0017 1,208.65638.1250
Script end 1.3746  1,216.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2437160.0002
Check MTime0.00140.1003160.0001
Mysql Total
Database connection0.00080.055510.0008
Mysqli_queries1.328896.6665460.0289
Looping result0.00050.0381440.0000
Template Total1.323396.320.6616
Template load0.00260.187820.0013
Template processing1.320796.075520.6603
Template load and register function0.00020.013310.0002
states
state_id_array0.00300.221210.0030
state_identifier_array0.00120.086020.0006
Override
Cache load0.00190.140170.0003
Sytem overhead
Fetch class attribute can translate value0.00080.061110.0008
Fetch class attribute name0.00070.054510.0007
XML
Image XML parsing0.00010.008110.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00430.3163100.0004
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs