Commit 01e0759f authored by Dominik's avatar Dominik
Browse files
parents f8fda452 97321a45
ALTER TABLE `mail_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';
ALTER TABLE `web_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';
......@@ -32,3 +32,5 @@ NS|{DOMAIN}.|{NS2}.|0|3600
MX|{DOMAIN}.|mail.{DOMAIN}.|10|3600
TXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600' WHERE `dns_template`.`template_id` = 1;
ALTER TABLE `mail_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';
ALTER TABLE `web_backup` CHANGE `filesize` `filesize` VARCHAR(20) NOT NULL DEFAULT '';
......@@ -39,6 +39,9 @@ class plugin_backuplist_mail extends plugin_base {
function onShow() {
global $app;
$app->uses('functions');
$listTpl = new tpl;
$listTpl->newTemplate('templates/mail_user_backup_list.htm');
......@@ -82,7 +85,7 @@ class plugin_backuplist_mail extends plugin_base {
"VALUES (".
(int)$this->form->dataRecord['server_id'] . ", " .
time() . ", " .
"'backup_restore', " .
"'backup_restore_mail', " .
"'".$backup_id."', " .
"'pending', " .
"''" .
......@@ -105,6 +108,7 @@ class plugin_backuplist_mail extends plugin_base {
$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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment