diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:31:48 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:31:48 -0400 |
commit | 0c348a2b4d94bfb33e20d3a057eb88dda802335b (patch) | |
tree | b7cd3051551a8fc74aa436327d18e0ae7d14f83c /usr/local/www/diag_showbogons.php | |
parent | d114f3e337129cf7be5ba60ca09cad585be22434 (diff) | |
download | pfsense-0c348a2b4d94bfb33e20d3a057eb88dda802335b.zip pfsense-0c348a2b4d94bfb33e20d3a057eb88dda802335b.tar.gz |
Add savemsg
Diffstat (limited to 'usr/local/www/diag_showbogons.php')
-rw-r--r-- | usr/local/www/diag_showbogons.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php index b8366db..4f75c70 100644 --- a/usr/local/www/diag_showbogons.php +++ b/usr/local/www/diag_showbogons.php @@ -40,8 +40,10 @@ if($_POST['Download']) { exec("touch /var/run/donotsleep_bogons"); conf_mount_rw(); exec("/usr/bin/fetch -q -o /tmp/bogons 'http://files.pfsense.org/bogon-bn-nonagg.txt'"); - if(file_exists("/tmp/bogons")) - exec("egrep -v '^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8' /tmp/bogons > /etc/bogons"); + if(file_exists("/tmp/bogons")) { + $savemsg = "The bogons database has been updated."; + exec("egrep -v '^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8' /tmp/bogons > /etc/bogons"); + } exec("rm /tmp/bogons"); } @@ -57,6 +59,8 @@ include("fbegin.inc"); body { font-family: Verdana; font-size: 100%; } pre { font-size: 1.15em; } </style> +<?php if ($input_errors) print_input_errors($input_errors); ?> +<?php if ($savemsg) print_info_box($savemsg); ?> <form method="post" action="diag_showbogons.php"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> |