Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

view detection logic in plugin

Developers
2010-08-17
2012-10-11
  • kurt-hectic
    kurt-hectic
    2010-08-17

    Hi,

    I'm writing a plugin to display hits and views on a continental basis. I use
    the free country db to determine the country, which I then map to the
    continent.
    It is easy to use a global array to accumulate hits in SectionProcessHostname
    and SectionProcessIp. However, determining views is more difficult. I could
    re-invent the wheel and implement some view-detection logic, but I would
    prefer to use the existing logic in the main awstats script. However, I do not
    know if this code is accessible from the plugins and how it could be used.
    Can anybody steer me into the right direction?

    any hints would be very much appreciated
    regards
    Kurt