git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-569
new_skinned_page('listes/admin.tpl', AUTH_MDP);
$page->setType($globals->asso('cat'));
$page->useMenu();
-$page->assign('ml_index', 'listes.php');
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
--- /dev/null
+<?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 *
+ ***************************************************************************/
+
+require_once 'xnet.inc.php';
+if (!Env::has('liste')) header('Location: index.php');
+$liste = strtolower(Env::get('liste'));
+
+new_admin_page('listes/check.tpl');
+require_once('lists.inc.php');
+
+require_once('lists.inc.php');
+$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
+require(dirname(dirname(dirname(__FILE__))).'/htdocs/listes/check.php');
+
+?>
--- /dev/null
+<?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 *
+ ***************************************************************************/
+
+require_once 'xnet.inc.php';
+if (!Env::has('liste')) header('Location: listes.php');
+$liste = strtolower(Env::get('liste'));
+
+new_skinned_page('listes/delete.tpl', AUTH_MDP);
+$page->setType($globals->asso('cat'));
+$page->useMenu();
+
+require_once('lists.inc.php');
+$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
+require(dirname(dirname(dirname(__FILE__))).'/htdocs/listes/delete.php');
+
+?>
--- /dev/null
+<?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 *
+ ***************************************************************************/
+
+require_once 'xnet.inc.php';
+if (!Env::has('liste')) header('Location: listes.php');
+$liste = strtolower(Env::get('liste'));
+
+new_skinned_page('listes/members.tpl', AUTH_MDP);
+$page->setType($globals->asso('cat'));
+$page->useMenu();
+
+require_once('lists.inc.php');
+$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
+require(dirname(dirname(dirname(__FILE__))).'/htdocs/listes/members.php');
+
+?>
--- /dev/null
+<?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 *
+ ***************************************************************************/
+
+require_once 'xnet.inc.php';
+if (!Env::has('liste')) header('Location: listes.php');
+$liste = strtolower(Env::get('liste'));
+
+if (preg_match("!(?:[a-z0-9]+\\.)?{".$globals->asso('mail_domain')."}_(.*)!", $liste, $matches)) {
+ header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
+}
+
+new_skinned_page('listes/moderate.tpl', AUTH_MDP);
+$page->setType($globals->asso('cat'));
+$page->useMenu();
+
+require_once('lists.inc.php');
+$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
+require(dirname(dirname(dirname(__FILE__))).'/htdocs/listes/moderate.php');
+
+?>
new_skinned_page('listes/options.tpl', AUTH_MDP);
$page->setType($globals->asso('cat'));
$page->useMenu();
-$page->assign('ml_index', 'listes.php');
require_once('lists.inc.php');
$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
--- /dev/null
+<?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 *
+ ***************************************************************************/
+
+require_once 'xnet.inc.php';
+if (!Env::has('liste')) header('Location: listes.php');
+$liste = strtolower(Env::get('liste'));
+
+new_admin_page('listes/soptions.tpl');
+$page->setType($globals->asso('cat'));
+$page->useMenu();
+
+require_once('lists.inc.php');
+$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
+require(dirname(dirname(dirname(__FILE__))).'/htdocs/listes/soptions.php');
+
+?>
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once("xorg.inc.php");
-if (!Env::has('liste')) header('Location: index.php');
-$liste = strtolower(Env::get('liste'));
+if (!$page) {
+ require_once("xorg.inc.php");
+ if (!Env::has('liste')) header('Location: index.php');
+ $liste = strtolower(Env::get('liste'));
-new_admin_page('listes/check.tpl');
-require_once('lists.inc.php');
+ new_admin_page('listes/check.tpl');
+ require_once('lists.inc.php');
-$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+}
if(Post::has('correct')) {
$client->check_options($liste, true);
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once("xorg.inc.php");
-if (!Env::has('liste')) header('Location: index.php');
-$liste = strtolower(Env::get('liste'));
+if (!$page) {
+ require_once("xorg.inc.php");
+ if (!Env::has('liste')) header('Location: index.php');
+ $liste = strtolower(Env::get('liste'));
-new_skinned_page('listes/delete.tpl', AUTH_MDP);
-require_once('lists.inc.php');
-
-$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+ new_skinned_page('listes/delete.tpl', AUTH_MDP);
+ require_once('lists.inc.php');
+ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+}
if ( Post::get('valid') == 'OUI' && $client->delete_list($liste, Post::getBool('del_archive')) ) {
$page->assign('deleted', true);
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once("xorg.inc.php");
-if (!Env::has('liste')) header('Location: index.php');
-$liste = strtolower(Env::get('liste'));
+if (!$page) {
+ require_once("xorg.inc.php");
+ if (!Env::has('liste')) header('Location: index.php');
+ $liste = strtolower(Env::get('liste'));
-new_skinned_page('listes/members.tpl', AUTH_COOKIE);
-require_once('lists.inc.php');
+ new_skinned_page('listes/members.tpl', AUTH_COOKIE);
+ require_once('lists.inc.php');
-$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+}
if(Get::has('del')) {
$client->unsubscribe($liste);
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once("xorg.inc.php");
-if (!Env::has('liste')) header('Location: index.php');
-$liste = strtolower(Env::get('liste'));
+if (!$page) {
+ require_once("xorg.inc.php");
+ if (!Env::has('liste')) header('Location: index.php');
+ $liste = strtolower(Env::get('liste'));
-if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}_(.*)!", $liste, $matches)) {
- header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
-}
+ if (preg_match("!(?:[a-z0-9]+\\.)?{$globals->mail->domain}_(.*)!", $liste, $matches)) {
+ header("Location: {$_SERVER['PHP_SELF']}?liste={$matches[1]}");
+ }
-new_skinned_page('listes/moderate.tpl', AUTH_MDP);
-require_once('lists.inc.php');
+ new_skinned_page('listes/moderate.tpl', AUTH_MDP);
+ require_once('lists.inc.php');
+
+ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+}
-$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
$page->register_modifier('qpd','quoted_printable_decode');
if(Env::has('sadd')) {
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-require_once("xorg.inc.php");
-if (!Env::has('liste')) header('Location: index.php');
-$liste = strtolower(Env::get('liste'));
+if (!$page) {
+ require_once("xorg.inc.php");
+ if (!Env::has('liste')) header('Location: index.php');
+ $liste = strtolower(Env::get('liste'));
-new_admin_page('listes/soptions.tpl');
-require_once('lists.inc.php');
+ new_admin_page('listes/soptions.tpl');
+ require_once('lists.inc.php');
-$client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+ $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'));
+}
if(Post::has('submit')) {
$values = $_POST;
}
// }}}
+// {{{ function new_admin_page()
+
+function new_admin_page($tpl_name)
+{
+ _new_page(SKINNED, $tpl_name, AUTH_MDP, true);
+}
+
+// }}}
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker:
?>
{if $deleted}
-<p>[<a href='index.php'>Voir toutes les listes</a>]</p>
+<p>[<a href='{if $it_is_xnet}listes.php{else}index.php{/if}'>Voir toutes les listes</a>]</p>
<p class="erreur">La liste a été détruite !</p>
{else}
{else}
[liste des membres]
{/if}
+ {if !$it_is_xnet}
{if $on neq trombi}
[<a href='{$prefix}trombi.php?liste={$smarty.request.liste}'>trombinoscope</a>]
{else}
[trombinoscope]
{/if}
+ {/if}
{if $on neq archives}
[<a href='{$prefix}archives.php?liste={$smarty.request.liste}'>archives</a>]
{else}