From: x2001corpet Date: Sun, 5 Feb 2006 06:39:49 +0000 (+0000) Subject: changement de serveur pour geoloc X-Git-Tag: xorg/0.9.9~18 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=949ae93cdff31cd884bf12eafa376afb9f5cf5c6;p=platal.git changement de serveur pour geoloc git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.9@229 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index d77668a..05a8b2a 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -73,7 +73,7 @@ $GLOBALS['page']->register_function('geoloc_region', '_geoloc_region_smarty'); * @param $txt the raw text of an address */ function get_address_infos($txt) { - $url ="http://www.geoloc.org/adressparser/address.php?txt=".urlencode(utf8_encode($txt)); + $url ="http://wws.geoloc.org/address.php?txt=".urlencode(utf8_encode($txt)); if (!($f = @fopen($url, 'r'))) return false; $keys = explode('|',fgets($f)); $vals = explode('|',fgets($f)); @@ -208,7 +208,7 @@ function localize_addresses($uid) { * @param $id the id of the city to synchronize */ function synchro_city($id) { - $url ="http://www.geoloc.org/adressparser/cityFinder.php?method=id&id=".$id."&out=sql"; + $url ="http://wws.geoloc.org/cityFinder.php?method=id&id=".$id."&out=sql"; if (!($f = @fopen($url, 'r'))) return false; $s = fgets($f); global $globals;