tracking a users logons

Started by LizN, February 09, 2009, 10:26:51 PM

Previous topic - Next topic

LizN

Can someone make a mod that will track a users logon history? Currently, I can see last logon, but would like to view the members history.


HR

Would take a rather take alot of database data or....

<?php
if (!file_exists("users/{$_SERVER['REMOTE_ADDR']}.txt")) {
 
$userfile = fopen("users/{$_SERVER['REMOTE_ADDR']}.txt","w");
 
fwrite($userfile,"1");
 
fclose($userfile);
}
else {
 
$UserVar = file_get_contents("users/{$_SERVER['REMOTE_ADDR']}.txt");
 
$UserVar++;
 
file_put_contents("users/{$_SERVER['REMOTE_ADDR']}.txt",$UserVar);
}
?>

off the top of my head

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

Advertisement: