aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/countryblock_IPBlocklist.widget.tmp
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-05 10:02:24 -0200
committerRenato Botelho <garga@FreeBSD.org>2015-02-05 20:10:15 -0200
commit07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 (patch)
tree44d40561519e0018ad586bb1449e107c9ae431f3 /config/countryblock/countryblock_IPBlocklist.widget.tmp
parente526e4aa28867b7743b0e76993f5f6bebd15bc1b (diff)
downloadpfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.gz
pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.tar.bz2
pfsense-packages-07cf2c4b20230ddedee1bf9dddc1e7cd407385f5.zip
Packages repo cleanup:
- Drop support for pfSense < 2 - Remove archive/, old files can be reached using git - Remove old and unused packages - Move stale files from config subdir to a package subdir
Diffstat (limited to 'config/countryblock/countryblock_IPBlocklist.widget.tmp')
-rw-r--r--config/countryblock/countryblock_IPBlocklist.widget.tmp116
1 files changed, 0 insertions, 116 deletions
diff --git a/config/countryblock/countryblock_IPBlocklist.widget.tmp b/config/countryblock/countryblock_IPBlocklist.widget.tmp
deleted file mode 100644
index 59911f5a..00000000
--- a/config/countryblock/countryblock_IPBlocklist.widget.tmp
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/*
- Copyright 2012 Thomas Schaefer - Tomschaefer.org
- Part of pfSense widgets (www.pfsense.org)
-
- 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.
-*/
-
-$nocsrf = true;
-
-@require_once("guiconfig.inc");
-@require_once("pfsense-utils.inc");
-@require_once("functions.inc");
-
-$ipblocklist_file = "/usr/local/www/packages/ipblocklist/ipblocklist.php";
-$countryblock_file = "/usr/local/www/packages/countryblock/countryblock.php";
-
-echo "<table style=\"padding-top:0px; padding-bottom:0px; padding-left:0px; padding-right:0px\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"";
-echo" <tr>";
-if (file_exists($ipblocklist_file)) {
- echo " <td class=\"listhdrr\">IP-Blocklist";
- ob_start();
- $results = exec("/sbin/pfctl -s rules | grep -c ipblocklist");
- ob_end_clean();
- if ($results > '2') echo "<img src ='/themes/{$g['theme']}/images/icons/icon_interface_up.gif'>";
- else
- echo "<img src ='/themes/{$g['theme']}/images/icons/icon_interface_down.gif'>";
- echo "</td>";
-}
-if (file_exists($countryblock_file)) {
- echo " <td class=\"listhdrr\">Countryblock";
- ob_start();
- $results = exec("/sbin/pfctl -s rules | grep -c countryblock");
- ob_end_clean();
- if ($results > '0') echo "<img src ='/themes/{$g['theme']}/images/icons/icon_interface_up.gif'>";
- else
- echo "<img src ='/themes/{$g['theme']}/images/icons/icon_interface_down.gif'>";
- echo "</td>";
-}
-echo" </tr>";
-echo" <tr>";
-if (file_exists($ipblocklist_file)) {
- echo " <td class=\"listlr\">";
- ob_start();
- $resultsIP = exec("/sbin/pfctl -T show -t ipblocklist |grep -v -c Z");
- ob_end_clean();
- echo $resultsIP;
- echo " Networks";
- echo "</td>";
-}
-if (file_exists($countryblock_file)) {
- echo " <td class=\"listr\">";
- ob_start();
- $resultsCB = exec("pfctl -T show -t countryblock |grep -v -c Z");
- ob_end_clean();
- echo $resultsCB;
- echo " Networks";
- echo "</td>";
-}
-echo" </tr>";
-echo" <tr>";
-if (file_exists($ipblocklist_file)) {
- ob_start();
- $resultsIP = exec("tail -r /usr/local/www/packages/ipblocklist/errorOUT.txt");
- ob_end_clean();
- if ($resultsIP == "") {
- echo " <td></td>";
- } else {
- echo " <td class=\"listlr\">";
- echo "<br/><span style='color:red'>";
- echo $resultsIP;
- echo "</span>";
- echo "</td>";
- }
-}
-if (file_exists($countryblock_file)) {
- ob_start();
- $resultsCB = exec("tail -r /usr/local/www/packages/countryblock/errorOUT.txt");
- ob_end_clean();
- if ($resultsCB == "") {
- echo " <td></td>";
- } else {
- echo " <td class=\"listlr\">";
- echo "<br/><span style='color:red'>";
- echo $resultsCB;
- echo "</span>";
- echo "</td>";
- }
-}
-echo" </tr>";
-//echo" <tr>";
-//if (file_exists($ipblocklist_file)) echo " <td>&nbsp;</td>";
-//if (file_exists($countryblock_file)) echo " <td>&nbsp;</td>";
-//echo" </tr>";
-echo"</table>";
-
-?>