* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: moderate.php,v 1.10 2004-10-24 13:49:02 x2000habouzit Exp $
+ $Id: moderate.php,v 1.11 2004-10-28 09:30:19 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
if($user['id'] == $sid) $u = $user;
}
if($u) {
+ $fname = '/etc/mailman/fr/refuse.txt';
+ $h = fopen($fname,'r');
+ $msg = fread($h, filesize($fname));
+ fclose($h);
+ $msg = str_replace("%(adminaddr)s","$liste-owner@polytechnique.org", $msg);
+ $msg = str_replace("%(request)s","<< SUJET DU MAIL >>", $msg);
+ $msg = str_replace("%(reason)s","<< TON EXPLICATION >>", $msg);
+ $msg = str_replace("%(listname)s","$liste", $msg);
+ $page->assign('msg', $msg);
+
$page->changeTpl('listes/moderate_sub.tpl');
$page->assign('del_user',$u);
} else {
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: moderate_mail.tpl,v 1.8 2004-10-24 14:41:13 x2000habouzit Exp $
+ $Id: moderate_mail.tpl,v 1.9 2004-10-28 09:30:20 x2000habouzit Exp $
***************************************************************************}
{dynamic}
</li>
</ul>
</form>
+<p>
+En cas de refus, le mail envoyé à l'auteur du mail que tu modères actuellement sera de la forme suivante :
+</p>
+<pre>{$msg}</pre>
{/if}