From: Pierre Habouzit (MadCoder Date: Mon, 18 Apr 2005 16:29:57 +0000 (+0000) Subject: various fixes + deconnexion.php X-Git-Tag: xorg/old~190 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e12fc1b945f602485cbaf908d772ad3e320da0bc;p=platal.git various fixes + deconnexion.php git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-572 --- diff --git a/htdocs.net/deconnexion.php b/htdocs.net/deconnexion.php new file mode 100644 index 0000000..9672536 --- /dev/null +++ b/htdocs.net/deconnexion.php @@ -0,0 +1,9 @@ +run(); + +?> diff --git a/htdocs.net/groupes.php b/htdocs.net/groupes.php index 7f44015..e2f73c4 100644 --- a/htdocs.net/groupes.php +++ b/htdocs.net/groupes.php @@ -6,7 +6,7 @@ exit; } - new_skinned_page('xnet/groupes.tpl', AUTH_PUBLIC); + new_page('xnet/groupes.tpl', AUTH_PUBLIC); $res = $globals->xdb->iterator("SELECT id,nom FROM groupex.dom WHERE FIND_IN_SET({?}, cat) ORDER BY nom", $cat); $page->assign('doms', $res); diff --git a/include/xnet/session.inc.php b/include/xnet/session.inc.php index c1ff469..0e16fa3 100644 --- a/include/xnet/session.inc.php +++ b/include/xnet/session.inc.php @@ -138,6 +138,7 @@ class XnetSession extends DiogenesCoreSession function may_update() { global $globals; + if (!$globals->asso('id')) { return false; } if (has_perms()) { return true; } $res = $globals->xdb->query( "SELECT perms @@ -151,6 +152,7 @@ function may_update() { function is_member() { global $globals; + if (!$globals->asso('id')) { return false; } $res = $globals->xdb->query( "SELECT COUNT(*) FROM groupex.membres diff --git a/templates/xnet/deconnexion.tpl b/templates/xnet/deconnexion.tpl new file mode 100644 index 0000000..7aaa6c6 --- /dev/null +++ b/templates/xnet/deconnexion.tpl @@ -0,0 +1,28 @@ +{*************************************************************************** + * 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 * + ***************************************************************************} + + +
+ Au revoir ! +
+ Tu as bien été déconnecté du site Polytechnique.net. +
+ +{* vim:set et sw=2 sts=2 sws=2: *}