{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2007 Polytechnique.org *}
+{* Copyright (C) 2003-2008 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
<td class="orange">
<input type="checkbox" {if $mail_public}checked="checked"{/if}
onclick="
- Ajax.update_html(null,'{$globals->baseurl}/emails/alias/set/'+(this.checked?'public':'private'));
+ Ajax.update_html(null,'{$globals->baseurl}/emails/alias/set/'+(this.checked?'public':'private')+'?token={xsrf_token}');
document.getElementById('mail_public').innerHTML = (this.checked?'public et apparaît donc sur ta fiche':'privé et n\'apparaît nulle part sur le site') + '.';
" />
</td>
<br />
<form action="emails/alias/ask" method="post">
+ {xsrf_token_field}
<table class="bicol" cellpadding="4" summary="Demande d'alias">
<tr>
<th>Demande d'alias</th>
{if $actuel}
<form action="emails/alias/delete/{$actuel}" method="post"
onsubmit="return confirm('Es-tu sûr de vouloir supprimer {$actuel} ?')">
+ {xsrf_token_field}
<table class="bicol" cellpadding="4" summary="Suppression d'alias">
<tr>
<th>Suppression d'alias</th>