summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2012-12-05 09:26:26 -0800
committerJim P <jim@pingle.org>2012-12-05 09:26:26 -0800
commitffe25c1f8a4902e0e77430dfd3e3b24b7881880c (patch)
treef5a65ca3fb62dcb8211b4400885d8a331dbc08e4 /usr/local
parent7c59bcc2473c58c3e6ec1769e63e04403ed8e10a (diff)
parentf575c162e8b0aa8ccdb2a4bbe70fae147fb68997 (diff)
downloadpfsense-ffe25c1f8a4902e0e77430dfd3e3b24b7881880c.zip
pfsense-ffe25c1f8a4902e0e77430dfd3e3b24b7881880c.tar.gz
Merge pull request #269 from N0YB/Diagnostics-Tables-Top-Status
Diagnostics Tables Top Status
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/diag_tables.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php
index 0802d30..832a524 100644
--- a/usr/local/www/diag_tables.php
+++ b/usr/local/www/diag_tables.php
@@ -70,7 +70,7 @@ if($_REQUEST['deleteall']) {
}
}
-if(($tablename == "bogons") && ($_POST['Download'])) {
+if((($tablename == "bogons") || ($tablename == "bogonsv6")) && ($_POST['Download'])) {
mwexec_bg("/etc/rc.update_bogons.sh now");
$maxtimetowait = 0;
$loading = true;
@@ -139,7 +139,7 @@ include("fbegin.inc");
<?php echo $entry; ?>
</td>
<td>
- <?php if ($tablename != "bogons") { ?>
+ <?php if ( ($tablename != "bogons") && ($tablename != "bogonsv6") ) { ?>
<a onClick='del_entry("<?=htmlspecialchars($entry)?>");'>
<img img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif">
<?php } ?>
@@ -149,17 +149,20 @@ include("fbegin.inc");
<?php $count++; endforeach; ?>
<?php
if($count == 0)
- echo "<tr><td>" . gettext("No entries exist in this table.") . "</td></tr>";
+ if( ($tablename == "bogons") || ($tablename == "bogonsv6") )
+ echo "<p/>" . gettext("No entries exist in this table.") . "&nbsp&nbsp" . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data.");
+ else
+ echo "<p/>" . gettext("No entries exist in this table.");
?>
-</table>
-
<?php
if($count > 0)
- if($tablename == "bogons")
- echo "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data.");
+ if( ($tablename == "bogons") || ($tablename == "bogonsv6") )
+ echo "<p/>&nbsp<b>$count</b> " . gettext("entries in this table.") . "&nbsp&nbsp" . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data.");
else
- echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type=" . htmlspecialchars($tablename) . "'>" . gettext("all") . "</a> " . gettext("entries in this table.");
+ echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type=" . htmlspecialchars($tablename) . "'>" . gettext("all") . "</a> " . "<b>$count</b> " . gettext("entries in this table.");
?>
+</table>
+
<?php include("fend.inc"); ?>
OpenPOWER on IntegriCloud