diff options
author | Warren Baker <warren@decoy.co.za> | 2010-09-02 22:42:12 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2010-09-02 22:42:12 +0200 |
commit | 395ba5d1af335bfc0986f7512d38667063441493 (patch) | |
tree | b6ea2690d12bcc02f402d2b20e2794906ff6fd64 | |
parent | 1c9ed80d24b150ad0f0766ae6d82049d1e2eb9ca (diff) | |
download | pfsense-395ba5d1af335bfc0986f7512d38667063441493.zip pfsense-395ba5d1af335bfc0986f7512d38667063441493.tar.gz |
Remove obsolete Bogons files
-rw-r--r-- | etc/pfSense.obsoletedfiles | 1 | ||||
-rw-r--r-- | usr/local/www/diag_showbogons.php | 110 |
2 files changed, 1 insertions, 110 deletions
diff --git a/etc/pfSense.obsoletedfiles b/etc/pfSense.obsoletedfiles index 5fa8334..474f4b2 100644 --- a/etc/pfSense.obsoletedfiles +++ b/etc/pfSense.obsoletedfiles @@ -3,6 +3,7 @@ /etc/phpshellsessions/cvssync /etc/inc/regdomain.inc /etc/inc/sysctl.inc +/usr/local/www/diag_showbogons.php /usr/local/www/interfaces_wan.php /usr/local/www/interfaces_lan.php /usr/local/www/interfaces_opt.php diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php deleted file mode 100644 index 94b3946..0000000 --- a/usr/local/www/diag_showbogons.php +++ /dev/null @@ -1,110 +0,0 @@ -<?php -/* $Id$ */ -/* - diag_showbogons.php - Copyright (C) 2009 Scott Ullrich - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -/* - pfSense_BUILDER_BINARIES: /bin/ps /usr/bin/grep - pfSense_MODULE: filter -*/ - -##|+PRIV -##|*IDENT=page-diag-showbogons -##|*NAME=Diagnostics: System Activity -##|*DESCR=Allows access to the 'Diagnostics: Show Bogons' page -##|*MATCH=diag_showbogons.php -##|-PRIV - -require("guiconfig.inc"); - -if($_POST['Download']) { - mwexec_bg("/etc/rc.update_bogons.sh now"); - $maxtimetowait = 0; - $loading = true; - while($loading == true) { - $isrunning = `/bin/ps awwwux | /usr/bin/grep -v grep | /usr/bin/grep bogons`; - if($isrunning == "") - $loading = false; - $maxtimetowait++; - if($maxtimetowait > 89) - $loading = false; - sleep(1); - } - if($maxtimetowait < 90) - $savemsg = gettext("The bogons database has been updated."); -} - -$bogons = file_get_contents(trim("/etc/bogons")); -$pgtitle = array(gettext("Diagnostics"),gettext("Show Bogons")); - -include("head.inc"); -?> -<body link="#000000" vlink="#000000" alink="#000000"> - -<?php - -include("fbegin.inc"); - -?> -<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<style type="text/css"> -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> - <td> - <table id="backuptable" class="tabcont" align="left" width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td> - <table> - <tr> - <td> - <font size="+1"> - <b><?=gettext("Currently loaded bogons table:");?></b><p/> - <pre> -<?php echo $bogons; ?> - </pre> - </font> - </td> - </tr> - </table> - </td> - </tr> - </table> - </div> - </td> - </tr> -</table> -<p/> -<input type="submit" name="Download" value="<?=gettext("Download");?>"><?=gettext("latest bogon data.");?> -</form> -<?php include("fend.inc"); ?> -</body> -</html> |