'CHAMP101' => replace_accent(S::v('prenom')),
'CHAMP102' => '.',
'CHAMP103' => '.',
- 'CHAMP104' => S::v('bestalias').'@' . $globals->mail->domain,
+ 'CHAMP104' => S::user()->bestEmail(),
'CHAMP106' => '.',
'CHAMP107' => '.',
'CHAMP108' => '.',
$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,
{
global $globals;
$page->changeTpl('register/success.tpl');
+ $page->assign('user', S::user());
$_SESSION['sub_state'] = array('step' => 5);
if (Env::has('response2')) {
$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')) {
{/literal}
<p class="center">
- <a href="Site/AllRecentChanges?action=rss&user={$smarty.session.forlife}&hash={$smarty.session.core_rss_hash}" style="display:block;float:right" title="Changements">{icon name=feed title='fil rss'}</a>
+ <a href="Site/AllRecentChanges?action=rss&user={$smarty.session.hruid}&hash={$smarty.session.core_rss_hash}" style="display:block;float:right" title="Changements">{icon name=feed title='fil rss'}</a>
{icon name=magnifier} <a href="Site/AllRecentChanges">Voir les changements récents</a>
</p>
<tr>
<th colspan="2">
{if $smarty.session.core_rss_hash}
- <a href="carnet/rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Notifications">
+ <a href="carnet/rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" style="display:block;float:right" title="Notifications">
{icon name=feed title='fil rss'}
</a>
{else}
<div class="right">
{if $smarty.session.core_rss_hash}
-<a href="carnet/rss/{$smarty.session.forlife}/{$smarty.session.core_rss_hash}/rss.xml" title="Notifications">{icon name=feed title='fil rss'}</a>
+<a href="carnet/rss/{$smarty.session.hruid}/{$smarty.session.core_rss_hash}/rss.xml" title="Notifications">{icon name=feed title='fil rss'}</a>
{/if}
</div>
{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) :'''\\
<p>
Tu as maintenant accès au site !<br />
-Ton adresse électronique à vie <strong>{$smarty.session.forlife}@{#globals.mail.domain#}</strong> est déjà ouverte, essaie-la !
+Ton adresse électronique à vie <strong>{$user->forlifeEmail()}</strong> est déjà ouverte, essaie-la !
</p>
<p class="smaller">
<strong>Remarque :</strong> m4x.org est un domaine "discret" qui veut dire "mail for X" et
<td class="titre">Expéditeur :</td>
<td>
<input type="text" name="from" size="55" maxlength="70"
- value="{if $smarty.request.from}{$smarty.request.from}{else}"{$smarty.session.prenom} {$smarty.session.nom}" <{$smarty.session.bestalias}@polytechnique.org>{/if}" />
+ value="{if $smarty.request.from}{$smarty.request.from}{else}"{$user->fullName()}" <{$user->bestEmail()}>{/if}" />
</td>
</tr>
<tr>