Login/Logoff logging plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

plugin Logs all login and logout actions with time, IP and username

Last updated on
2011-04-10
Provides
Admin, Action
Repository
Source

Tagged with authentication, logging

This Plugin will log all logins, logouts and failed login attempts to data/cache/loglog.log. The log can be viewed on the admin screen.

Download and Installation

Download and install the plugin using the Plugin Manager using the download link given above. Refer to Plugins on how to install plugins manually.

Changes

Discussion

Using without Login

I put this code into my template (unused footer.html):

<?
        if (strpos($_SERVER[HTTP_REFERER],"/PATH/")==false ) {
            $user = $_SERVER['REMOTE_USER'];
            if(!$user) $user = $_REQUEST['u'];

            $t   = time();
            $log = $t."\t".strftime($conf['dformat'],$t)."\t".$_SERVER['REMOTE_ADDR']."\t".$user."\t".$msg;
            io_saveFile($conf['cachedir'].'/loglog.log',"$log\n",true);
        }
?>

Change PATH into your wiki-path. So information about anybody, who is not following an internal link ist logged.

And what this would do?
plugin/loglog.txt · Last modified: 2012/01/31 12:24 by Andreas
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate