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.
I found these 2 similar request:
1- by phppp at 2004 : https://sourceforge.net/tracker/?func=detail&aid=1020367&group_id=41586&atid=430843
2- by banned at 2005: https://sourceforge.net/tracker/?func=detail&aid=1112604&group_id=41586&atid=430843
still is not implemented after 8 years!!!!!
update on 2012/07/18:
more information in xoops.org forums:
http://xoops.org/modules/newbb/viewtopic.php?post_id=347871#forumpost347871