mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
anonimize shown ip address in demo mode
This commit is contained in:
@ -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)
|
||||
);
|
||||
|
Reference in New Issue
Block a user