$geoip_path = "/usr/local/bin/geoiplookup"; ............ $ip = @getip(); ........... function getip (){ ......... if ((@getenv('HTTP_X_FORWARDED_FOR') AND @strcasecmp(@getenv('HTTP_X_FORWARDED_FOR'), 'unknown'))) { $ip = @getenv('HTTP_X_FORWARDED_FOR'); } ......... if ((!isset($cc) || empty($cc)) && !$debug) { $addr = @explode (' ', @shell_exec ('' . $geoip_path . ' ' . $ip)); $cc = @str_replace (',', '', @$addr[3]); $cc = @trim ($cc); $cn = $cc; }