- Apr 9, 2015
- 411
- 127
Hello,
I have a problem with a simple cloaking script, I want to check if the IP or just a person who enters the program page has a list of IP is to enable wordpress /katalog/index.php
so I tried both in index.php:
$ ip = $ ENV {'REMOTE_ADDR'};
open (IPList, "iplist.txt");
IPlist = <IPList>;
close (IPList);
foreach $ line (IPlist) {
chomp ($ line);
if ($ ip eq $ line) {
eval ('/ catalog / index.php');
}
}
and it was an error: Parse error: syntax error, unexpected '=' in /www/wycena2_www/www/wycena2.proste.pl/index.php on line 4
Do you have an idea of what I'm doing wrong?
I have a problem with a simple cloaking script, I want to check if the IP or just a person who enters the program page has a list of IP is to enable wordpress /katalog/index.php
so I tried both in index.php:
$ ip = $ ENV {'REMOTE_ADDR'};
open (IPList, "iplist.txt");
IPlist = <IPList>;
close (IPList);
foreach $ line (IPlist) {
chomp ($ line);
if ($ ip eq $ line) {
eval ('/ catalog / index.php');
}
}
and it was an error: Parse error: syntax error, unexpected '=' in /www/wycena2_www/www/wycena2.proste.pl/index.php on line 4
Do you have an idea of what I'm doing wrong?