Logs all login and logout actions with time, IP and username
Compatible with DokuWiki
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 install the plugin using the Plugin Manager using the download link given above. Refer to Plugins on how to install plugins manually.
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?