Ver originalif ($HTTP_X_FORWARDED_FOR == "") { $ip2 = getenv(REMOTE_ADDR); } else { $ip2 = getenv(HTTP_X_FORWARDED_FOR); }
Ver originalif ( getenv('HTTP_X_FORWARDED_FOR') ) { $ip2 = getenv('HTTP_X_FORWARDED_FOR'); } else { $ip2 = getenv('REMOTE_ADDR'); }