From: Vincent Zanotti Date: Sun, 12 Oct 2008 14:17:19 +0000 (+0200) Subject: Converts various user of the in-session 'bestalias' and 'forlife' values to hruid. X-Git-Tag: xorg/0.10.0~86^2~2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7912097e011456e2ab4e5d1c1608b68472f0ef8c;p=platal.git Converts various user of the in-session 'bestalias' and 'forlife' values to hruid. --- diff --git a/modules/payment/money/cyberpaiement.inc.php b/modules/payment/money/cyberpaiement.inc.php index c79935c..987e14c 100644 --- a/modules/payment/money/cyberpaiement.inc.php +++ b/modules/payment/money/cyberpaiement.inc.php @@ -74,7 +74,7 @@ class CyberPayment 'CHAMP101' => replace_accent(S::v('prenom')), 'CHAMP102' => '.', 'CHAMP103' => '.', - 'CHAMP104' => S::v('bestalias').'@' . $globals->mail->domain, + 'CHAMP104' => S::user()->bestEmail(), 'CHAMP106' => '.', 'CHAMP107' => '.', 'CHAMP108' => '.', diff --git a/modules/payment/money/paypal.inc.php b/modules/payment/money/paypal.inc.php index e1b4d0f..dcd1606 100644 --- a/modules/payment/money/paypal.inc.php +++ b/modules/payment/money/paypal.inc.php @@ -75,7 +75,7 @@ class PayPal $info_client = Array( 'first_name' => S::v('prenom'), 'last_name' => $name, - 'email' => S::v('bestalias').'@' . $globals->mail->domain); + 'email' => S::user()->bestEmail()); $res = XDB::query( "SELECT a.adr1 AS address1, a.adr2 AS address2, diff --git a/modules/register.php b/modules/register.php index 5b098f0..f77841c 100644 --- a/modules/register.php +++ b/modules/register.php @@ -419,6 +419,7 @@ class RegisterModule extends PLModule { global $globals; $page->changeTpl('register/success.tpl'); + $page->assign('user', S::user()); $_SESSION['sub_state'] = array('step' => 5); if (Env::has('response2')) { diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 1b20356..bfdea5e 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -317,6 +317,7 @@ class XnetGrpModule extends PLModule $mmlist = new MMList(S::v('uid'), S::v('password'), $globals->asso('mail_domain')); $page->assign('listes', $mmlist->get_lists()); + $page->assign('user', S::user()); $page->addJsLink('ajax.js'); if (Post::has('send')) { diff --git a/templates/admin/wiki.tpl b/templates/admin/wiki.tpl index 45de786..40c645b 100644 --- a/templates/admin/wiki.tpl +++ b/templates/admin/wiki.tpl @@ -68,7 +68,7 @@ {/literal}

- {icon name=feed title='fil rss'} + {icon name=feed title='fil rss'} {icon name=magnifier} Voir les changements récents

diff --git a/templates/carnet/index.tpl b/templates/carnet/index.tpl index b16445f..129e096 100644 --- a/templates/carnet/index.tpl +++ b/templates/carnet/index.tpl @@ -54,7 +54,7 @@ {if $smarty.session.core_rss_hash} - + {icon name=feed title='fil rss'} {else} diff --git a/templates/carnet/panel.tpl b/templates/carnet/panel.tpl index ef97c4c..47d982b 100644 --- a/templates/carnet/panel.tpl +++ b/templates/carnet/panel.tpl @@ -39,7 +39,7 @@ Il faut pour cela se rendre sur la page de configuration
{if $smarty.session.core_rss_hash} -{icon name=feed title='fil rss'} +{icon name=feed title='fil rss'} {/if}
diff --git a/templates/geoloc/geoloc.mail.tpl b/templates/geoloc/geoloc.mail.tpl index 64a1c2e..89c421d 100644 --- a/templates/geoloc/geoloc.mail.tpl +++ b/templates/geoloc/geoloc.mail.tpl @@ -26,7 +26,7 @@ {to addr=#to#} {subject text="Adresse impossible à geolocaliser"} {elseif $mail_part eq 'wiki'} -Un camarade {$smarty.session.forlife} a forcé l'utilisation de l'adresse entrée +Un camarade {$smarty.session.hruid} a forcé l'utilisation de l'adresse entrée à la main et a refusé la version geolocalisée : '''Version utilisateur (validée) :'''\\ diff --git a/templates/register/success.tpl b/templates/register/success.tpl index 1747f01..0d806d5 100644 --- a/templates/register/success.tpl +++ b/templates/register/success.tpl @@ -26,7 +26,7 @@

Tu as maintenant accès au site !
-Ton adresse électronique à vie {$smarty.session.forlife}@{#globals.mail.domain#} est déjà ouverte, essaie-la ! +Ton adresse électronique à vie {$user->forlifeEmail()} est déjà ouverte, essaie-la !

Remarque : m4x.org est un domaine "discret" qui veut dire "mail for X" et diff --git a/templates/xnetgrp/mail.tpl b/templates/xnetgrp/mail.tpl index 4b74cec..2f39797 100644 --- a/templates/xnetgrp/mail.tpl +++ b/templates/xnetgrp/mail.tpl @@ -52,7 +52,7 @@ masculin ou féminin, par son prénom, ou son nom. Expéditeur : + value="{if $smarty.request.from}{$smarty.request.from}{else}"{$user->fullName()}" <{$user->bestEmail()}>{/if}" />