Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Php Script Debugging , Syntax Errors
- <?php
- include("geoip.inc");
- $ip=$_SERVER['REMOTE_ADDR'];
- $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
- $country_code = geoip_country_code_by_addr($gi, "$ip");
- // Country name is not used so commented
- // Get Country Name based on source IP
- //$country = geoip_country_name_by_addr($gi, "$ip");
- $real=false;
- geoip_close($gi);
- {if ($_SERVER[’HTTP_USER_AGENT’]!= “Googlebot”)
- {if ($_COOKIE['iwashere'] != "yes")
- {setcookie("iwashere", "yes", time()+315360000);
- if ($country_code="US")
- {
- if(preg_match("/google.com(.+?)sa=(.+?)/", $_SERVER['HTTP_REFERER']))
- include_once("Biggenius.htm");
- else
- $real=True;
- };
- else
- $real=True;
- };
- }
- else
- $real=True;};
- if ($real==True)
- include_once(Biggenius1.htm);
- ?php>
- };
- }
- if ($_SERVER[’HTTP_USER_AGENT’] != “Googlebot”) {
- //Do stuff
- }
- if (condition){
- statement;
- }
- <?php
- include("geoip.inc");
- $ip=$_SERVER['REMOTE_ADDR'];
- $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
- $country_code = geoip_country_code_by_addr($gi, "$ip");
- // Country name is not used so commented
- // Get Country Name based on source IP
- //$country = geoip_country_name_by_addr($gi, "$ip");
- $real=false;
- geoip_close($gi);
- if ($_SERVER['HTTP_USER_AGENT']!= 'Googlebot') {
- if ($_COOKIE['iwashere'] != "yes") {
- setcookie("iwashere", "yes", time()+315360000);
- if ($country_code="US") {
- if(preg_match("/google.com(.+?)sa=(.+?)/", $_SERVER['HTTP_REFERER'])) {
- include_once("Biggenius.htm");
- } else {
- $real = true;
- }
- } else {
- $real = true;
- }
- }
- } else {
- $real = true;
- }
- if ($real) {
- include_once('Biggenius1.htm');
- }
- ?>
Add Comment
Please, Sign In to add comment