misc bugfixes + attempt to really separate lists from the rest
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 3 Dec 2004 16:43:30 +0000 (16:43 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:27 +0000 (23:26 +0200)
* Banana :
    - show formular even after entering the password.

* Mail :
    - already add MailCOnfig because we really need to make @polytechnique.org disappear everywhere
      and make use of $globals->mail->domain instead.

* NewsLetter :
    - use globals->mail->domain

* Lists :
    - Make it a separate module : really ok for the php part.  Needs work for the rpc, but I cannot test atm.

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-34

33 files changed:
bin/devel/lists.foreach_template.py [moved from bin/mailman/foreach_template.py with 100% similarity]
bin/lists.mhonarc_by_month.pl [moved from bin/mailman/mhonarc_by_month.pl with 100% similarity]
bin/lists.mhonarc_pipe.sh [moved from bin/mailman/mhonarc_pipe.sh with 100% similarity]
bin/lists.rpc.py [moved from bin/mailman/mailman-rpc.py with 100% similarity]
hooks/core/lists.inc.php [new file with mode: 0644]
hooks/core/newsletter.inc.php
htdocs/inscription/step4.php
htdocs/listes/admin.php
htdocs/listes/archives.php
htdocs/listes/check.php
htdocs/listes/delete.php
htdocs/listes/index.php
htdocs/listes/members.php
htdocs/listes/moderate.php
htdocs/listes/options.php
htdocs/listes/soptions.php
htdocs/listes/trombi.php
htdocs/login.php
include/conf.d/lists.globals.inc.php
include/conf.d/lists.menu.inc.php [new file with mode: 0644]
include/conf.d/mail.globals.inc.php [new file with mode: 0644]
include/conf.d/tmp.menu.inc.php
include/lists.inc.php [new file with mode: 0644]
include/newsletter.inc.php
include/user.func.inc.php
install.d/banana/README
install.d/lists/README [new file with mode: 0644]
install.d/lists/files
install.d/lists/platal.mrc
install.d/platal-dev/files
templates/confbanana.tpl
templates/newsletter/index.tpl
upgrade/0.9.3/update.sh

similarity index 100%
rename from bin/mailman/mailman-rpc.py
rename to bin/lists.rpc.py
diff --git a/hooks/core/lists.inc.php b/hooks/core/lists.inc.php
new file mode 100644 (file)
index 0000000..78efd66
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+// {{{ function lists_subscribe()
+
+function &lists_subscribe($forlife, $uid, $promo, $password, &$result)
+{
+    require_once('lists.inc.php');
+    
+    global $globals;
+    // récupération de l'id de la liste promo
+    $client =& lists_xmlrpc($uid, $pass);
+    $client->subscribe("promo$promo");
+}
+
+// }}}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+?>
index 9e9676e..4557756 100644 (file)
@@ -23,9 +23,8 @@
 
 function &newsletter_subscribe($forlife, $uid, $promo, $password, &$result)
 {
-    global $globals;
     require_once('newsletter.inc.php');
-    subscribe_nl();
+    subscribe_nl(true,$uid);
     
     return ($result = true);
 }
index 9d02792..fae9777 100644 (file)
@@ -138,8 +138,6 @@ if (!empty($_REQUEST['ref'])) {
     $hook->subscribe($forlife, $uid, $promo, $password, true);
     
     start_connexion($uid,false);
-    /****************** inscription à la liste promo +nl ****************/
-    $inspromo = inscription_listes_base($uid,$password,$promo);
 } else
     $page->assign('error',ERROR_REF);
 
index 811c94f..5328901 100644 (file)
@@ -24,11 +24,10 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/admin.tpl', AUTH_MDP);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
 $err = Array();
-
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if(isset($_REQUEST['add_member'])) {
     $arr = $client->mass_subscribe($liste, Array($_REQUEST['add_member']));
@@ -55,7 +54,7 @@ if(isset($_REQUEST['del_owner'])) {
 if(list($det,$mem,$own) = $client->get_members($liste)) {
     $membres = Array();
     foreach($mem as $member) {
-       if(preg_match('/^([^.]*\.([^.]*)\.\d\d\d\d)@polytechnique.org$/', $member[1], $matches)) {
+       if(preg_match('/^([^.]*\.([^.]*)\.\d\d\d\d)@'.$globals->mail->domain.'$/', $member[1], $matches)) {
            $key = strtoupper($matches[2]{0});
            $membres[$key][$matches[2]] = Array('n' => $member[0], 'l' => $matches[1], 'a' => $member[1]);
        } else {
index e8e08ee..bda91f8 100644 (file)
@@ -24,9 +24,9 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/archives.tpl', AUTH_COOKIE, 'listes/archives.head.tpl');
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if (list($det) = $client->get_members($liste)) {
     if ( substr($liste,0,5) != 'promo' && ( $det['ins'] || $det['priv'] ) && !$det['own'] && ($det['sub']<2) ) {
@@ -37,11 +37,11 @@ if (list($det) = $client->get_members($liste)) {
         if(strstr('/', $file)!==false || !preg_match(',^\d+/\d+$,', $_GET['rep'])) {
             $page->assign('no_list',true);
         } else { 
-            $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$rep/$file");
+            $page->assign('url', $globals->lists->spool."/{$globals->mail->domain}-$liste/$rep/$file");
         }
     } else {
         $archs = Array();
-        foreach (glob($globals->lists->spool."/polytechnique.org-$liste/*/*") as $rep) {
+        foreach (glob($globals->lists->spool."/{$globals->mail->domain}-$liste/*/*") as $rep) {
             if (preg_match(",/(\d*)/(\d*)$,", $rep, $matches)) {
                 $archs[intval($matches[1])][intval($matches[2])] = true;
             }
index 5a65909..ff60a97 100644 (file)
@@ -24,9 +24,9 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_admin_page('listes/check.tpl');
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if(isset($_POST['correct'])) { $client->check_options($liste, true); }
 
index d859f3d..08f7dde 100644 (file)
@@ -24,9 +24,9 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/delete.tpl', AUTH_MDP);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if ( isset($_POST['valid']) && ($_POST['valid'] == 'OUI')
         && $client->delete_list($liste,!empty($_POST['del_archive'])) ) {
index cef94f6..3dc18e8 100644 (file)
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/index.tpl', AUTH_MDP);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
+
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
 if(isset($_GET['del'])) {
     $client->unsubscribe($_GET['del']);
     header('Location: index.php');
index c2f8102..90bd568 100644 (file)
@@ -24,9 +24,10 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/members.tpl', AUTH_COOKIE);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
+
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
 if(isset($_GET['del'])) {
     $client->unsubscribe($liste);
     header("Location: ?liste=$liste");
index ba3ca55..7813266 100644 (file)
 if(empty($_REQUEST['liste'])) header('Location: index.php');
 $liste = strtolower($_REQUEST['liste']);
 
-if(preg_match('!(?:[a-z0-9]+\.)?polytechnique\.org-(.*)!', $liste,$matches)) {
+if(preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}-(.*)!", $liste,$matches)) {
     header('Location: ?liste='.$matches[1]);
 }
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/moderate.tpl', AUTH_MDP);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if(isset($_REQUEST['sadd'])) {
     $client->handle_request($liste,$_REQUEST['sadd'],4,'');
@@ -47,9 +47,9 @@ if(isset($_REQUEST['mid'])) {
     $mid = $_REQUEST['mid'];
     require_once('diogenes.hernes.inc.php');
     $mailer = new HermesMailer();
-    $mailer->addTo("$liste-owner@polytechnique.org");
-    $mailer->setFrom("$liste-bounces@polytechnique.org");
-    $mailer->addHeader('Reply-To', "$liste-owner@polytechnique.org");
+    $mailer->addTo("$liste-owner@{$globals->mail->domain}");
+    $mailer->setFrom("$liste-bounces@{$globals->mail->domain}");
+    $mailer->addHeader('Reply-To', "$liste-owner@{$globals->mail->domain}");
 
     $mail = $client->get_pending_mail($liste, $mid);
 
@@ -120,7 +120,7 @@ if(isset($_REQUEST['sid'])) {
        $h = fopen($fname,'r');
        $msg = fread($h, filesize($fname));
        fclose($h);
-       $msg = str_replace("%(adminaddr)s","$liste-owner@polytechnique.org", $msg);
+       $msg = str_replace("%(adminaddr)s","$liste-owner@{$globals->mail->domain}", $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);
index 4903ae0..78dd373 100644 (file)
@@ -24,9 +24,9 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/options.tpl', AUTH_MDP);
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if(isset($_POST['submit'])) {
     $values =array_map('stripslashes',$_POST);
index 8401937..a982825 100644 (file)
@@ -24,9 +24,9 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_admin_page('listes/soptions.tpl');
-require_once('xml-rpc-client.inc.php');
+require_once('lists.inc.php')
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
 if(isset($_POST['submit'])) {
     $values = array_map('stripslashes', $_POST);
index a2ed9a2..94c708d 100644 (file)
@@ -24,10 +24,11 @@ $liste = strtolower($_REQUEST['liste']);
 
 require_once("xorg.inc.php");
 new_skinned_page('listes/trombi.tpl', AUTH_COOKIE);
-require_once('xml-rpc-client.inc.php');
 require_once("trombi.inc.php");
+require_once('lists.inc.php')
+
+$client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
 
-$client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
 if(isset($_GET['del'])) {
     $client->unsubscribe($liste);
     header("Location: ?liste=$liste");
index 90b3efd..26852c2 100644 (file)
@@ -65,7 +65,6 @@ if ($nbAlea > 0) {
 $publicite = array_chunk( $publicite , $pub_nbLig , true ) ;
 $page->assign_by_ref('publicite', $publicite);
 
-
 // affichage des evenements
 // annonces promos triées par présence d'une limite sur les promos
 // puis par dates croissantes d'expiration
index eda434a..36d1b80 100644 (file)
@@ -24,7 +24,7 @@
 class ListsConfig
 {
     var $rpchost  = 'localhost';
-    var $rpcport  = 119;
+    var $rpcport  = 4949;
     
     var $spool    = '/var/spool/platal/archives/';
 }
diff --git a/include/conf.d/lists.menu.inc.php b/include/conf.d/lists.menu.inc.php
new file mode 100644 (file)
index 0000000..7e35aef
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+$this->addPrivateEntry(XOM_SERVICES, 20, 'Listes de diffusion',   'listes/');
+?>
diff --git a/include/conf.d/mail.globals.inc.php b/include/conf.d/mail.globals.inc.php
new file mode 100644 (file)
index 0000000..673eda9
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+// {{{ class SkinConfig
+
+class MailConfig
+{
+    var $domain       = 'polytechnique.org';
+}
+
+// }}}
+
+$this->mail = new MailConfig;
+
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+?>
index 9608eca..b486751 100644 (file)
@@ -9,7 +9,6 @@ $this->addPrivateEntry(XOM_CUSTOM,   40, 'Mon mot de passe',      'motdepassemd5
 $this->addPrivateEntry(XOM_CUSTOM,   50, 'Mes préférences',       'preferences.php');
 
 $this->addPrivateEntry(XOM_SERVICES, 00, 'Envoyer un mail',       'sendmail.php');
-$this->addPrivateEntry(XOM_SERVICES, 20, 'Listes de diffusion',   'listes/');
 $this->addPrivateEntry(XOM_SERVICES, 30, 'Envoyer un mail',       'sendmail.php');
 $this->addPrivateEntry(XOM_SERVICES, 40, 'Patte cassée',          'pattecassee.php');
        
diff --git a/include/lists.inc.php b/include/lists.inc.php
new file mode 100644 (file)
index 0000000..717c0ff
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+// {{{ import class definitions
+
+require_once("xml-rpc-client.inc.php");
+
+// }}}
+// {{{ function lists_xmlrpc
+
+function &lists_xmlrpc($uid, $pass, $fqdn=null)
+{
+    global $globals;
+    
+    $dom = empty($fqdn) ? $globals->mail->domain;
+    $url = "http://$uid:$pass/{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
+    $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+    return $client;
+}
+
+// }}}
+
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
+?>
index afbdd6b..bb21ea0 100644 (file)
@@ -323,7 +323,7 @@ EOF;
        $mailer = new HermesMailer();
        $mailer->setFrom($globals->newsletter->from);
        $mailer->setSubject($this->title());
-       $mailer->addTo("\"$prenom $nom\" <$login@polytechnique.org>");
+       $mailer->addTo("\"$prenom $nom\" <$login@{$globals->mail->domain}>");
         if (!empty($globals->newsletter->replyto)) {
             $mailer->addHeader('Reply-To',$globals->newsletter->replyto);
         }
@@ -481,12 +481,13 @@ function unsubscribe_nl()
     $globals->db->query("DELETE FROM newsletter_ins WHERE user_id={$_SESSION['uid']}");
 }
  
-function subscribe_nl($html=true)
+function subscribe_nl($html=true, $uid=-1)
 {
     global $globals;
+    $user = $uid == -1 ? $_SESSION['uid'] : $uid;
     $format = $html ? 'html' : 'text';
     $globals->db->query("REPLACE INTO  newsletter_ins (user_id,last,pref)
-                              SELECT  {$_SESSION['uid']}, MAX(id), '$format'
+                              SELECT  '$user', MAX(id), '$format'
                                 FROM  newsletter WHERE bits!='new'");
 }
  
index df8905b..e0879fc 100644 (file)
@@ -59,28 +59,11 @@ function user_clear_all_subs($user_id, $really_del=true)
     $globals->db->query("delete from user_changes where user_id=$uid");
     $globals->db->query("delete from watch_sub where uid=$uid");
     
-    require_once('xml-rpc-client.inc.php');
-    $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
-    $client->kill($alias, $really_del);
-}
-
-// }}}
-// {{{ function inscription_listes_base()
-
-/** inscrit l'uid donnée à la promo
- * @param $uid UID
- * @param $promo promo
- * @return reponse MySQL
- * @see admin/RegisterNewUser.php
- * @see step4.php
- */
-function inscription_listes_base($uid,$pass,$promo)
-{
-    require_once('xml-rpc-client.inc.php');
-    global $globals;
-    // récupération de l'id de la liste promo
-    $client = new xmlrpc_client("http://$uid:$pass@localhost:4949/polytechnique.org");
-    $client->subscribe("promo$promo");
+    include_once('lists.inc.php');
+    if (function_exists(lists_xmlrpc)) {
+        $client =& lists_xmlrpc($_SESSION['uid'], $_SESSION['password']);
+        $client->kill($alias, $really_del);
+    }
 }
 
 // }}}
index ae47f89..5c2812c 100644 (file)
@@ -1,5 +1,5 @@
 
-  Notes for the skin module for plat/al
+  Notes for the banana module for plat/al
 
 
 STATUS
diff --git a/install.d/lists/README b/install.d/lists/README
new file mode 100644 (file)
index 0000000..4c19f67
--- /dev/null
@@ -0,0 +1,42 @@
+
+  Notes for the lists module for plat/al
+
+
+CONFIG OPTIONS
+--------------
+
+  All settings of the module are shown here with their default and meaning
+
+  [lists]
+
+  rpchost = "localhost"     ; the host that runs the xml-rpc
+  rpcport = 4949            ; the port for the xml-rpc server
+
+  spool   = "/var/spool/platal/archives/"
+                            ; the directory that holds mhonarc archives
+
+MAILMAN CONFIG
+--------------
+
+add in /etc/mailman/mm_cfg.py
+
+    MYSQL_USER = <your mysql user here>
+    MYSQL_PASS = <your mysql pass here>
+    ADMIN_ML_OWNER = <the owner of admin ML's>
+    SENDER_HEADERS = ('X-Org-Mail', 'from', None, 'reply-to', 'sender')
+
+
+BUGS
+----
+
+  http://trackers.polytechnique.org/index.php?cat=15
+
+
+DEPENDS
+-------
+
+  platal, mail
+  + mailman
+  + python-mysql
+  + mhonarc
+
index 981f4f5..bd652c3 100644 (file)
@@ -1,7 +1,7 @@
-bin/mailman/foreach_template.py
-bin/mailman/mailman-rpc.py
-bin/mailman/mhonarc_by_month.pl
-bin/mailman/mhonarc_pipe.sh
+bin/lists.mhonarc_by_month.pl
+bin/lists.mhonarc_pipe.sh
+bin/lists.rpc.py
+hooks/core/lists.inc.php
 htdocs/admin/lists.php
 htdocs/images/lists_date.png
 htdocs/images/lists_firstia.png
@@ -24,11 +24,15 @@ htdocs/listes/moderate.php
 htdocs/listes/options.php
 htdocs/listes/soptions.php
 htdocs/listes/trombi.php
+include/conf.d/lists.globals.inc.php
+include/conf.d/lists.menu.inc.php
+include/lists.inc.php
 include/validations/listes.inc.php
 templates/admin/lists.tpl
 templates/include/form.valid.listes.tpl
 templates/include/form.valid.ml.tpl
 templates/listes/admin.tpl
+templates/listes/archives.head.tpl
 templates/listes/archives.tpl
 templates/listes/check.tpl
 templates/listes/create.tpl
index dfadc57..a887369 100644 (file)
@@ -490,7 +490,4 @@ date
 </LITemplate>
 
 
-<!-- vim:set syntax=mhonarc:sw=2: -->
-
 <!-- ------------------------------------------------------------------------ -->
-<!-- vim:set syntax=mhonarc:sw=2: -->
index 49e6db0..c25d87e 100644 (file)
@@ -2,6 +2,7 @@ include/conf.d/README
 
 bin/devel/modules_status
 bin/devel/tplgettext.php
+bin/devel/lists.foreach_template.py
 
 bin/xhtml/get_classes.pl
 bin/xhtml/validate.pl
index e96ea3d..dbc17b4 100644 (file)
@@ -23,7 +23,7 @@
 </h1>
 
 {dynamic}
-{if !$smarty.post}
+{if !$smarty.post.action}
 
 <p class="normal">
   Tu peux régler quelques paramètres qui apparaîtront sur les messages lorsque 
index ec6c26f..3de8076 100644 (file)
 <h1>
   Lettre de Polytechnique.org
 </h1>
-<p>
-Tu trouveras ici les archives de la lettre d'information de Polytechnique.org.  Pour t'abonner à
-cette lettre, il te suffit de te <a href="{"listes/"|url}">rendre sur la page des listes</a>.
-</p>
 
 <p>
 <strong>Pour demander l'ajout d'une annonce dans la prochaine lettre mensuelle</strong>,
index f43b581..bbc7dfc 100755 (executable)
@@ -20,7 +20,6 @@ done
 echo "BE CAREFUL :
 
 * scripts/ is now essentially in bin/
-  (with for this release, the inner path unchanged)
   --> have to modify crons
   --> have to modify xml-rpc path in the daemontools