mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 13:00:20 +02:00
anonimize shown ip address in demo mode
This commit is contained in:
1 parent
3d8d08f2bd
commit
3f4962990d
4 files changed
+15
-2
No files matched your search
@@ -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