anonimize shown ip address in demo mode

This commit is contained in:
SJ
2013-07-25 13:27:56 +02:00
parent 3d8d08f2bd
commit 3f4962990d
4 changed files with 15 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class ModelAuditAudit extends Model {
'action' => $a['action'],
'email' => $a['email'],
'date' => date(AUDIT_DATE_FORMAT, $a['ts']),
'ipaddr' => $a['ipaddr'],
'ipaddr' => DEMO_MODE == 1 ? anonimize_ip_addr($a['ipaddr']) : $a['ipaddr'],
'description' => $a['description'],
'shortdescription' => make_short_string($a['description'], MAX_CGI_FROM_SUBJ_LEN)
);