if ($level == AUTH_SUID) {
S::set('auth', AUTH_MDP);
}
- $res = XDB::query("SELECT a.uid, a.display_name, a.full_name,
+ $res = XDB::query("SELECT a.uid, a.hruid, a.display_name, a.full_name,
a.sex = 'female' AS femme,
a.email_format, a.token,
at.perms, a.is_admin
function handler_index(&$page, $arg = null)
{
global $globals, $platal;
-
if (!is_null($arg)) {
return PL_NOT_FOUND;
}
$pnom = '';
}
- $text = $body;
- $text = preg_replace('!<cher>!i', $cher, $text);
- $text = preg_replace('!<nom>!i', $nom, $text);
- $text = preg_replace('!<prenom>!i', $pnom, $text);
-
+ $text = str_ireplace(array('<cher>', '<nom>', '<prenom>'),
+ array($cher, $nom, $pnom), $body);
$mailer->addTo($user);
if ($replyto) {
$mailer->addHeader('Reply-To', $replyto);
<td style="width: 280px">
<a href="{if $xnet_type eq 'plan'}plan{else}groups/{$xnet_type}{/if}"><img src="images/texte_{$xnet_type}.jpg" alt="{$xnet_type}" width="280" height="96" /></a>
</td>
- {if $asso}
+ {if t($asso)}
<td class="logo">
- {if $asso->site}
+ {if t($asso->site)}
<a href="{$asso->site}"><img src='{$platal->ns}logo' alt="LOGO" height="80" /></a>
{else}
<img src='{$platal->ns}logo' alt="LOGO" height="80"/>