From edfc872d991eb77da9da22cad52636ab9cbfa014 Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Tue, 25 Jul 2006 06:29:13 +0000 Subject: [PATCH] adapt geoloc to new urls git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@636 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/.htaccess | 2 +- include/geoloc.inc.php | 2 ++ templates/geoloc/geolocInit.tpl | 3 ++- templates/geoloc/getData.tpl | 4 ++-- templates/geoloc/index.tpl | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/.htaccess b/htdocs/.htaccess index 73d78b6..54469c6 100644 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -1,7 +1,7 @@ Options +FollowSymLinks RewriteEngine on -RewriteBase /~x2000habouzit +RewriteBase /~x2001corpet # wiki diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index c23da8c..c23f726 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -350,6 +350,8 @@ function geoloc_getData_subcountries($mapid, $SFields, $minentities) { FROM geoloc_maps AS gm ".$wheremapid, Env::v('mapid','')); + global $globals; + while ($c = $submapres->next()) { $country = $c; diff --git a/templates/geoloc/geolocInit.tpl b/templates/geoloc/geolocInit.tpl index 99057dc..ead89a1 100644 --- a/templates/geoloc/geolocInit.tpl +++ b/templates/geoloc/geolocInit.tpl @@ -43,4 +43,5 @@ textYouHaveSelected="Tu as sélectionné " background="{$background}" {/if} textCopyright="Les règles de l'annuaire s'appliquent aussi à cette application" -scriptInfosArea="getData.php?{$querystring}"/> +iconSwf="geoloc/icon.swf" +scriptInfosArea="geoloc/country?{$querystring}"/> diff --git a/templates/geoloc/getData.tpl b/templates/geoloc/getData.tpl index d884cd3..a5e55d3 100644 --- a/templates/geoloc/getData.tpl +++ b/templates/geoloc/getData.tpl @@ -30,7 +30,7 @@ {if $country.nbPop > 0 or $country.id eq 0} - + {/if} {/foreach} @@ -39,7 +39,7 @@ {foreach from=$cities item="city"} - + {/foreach} diff --git a/templates/geoloc/index.tpl b/templates/geoloc/index.tpl index f25d38d..91b3fbc 100644 --- a/templates/geoloc/index.tpl +++ b/templates/geoloc/index.tpl @@ -65,7 +65,7 @@ function searchMapId(f) {if $globals->geoloc->use_map}