From 6e09119cab1284b6052a04398c1c58ab530d0d4f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 29 May 2010 15:39:21 -0400 Subject: Adding file from Tom --- config/ipblocklist/whitelist.tmp | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 config/ipblocklist/whitelist.tmp diff --git a/config/ipblocklist/whitelist.tmp b/config/ipblocklist/whitelist.tmp new file mode 100755 index 00000000..17cae247 --- /dev/null +++ b/config/ipblocklist/whitelist.tmp @@ -0,0 +1,66 @@ + + + + +Manual + +White lists - The lists added here will be added to a whitelist +
Add List URL: +
+ + +
+ + 1) { + fwrite($fh, "\n"); + } else { + +} +fclose($fh); + + +//echo (filesize($myFile)); +if (filesize($myFile) > 1) { + //$fh = fopen($myFile, 'r'); + //$theData = fread($fh, filesize($myFile)); + //fclose($fh); + echo "
Current List(s):
"; + // Get the whole file into a single string + $fileContents = file_get_contents($myFile); + + // Explode the file contents string by each line + $lines = explode(PHP_EOL, $fileContents); // Replace PHP_EOL with "\r\n" or "\n" or "\r" if you like + + // Iterate through each line and do what you need with it + + foreach ($lines as $line) { + $i++; + echo ""; + echo " "; + echo $line; + //echo ""; + // echo $i; + echo "
"; + + } + + + + + +} +echo "

"; + + + + +?> \ No newline at end of file -- cgit v1.2.3