aboutsummaryrefslogtreecommitdiffstats
path: root/packages/autoconfigbackup/autoconfigbackup_stats.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-08 03:41:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-08 03:41:31 +0000
commitfeeca391103df3509351124677535c034d64fa36 (patch)
tree2caf914b3b26bc211d4549d330090d9de85eadda /packages/autoconfigbackup/autoconfigbackup_stats.php
parent06b5adc773b524a3694e37612729a50f6fd7cf6e (diff)
downloadpfsense-packages-feeca391103df3509351124677535c034d64fa36.tar.gz
pfsense-packages-feeca391103df3509351124677535c034d64fa36.tar.bz2
pfsense-packages-feeca391103df3509351124677535c034d64fa36.zip
Show total backups
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup_stats.php')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup_stats.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup_stats.php b/packages/autoconfigbackup/autoconfigbackup_stats.php
index fcdb6140..e4f5b02e 100644
--- a/packages/autoconfigbackup/autoconfigbackup_stats.php
+++ b/packages/autoconfigbackup/autoconfigbackup_stats.php
@@ -166,7 +166,8 @@ include("head.inc");
$counter = 0;
echo "<script type=\"text/javascript\">";
echo "$('loading').innerHTML = '';";
- echo "</script>";
+ echo "</script>";
+ $total_backups = 0;
foreach($statvers as $cv):
?>
<tr valign="top">
@@ -186,13 +187,20 @@ include("head.inc");
</td>
</tr>
<?php
+ $total_backups = $total_backups + $cv['hostnamecount'];
$counter++;
endforeach;
if($counter == 0)
echo "<tr><td colspan='3'><center>Sorry, we could not load the status information for the account ($username).</td></tr>";
?>
-
- </div>
+ <tr>
+ <td align="right">
+ Total
+ </td>
+ <td>
+ <?=$total_backups?>
+ </td>
+ </tr>
</td>
</tr>
</table>