1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-14 10:34:23 +02:00

login-related logging etc

This commit is contained in:
e107steved
2008-01-01 21:26:23 +00:00
parent 8f9f596b02
commit fd22dbfb81
5 changed files with 74 additions and 59 deletions

View File

@@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/admin_log_class.php,v $
| $Revision: 1.7 $
| $Date: 2007-12-29 22:07:42 $
| $Revision: 1.8 $
| $Date: 2008-01-01 21:26:16 $
| $Author: e107steved $
To do:
@@ -78,6 +78,7 @@ class e_admin_log {
define('USER_AUDIT_NEW_EML',17); // User changed email
define('USER_AUDIT_PW_RES',18); // Password reset
define('USER_AUDIT_NEW_SET',19); // User changed other settings
define('USER_AUDIT_ADD_ADMIN',20); // User added by admin
}
/**
@@ -232,7 +233,7 @@ Generic log entry point
// $id and $u_name are left blank except for admin edits and user login, where they specify the id and login name of the 'target' user
function user_audit($event_type, $event_data, $id = '', $u_name = '')
{
global $e107, $tp;
global $e107, $tp, $pref;
list($time_usec, $time_sec) = explode(" ", microtime()); // Log event time immediately to minimise uncertainty
// See whether we should log this