From: Pierre Habouzit (MadCoder Date: Mon, 18 Apr 2005 14:09:07 +0000 (+0000) Subject: forgot about archives + check fix X-Git-Tag: xorg/old~192 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8ab589a0fcab953644e5307f7450fdc403fbe70c;p=platal.git forgot about archives + check fix git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-570 --- diff --git a/htdocs.net/css/lists.archives.css b/htdocs.net/css/lists.archives.css new file mode 120000 index 0000000..4ab2946 --- /dev/null +++ b/htdocs.net/css/lists.archives.css @@ -0,0 +1 @@ +../../htdocs/css/lists.archives.css \ No newline at end of file diff --git a/htdocs.net/groupe/listes-archives.php b/htdocs.net/groupe/listes-archives.php new file mode 100644 index 0000000..d8ebbe7 --- /dev/null +++ b/htdocs.net/groupe/listes-archives.php @@ -0,0 +1,34 @@ +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/archives.php'); + +?> diff --git a/htdocs.net/groupe/listes-check.php b/htdocs.net/groupe/listes-check.php index b06adaf..f5f8465 100644 --- a/htdocs.net/groupe/listes-check.php +++ b/htdocs.net/groupe/listes-check.php @@ -24,7 +24,8 @@ if (!Env::has('liste')) header('Location: index.php'); $liste = strtolower(Env::get('liste')); new_admin_page('listes/check.tpl'); -require_once('lists.inc.php'); +$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')); diff --git a/htdocs/listes/archives.php b/htdocs/listes/archives.php index 89b1aa7..a8e66e9 100644 --- a/htdocs/listes/archives.php +++ b/htdocs/listes/archives.php @@ -19,16 +19,18 @@ * 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/archives.tpl', AUTH_COOKIE); -$page->addCssLink('css/lists.archives.css'); -require_once('lists.inc.php'); + new_skinned_page('listes/archives.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')); +} +$page->addCssLink('css/lists.archives.css'); if (list($det) = $client->get_members($liste)) { if ( substr($liste,0,5) != 'promo' && ( $det['ins'] || $det['priv'] ) && !$det['own'] && ($det['sub']<2) ) { $page->kill("La liste n'existe pas ou tu n'as pas le droit de la consulter");