aboutsummaryrefslogtreecommitdiffstats
path: root/config/ipblocklist/8/purge.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/purge.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/purge.tmp')
-rwxr-xr-xconfig/ipblocklist/8/purge.tmp20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/ipblocklist/8/purge.tmp b/config/ipblocklist/8/purge.tmp
new file mode 100755
index 00000000..a5a6cdf8
--- /dev/null
+++ b/config/ipblocklist/8/purge.tmp
@@ -0,0 +1,20 @@
+<?php
+header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
+header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
+$line = $_GET["line"];
+
+//echo("$line");
+
+//exec("more lists.txt > temp_lists.txt");
+if ($line == 0) {
+ exec("/bin/rm lists.txt");
+ } else {
+ exec("/usr/bin/sed $line'd' lists.txt > temp_lists.txt");
+ }
+exec("/usr/bin/more temp_lists.txt > lists.txt");
+exec("/bin/rm temp_lists.txt");
+
+
+header('Location: ipblocklist.php');
+
+?>