From: x2000habouzit Date: Thu, 28 Oct 2004 09:30:19 +0000 (+0000) Subject: closes FS#138: text of the refusal is now on the page too, directly read from the... X-Git-Tag: xorg/old~1162 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=58b111f355e36cb66c96ae314aee34bd5b59f757;p=platal.git closes FS#138: text of the refusal is now on the page too, directly read from the template (so no need to actualize) --- diff --git a/htdocs/listes/moderate.php b/htdocs/listes/moderate.php index 86933f9..13712f7 100644 --- a/htdocs/listes/moderate.php +++ b/htdocs/listes/moderate.php @@ -18,7 +18,7 @@ * 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'); @@ -86,6 +86,16 @@ if(isset($_REQUEST['sid'])) { 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 { diff --git a/templates/listes/moderate_mail.tpl b/templates/listes/moderate_mail.tpl index b6a5d50..4ff0339 100644 --- a/templates/listes/moderate_mail.tpl +++ b/templates/listes/moderate_mail.tpl @@ -17,7 +17,7 @@ * 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} @@ -94,6 +94,10 @@ +

+En cas de refus, le mail envoyé à l'auteur du mail que tu modères actuellement sera de la forme suivante : +

+
{$msg}
{/if}