aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/purge.tmp
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-07-25 15:20:41 -0400
committerTom Schaefer <tom@tomschaefer.org>2010-07-25 15:20:41 -0400
commit0e9d556a1c497f9f3bf52e710447541325d69ec6 (patch)
treea521c6f28d06edf38f05394e7523e48af54945e9 /config/countryblock/purge.tmp
parent7bcc2b400314dff7235bb635a9968d04d2e7df76 (diff)
downloadpfsense-packages-0e9d556a1c497f9f3bf52e710447541325d69ec6.tar.gz
pfsense-packages-0e9d556a1c497f9f3bf52e710447541325d69ec6.tar.bz2
pfsense-packages-0e9d556a1c497f9f3bf52e710447541325d69ec6.zip
countryblock - adding two missing files
Diffstat (limited to 'config/countryblock/purge.tmp')
-rw-r--r--config/countryblock/purge.tmp26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/countryblock/purge.tmp b/config/countryblock/purge.tmp
new file mode 100644
index 00000000..81d16a7c
--- /dev/null
+++ b/config/countryblock/purge.tmp
@@ -0,0 +1,26 @@
+<?php
+$line = $_GET["line"];
+
+//echo("$line");
+//exec("more lists.txt > temp_lists.txt");
+if ($line == 0) {
+ exec("rm countries-white.txt");
+ } else {
+ exec("sed $line'd' countries-white.txt > temp_countries-white.txt");
+ }
+exec("more temp_countries-white.txt > countries-white.txt");
+exec("rm temp_countries-white.txt");
+
+
+?>
+<html>
+<HEAD>
+<SCRIPT language="JavaScript">
+<!--
+window.parent.location="whitelist.php";
+//-->
+</SCRIPT>
+</HEAD>
+
+
+</html> \ No newline at end of file