From c18955241354a570722b399588cfa6b5e63a5806 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 13 Sep 2007 08:31:38 +0200 Subject: [PATCH] I'm just starting learning french... Signed-off-by: Florent Bruneau --- classes/platalpage.php | 14 +++++++------- include/geoloc.inc.php | 2 +- templates/geoloc/country.tpl | 4 ++-- templates/geoloc/init.tpl | 2 +- templates/platal/acces_smtp.tpl | 13 ++++--------- 5 files changed, 15 insertions(+), 20 deletions(-) diff --git a/classes/platalpage.php b/classes/platalpage.php index bf35d60..47e1da6 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -61,9 +61,9 @@ abstract class PlatalPage extends Smarty public function changeTpl($tpl, $type = SKINNED) { - $this->_tpl = $tpl; - $this->_page_type = $type; - $this->assign('xorg_tpl', $tpl); + $this->_tpl = $tpl; + $this->_page_type = $type; + $this->assign('xorg_tpl', $tpl); } // }}} @@ -116,8 +116,8 @@ abstract class PlatalPage extends Smarty $this->assign('simple', true); case SKINNED: - $this->register_modifier('escape_html', 'escape_html'); - $this->default_modifiers = Array('@escape_html'); + $this->register_modifier('escape_html', 'escape_html'); + $this->default_modifiers = Array('@escape_html'); } $this->register_outputfilter('hide_emails'); $this->addJsLink('wiki.js'); @@ -285,9 +285,9 @@ function escape_xorgDB(&$item, $key) function escape_html($string) { if (is_string($string)) { - return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); + return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); } else { - return $string; + return $string; } } diff --git a/include/geoloc.inc.php b/include/geoloc.inc.php index 89ecd45..df3214a 100644 --- a/include/geoloc.inc.php +++ b/include/geoloc.inc.php @@ -501,7 +501,7 @@ function geoloc_getData_subcountries($mapid, $sin, $minentities) } foreach ($countries as $i => $c) { - if ($c['nbPop'] > 0) { + if (@$c['nbPop'] > 0) { $lambda = pow($c['nbPop'] / $maxpop,0.3); $countries[$i]['color'] = 0x0000FF + round((1-$lambda) * 0xFF)*0x010100; } diff --git a/templates/geoloc/country.tpl b/templates/geoloc/country.tpl index 809add5..c0e82c9 100644 --- a/templates/geoloc/country.tpl +++ b/templates/geoloc/country.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/init.tpl b/templates/geoloc/init.tpl index dfc34a8..b57ce7a 100644 --- a/templates/geoloc/init.tpl +++ b/templates/geoloc/init.tpl @@ -46,5 +46,5 @@ zoomBarBackgroundColor="{$background}" textCopyright="Les règles de l'annuaire s'appliquent aussi à cette application" autofolder="true" iconSwf="icon.swf" -scriptInfosArea="country{$plset_search}"/> +scriptInfosArea="country{$plset_search|escape_html}"/> {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} diff --git a/templates/platal/acces_smtp.tpl b/templates/platal/acces_smtp.tpl index a2cd1f9..38e1927 100644 --- a/templates/platal/acces_smtp.tpl +++ b/templates/platal/acces_smtp.tpl @@ -61,14 +61,9 @@ Pour activer un compte SMTP/NNTP sur ssl.polytechnique.org, tape un mot de passe ci-dessous. {/if}

-
+ - - - @@ -97,9 +92,9 @@

{icon name=error title="Attention"} Nous te déconseillons fortement d'utiliser le même - mot de passe que pour la connexion au site. En effet, contrairement au mot de passe - d'accès au site, sera stocké en clair dans notre base de donnée en raison des contraintes - technique imposées par les serveurs SMTP et NNTP. + mot de passe que pour la connexion au site. En effet ce mot de passe sert à accéder à des + services moins sécurisés qui nécessitent l'enregistrement de celui-ci en clair + dans notre base de données.

Ce mot de passe peut être le même que celui d'accès au site. Il doit faire au -- 2.1.4

- Définition du mot de passe -
Mot de passe (15 caractères maximum) :