aboutsummaryrefslogtreecommitdiffstats
path: root/config/ipblocklist/8/purgeip.tmp
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-12-06 12:20:00 -0500
committerTom Schaefer <tom@tomschaefer.org>2010-12-06 12:20:00 -0500
commite6a67ab642563f5122d8a661977740c1ea8749b7 (patch)
treee1a1dc530f45d9303389c806b386899902457c6d /config/ipblocklist/8/purgeip.tmp
parent7ab65e4c7553580cf9f66350cb3cb6401443d045 (diff)
downloadpfsense-packages-e6a67ab642563f5122d8a661977740c1ea8749b7.tar.gz
pfsense-packages-e6a67ab642563f5122d8a661977740c1ea8749b7.tar.bz2
pfsense-packages-e6a67ab642563f5122d8a661977740c1ea8749b7.zip
ipblocklist 3.0.1 update with new file structure
Diffstat (limited to 'config/ipblocklist/8/purgeip.tmp')
-rwxr-xr-xconfig/ipblocklist/8/purgeip.tmp26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/ipblocklist/8/purgeip.tmp b/config/ipblocklist/8/purgeip.tmp
new file mode 100755
index 00000000..b577b8af
--- /dev/null
+++ b/config/ipblocklist/8/purgeip.tmp
@@ -0,0 +1,26 @@
+<?php
+$line = $_GET["line"];
+
+//echo("$line");
+//exec("more ips.ipfw > temp_ips.ipfw");
+if ($line == 0) {
+ exec("rm wlists.txt");
+ } else {
+ exec("sed $line'd' wlists.txt > temp_wlists.txt");
+ }
+exec("more temp_wlists.txt > wlists.txt");
+exec("rm temp_wlists.txt");
+
+
+?>
+<html>
+<HEAD>
+<SCRIPT language="JavaScript">
+<!--
+window.parent.location="ipblocklist.php";
+//-->
+</SCRIPT>
+</HEAD>
+
+
+</html>