diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 19:44:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-06 19:44:58 +0000 |
commit | 3f1d979f7056853758055f2eb66903ad9a4bb8e2 (patch) | |
tree | b17c2f35a3e87d4ef7397e76e8a4fb04466e97ee /packages/autoconfigbackup/autoconfigbackup.php | |
parent | 363fefeb229e35a5b0958907bf88f3a5c5a23176 (diff) | |
download | pfsense-packages-3f1d979f7056853758055f2eb66903ad9a4bb8e2.tar.gz pfsense-packages-3f1d979f7056853758055f2eb66903ad9a4bb8e2.tar.bz2 pfsense-packages-3f1d979f7056853758055f2eb66903ad9a4bb8e2.zip |
* Alert user when no backups are found
* Correct input type for username
* Cleanup descriptions
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 5cd34dbb..2574941a 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -126,7 +126,10 @@ include("head.inc"); <td width="30%" class="listhdrr">Date</td> <td width="70%" class="listhdrr">Configuration Change</td> </tr> -<?php foreach($confvers as $cv): ?> +<?php + $counter = 0; + foreach($confvers as $cv): +?> <tr valign="top"> <td class="listlr"> <?= date("n/j/y H:i:s", $cv[2]); ?></td> <td class="listlr"> <?= $cv[1]; ?></td> @@ -147,7 +150,12 @@ include("head.inc"); --> </td> </tr> -<?php endforeach; ?> +<?php + $counter++; + endforeach; + if($counter == 0) + echo "<tr><td colspan='3'><center>Sorry, we could not locate any backups at portal.pfsense.org for this hostname.</td></tr>"; +?> </table> </div> </td> |