| | |
| | | |
| | | function onShow() { |
| | | global $app; |
| | | |
| | | $app->uses('functions'); |
| | | |
| | | $listTpl = new tpl; |
| | | $listTpl->newTemplate('templates/mail_user_backup_list.htm'); |
| | | |
| | |
| | | "VALUES (". |
| | | (int)$this->form->dataRecord['server_id'] . ", " . |
| | | time() . ", " . |
| | | "'backup_restore', " . |
| | | "'backup_restore_mail', " . |
| | | "'".$backup_id."', " . |
| | | "'pending', " . |
| | | "''" . |
| | |
| | | $rec["bgcolor"] = $bgcolor; |
| | | $rec['date'] = date($app->lng('conf_format_datetime'),$rec['tstamp']); |
| | | $rec['backup_type'] = $wb[('backup_type_'.$rec['backup_type'])]; |
| | | $rec['filesize'] = $app->functions->formatBytes($rec['filesize']); |
| | | $records_new[] = $rec; |
| | | } |
| | | } |