How to make log of admin tool

Initiate Mage
Joined
Feb 12, 2009
Messages
1
Reaction score
0
Hi to all.

Can any of you explain to me how to make a log when some one with the admin tool give fleet , resorces etc.
 
// AdminLOG
// $fp = @fopen('logs/adminlog_'.date('d.m.Y').'.txt','a'); // for Linux server
$fp = @fopen($xnova_root_path .'logs/adminlog.txt','a'); // for Windows server
fwrite($fp,date("d.m.Y H:i:s",time())." - ".$user['username']." - ".$user['user_lastip']." - ".__FILE__." - USER-ID: ".$edit_id." Razlog:".$_POST['razlog']."\n");
fclose($fp);
// AdminLOG END

AdminMessage ('<meta http-equiv="refresh" content="1; url=userlist.php">Podaci uspesno promenjeni', 'Podesavanje Igraca');
}
 
Back