From ae0d47554b5a8a0c0c5d8bab70e4334840edae89 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Sun, 21 Nov 2010 11:03:19 -0500 Subject: IP-Blocklist 3.0 fix for BETA2.0 and 1.2.3 --- config/ipblocklist/purge.tmp | 46 +++++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 26 deletions(-) mode change 100755 => 100644 config/ipblocklist/purge.tmp (limited to 'config/ipblocklist/purge.tmp') diff --git a/config/ipblocklist/purge.tmp b/config/ipblocklist/purge.tmp old mode 100755 new mode 100644 index 47dbed98..6bc8dde9 --- a/config/ipblocklist/purge.tmp +++ b/config/ipblocklist/purge.tmp @@ -1,26 +1,20 @@ - 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"); - - -?> - - - - - - - \ No newline at end of file + 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 -- cgit v1.2.3