[Pmwiki-users] Setting time zones and tracking authorship

Pedro Miller Rabinovitch miller
Wed Sep 3 23:49:35 CDT 2003


On Thursday 04 September 2003 02:42, pmwiki at mdrain.mailshell.com wrote:
> ability to add the stored IP address to footers without resolving the hosts
> (e.g., "Page last modified ... by X").  Is there anyway now that we can
> define and use a variable for the IP address that's stored with each page?

I've changed my system to keep the last author's IP (and only the last one, 
big limitation) in the RecentChanges pages.

In .19 it's close to line 908:

From:
    $rcpage['text'] = "* $pgname . . . . . . ".strftime($TimeFmt,$Now)."\n".
      preg_replace("%\\* ".preg_quote($pgname)." .*?\\n%","",
        $rcpage['text']);

To:
    $rcpage['text'] = "* $pgname . . . . . . ".strftime($TimeFmt,$Now).
      " (".$HTTP_SERVER_VARS['REMOTE_ADDR'].")\n".
      preg_replace("%\\* ".preg_quote($pgname)." .*?\\n%","",
        $rcpage['text']);

Hope this helps,

	Pedro



More information about the pmwiki-users mailing list