Pluf Framework

Pluf Framework Commit Details


Date:2009-07-10 13:54:13 (15 years 5 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:bbe7c75d75bc41e190f876a45e320d65c1523e4a
Parents: de454c77a52b2a7e07f5003b94478e0cfbfb5190
Message:Fixed to correctly handle the case of 127.0.0.1

Changes:

File differences

src/GeoIP.php
536536
537537
538538
539
539
540540
$gi = GeoIP_open($geoipdb, GEOIP_STANDARD);
$code = GeoIP_country_code_by_addr($gi, $request->remote_addr);
GeoIP_close($gi);
return ($code !== false) ? $code : 'ZZ';
return ($code != false) ? $code : 'ZZ';
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06313s using 13 queries.