* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: admin.php,v 1.8 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: admin.php,v 1.9 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_skinned_page('listes/admin.tpl', AUTH_MDP, true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: check.php,v 1.3 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: check.php,v 1.4 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_admin_page('listes/check.tpl', true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: members.php,v 1.7 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: members.php,v 1.8 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_skinned_page('listes/members.tpl', AUTH_COOKIE, true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: moderate.php,v 1.15 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: moderate.php,v 1.16 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
if(preg_match('!(?:[a-z0-9]+\.)?polytechnique\.org-(.*)!', $liste,$matches)) {
header('Location: ?liste='.$matches[1]);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: options.php,v 1.5 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: options.php,v 1.6 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_skinned_page('listes/options.tpl', AUTH_MDP, true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: soptions.php,v 1.4 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: soptions.php,v 1.5 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_admin_page('listes/soptions.tpl', true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: trombi.php,v 1.9 2004-10-30 15:45:40 x2000habouzit Exp $
+ $Id: trombi.php,v 1.10 2004-10-31 14:42:36 x2000habouzit Exp $
***************************************************************************/
if(empty($_REQUEST['liste'])) header('Location: index.php');
-$liste = $_REQUEST['liste'];
+$liste = strtolower($_REQUEST['liste']);
require("auto.prepend.inc.php");
new_skinned_page('listes/trombi.tpl', AUTH_COOKIE, true);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: valid_listes.inc.php,v 1.2 2004-10-08 15:03:14 x2000habouzit Exp $
+ $Id: valid_listes.inc.php,v 1.3 2004-10-31 14:42:37 x2000habouzit Exp $
***************************************************************************/
class ListeReq extends Validate {
$ret = $client->create_list('polytechnique.org', $this->liste, $this->desc,
$this->advertise, $this->modlevel, $this->inslevel,
$this->owners, $this->members);
+ $liste = strtolower($this->liste);
if($ret) {
- $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$this->liste}', 'liste')");
- $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$this->liste}-owner', 'liste')");
- $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$this->liste}-admin', 'liste')");
- $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$this->liste}-bounces', 'liste')");
+ $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$liste}', 'liste')");
+ $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$liste}-owner', 'liste')");
+ $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$liste}-admin', 'liste')");
+ $globals->db->query("INSERT INTO aliases (alias,type) VALUES('{$liste}-bounces', 'liste')");
}
return $ret;
}
#* Foundation, Inc., *
#* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
#***************************************************************************
-# $Id: mailman-rpc.py,v 1.67 2004-10-28 20:28:42 x2000habouzit Exp $
+# $Id: mailman-rpc.py,v 1.68 2004-10-31 14:42:37 x2000habouzit Exp $
#***************************************************************************
import base64, MySQLdb, os, getopt, sys, MySQLdb.converters, sha, signal
def create_list((userdesc,perms),vhost,listname,desc,advertise,modlevel,inslevel,owners,members):
if perms != 'admin':
return 0
- name = vhost+'-'+listname;
+ name = vhost.lower()+'-'+listname.lower();
if Utils.list_exists(name):
return 0