Simple script for wordpress cloaking - the problem

SEOMOOD

Regular Member
Jr. VIP
Joined
Apr 9, 2015
Messages
411
Reaction score
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?
 
help anyone? please
 
Back
Top