#383 Xoops History/Log system

XOOPS_2.6
open
MusS
Core (214)
5
2014-08-19
2012-06-27
irmtfan
No

Xoops does not have any log/history system but it is a very useful function especially for webmasters.
For example you want to log all admins actions in the website.
i used this log in my own website:
[code]
<?php
if ( $xoopsUserIsAdmin ) {
$ip_to_log = $_SERVER['REMOTE_ADDR'];
$url_to_log = $_SERVER['REQUEST_URI'];
$uid_to_log = $xoopsUser->getVar('uid');
$uname_to_log = $xoopsUser->getVar('uname');
$content_to_log = date('Ymd-H:i:s')." ".$ip_to_log." ".$uid_to_log." ".$uname_to_log." ".$url_to_log."\n";

$log_file_name = XOOPS_TRUST_PATH.'/logusernav.log';

if (!$log_file_handle = fopen($log_file_name, 'a')) {
echo "";
}
else {
if (fwrite($log_file_handle, $content_to_log) === FALSE) {
echo "";
}
@fclose($log_file_handle);
}
}
?>
[/code]
So i can see all of actions.
i think it can be implement in the core.
basic features:
- login history for all users: now it is just the last login but we need to have a history of logins.
- log system : the degree of logs can be selectable. for example for webmaster groups it can log all actions (click on every links, all database queries ,IPs , ...) but for normal users just the modules review.

I think it needs a plugin in system module.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks