diff options
Diffstat (limited to 'config/ipblocklist/purge.tmp')
-rw-r--r--[-rwxr-xr-x] | config/ipblocklist/purge.tmp | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/config/ipblocklist/purge.tmp b/config/ipblocklist/purge.tmp index 47dbed98..6bc8dde9 100755..100644 --- a/config/ipblocklist/purge.tmp +++ b/config/ipblocklist/purge.tmp @@ -1,26 +1,20 @@ -<?php -$line = $_GET["line"]; - -//echo("$line"); -//exec("more lists.txt > temp_lists.txt"); -if ($line == 0) { - exec("rm lists.txt"); - } else { - exec("sed $line'd' lists.txt > temp_lists.txt"); - } -exec("more temp_lists.txt > lists.txt"); -exec("rm temp_lists.txt"); - - -?> -<html> -<HEAD> -<SCRIPT language="JavaScript"> -<!-- -window.parent.location="ipblocklist.php"; -//--> -</SCRIPT> -</HEAD> - - -</html>
\ No newline at end of file +<?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');
+
+?>
\ No newline at end of file |