changement de serveur pour geoloc
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Feb 2006 06:39:49 +0000 (06:39 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 5 Feb 2006 06:39:49 +0000 (06:39 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.9@229 839d8a87-29fc-0310-9880-83ba4fa771e5

include/geoloc.inc.php

index d77668a..05a8b2a 100644 (file)
@@ -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;