summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_showbogons.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-09-14 18:16:13 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-09-14 18:20:27 -0400
commit13d193c2f742f037ff4e87e373922d8b6e7c5749 (patch)
tree991614998a749391854dea5bb3cb5edc5380e88a /usr/local/www/diag_showbogons.php
parent40b48c6cd486efddf88a805efeb42e3181fd93bc (diff)
downloadpfsense-13d193c2f742f037ff4e87e373922d8b6e7c5749.zip
pfsense-13d193c2f742f037ff4e87e373922d8b6e7c5749.tar.gz
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
Diffstat (limited to 'usr/local/www/diag_showbogons.php')
-rw-r--r--usr/local/www/diag_showbogons.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php
index 690e4de..68bcb96 100644
--- a/usr/local/www/diag_showbogons.php
+++ b/usr/local/www/diag_showbogons.php
@@ -27,6 +27,11 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ pfSense_BUILDER_BINARIES: /bin/ps /usr/bin/grep
+ pfSense_MODULE: filter
+*/
+
##|+PRIV
##|*IDENT=page-diag-showbogons
##|*NAME=Diagnostics: System Activity
@@ -41,7 +46,7 @@ if($_POST['Download']) {
$maxtimetowait = 0;
$loading = true;
while($loading == true) {
- $isrunning = `ps awwwux | grep -v grep | grep bogons`;
+ $isrunning = `/bin/ps awwwux | /usr/bin/grep -v grep | /usr/bin/grep bogons`;
if($isrunning == "")
$loading = false;
$maxtimetowait++;
@@ -53,7 +58,7 @@ if($_POST['Download']) {
$savemsg = "The bogons database has been updated.";
}
-$bogons = `cat /etc/bogons`;
+$bogons = file_get_contents(trim("/etc/bogons"));
$pgtitle = "Diagnostics: Show Bogons";
include("head.inc");
OpenPOWER on IntegriCloud