From fbbfb9a9f35474bef5c402d2c523d41ba21923ff Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sat, 25 Sep 2004 14:56:53 +0000 Subject: [PATCH] promo lists --- htdocs/listes/index.php | 8 +++++++- templates/listes/index.tpl | 22 ++++++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/htdocs/listes/index.php b/htdocs/listes/index.php index ad6f885..b459d0f 100644 --- a/htdocs/listes/index.php +++ b/htdocs/listes/index.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.php,v 1.4 2004-09-23 15:40:45 x2000habouzit Exp $ + $Id: index.php,v 1.5 2004-09-25 14:56:53 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -38,6 +38,12 @@ if(isset($_GET['add'])) { $client->subscribe('polytechnique.org',$_GET['add']); header('Location: index.php'); } +if(isset($_POST['promo_add'])) { + $promo = intval($_POST['promo_add']); + if($promo>=1900 and $promo<2100) { + $client->subscribe('polytechnique.org',"promo$promo"); + } +} $listes = $client->get_lists('polytechnique.org'); $page->assign_by_ref('listes',$listes); diff --git a/templates/listes/index.tpl b/templates/listes/index.tpl index e3751d4..0ccc616 100644 --- a/templates/listes/index.tpl +++ b/templates/listes/index.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: index.tpl,v 1.6 2004-09-23 15:40:46 x2000habouzit Exp $ + $Id: index.tpl,v 1.7 2004-09-25 14:56:53 x2000habouzit Exp $ ***************************************************************************}
@@ -64,7 +64,7 @@ Les listes de diffusion publiques sont visibles par tous les X inscrits {include file='listes/listes.inc.tpl' min=0}
- Listes de diffusion privées + Listes de diffusion privées (et de promo)

@@ -73,6 +73,24 @@ Si tu te d {include file='listes/listes.inc.tpl' min=1} +
+ +

+ + + + + + + + +
Inscription à une liste de diffusion promo
Promotion: + +   + +
+
+ {perms level=admin}
Listes d'administration -- 2.1.4