Commit b2334106 authored by Florian Schaal's avatar Florian Schaal
Browse files

add size to backup-stats

parent 1a0665de
......@@ -18,6 +18,7 @@ class list_action extends listform_actions {
public function prepareDataRow($rec)
{
global $app;
$app->uses('functions');
$rec = parent::prepareDataRow($rec);
......@@ -28,6 +29,9 @@ class list_action extends listform_actions {
}
$recBackup = $app->db->queryOneRecord('SELECT COUNT(backup_id) AS backup_count FROM mail_backup WHERE mailuser_id = ?', $rec['mailuser_id']);
$rec['backup_copies_exists'] = $recBackup['backup_count'];
unset($recBackup);
$recBackup = $app->db->queryOneRecord('SELECT SUM(filesize) AS backup_size FROM mail_backup WHERE mailuser_id = ?', $rec['mailuser_id']);
$rec['backup_size'] = $app->functions->formatBytes($recBackup['backup_size']);
return $rec;
}
......
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Statistiken';
$wb["database_name_txt"] = '';
$wb['active_txt'] = 'Aktiv';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Anz. Backups';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Intervall / Anz.';
$wb['backup_size_txt'] = 'Backupgrösse';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb["database_name_txt"] = '';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
<?php
$wb["list_head_txt"] = 'Backup Stats';
$wb['active_txt'] = 'Active';
$wb['domain_txt'] = 'Email';
$wb['backup_count_txt'] = 'Backup count';
$wb['backup_server_txt'] = 'Server';
$wb['backup_interval_txt'] = 'Interval / cnt.';
$wb['backup_size_txt'] = 'Backupsize';
?>
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