File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 5252$ out ['id ' ] = $ id ;
5353$ out ['username ' ] = $ record ['user ' ];
5454
55+ if (!$ data = unserialize (stripslashes ($ record ['data ' ]))) {
56+ $ data = unserialize ($ record ['data ' ]);
57+ }
58+
5559$ out ['timestamp ' ] = date ($ app ->lng ('conf_format_datetime ' ), $ record ['tstamp ' ]);
5660$ out ['table ' ] = $ record ['dbtable ' ];
5761list ($ key , $ value ) = explode (': ' , $ record ['dbidx ' ]);
6266 } else {
6367 switch ($ out ['table ' ]) {
6468 case 'mail_forwarding ' :
65- $ file = 'mail/mail_forward_edit.php ' ;
69+ switch ($ data ['new ' ]['type ' ]) {
70+ case 'alias ' :
71+ $ file = 'mail/mail_alias_edit.php ' ;
72+ break ;
73+ case 'aliasdomain ' :
74+ $ file = 'mail/mail_aliasdomain_edit.php ' ;
75+ break ;
76+ case 'forward ' :
77+ $ file = 'mail/mail_forward_edit.php ' ;
78+ break ;
79+ case 'catchall ' :
80+ $ file = 'mail/mail_domain_catchall_edit.php ' ;
81+ break ;
82+ }
6683 break ;
6784 case 'mail_user ' :
6885 $ file = 'mail/mail_user_edit.php ' ;
107124
108125$ out ['session_id ' ] = $ record ['session_id ' ];
109126
110- if (!$ data = unserialize (stripslashes ($ record ['data ' ]))) {
111- $ data = unserialize ($ record ['data ' ]);
112- }
113-
114127switch ($ record ['action ' ]) {
115128 case 'i ' :
116129 $ inserts = array ();
You can’t perform that action at this time.
0 commit comments