From 02044e129ab8fe114e77bab5ae516963fa1ad451 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Thu, 14 Oct 2004 18:36:46 +0000 Subject: [PATCH] let deconnexion be exit for suid cases --- htdocs/deconnexion.php | 4 +++- htdocs/exit.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/deconnexion.php b/htdocs/deconnexion.php index 417758b..e23b2b7 100644 --- a/htdocs/deconnexion.php +++ b/htdocs/deconnexion.php @@ -18,11 +18,13 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: deconnexion.php,v 1.5 2004-09-02 18:23:01 x2000habouzit Exp $ + $Id: deconnexion.php,v 1.6 2004-10-14 18:36:46 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); +if (isset($_SESSION['suid'])) { require('./exit.php'); } + if (isset($_SESSION['log'])) { if (isset($_SERVER['HTTP_REFERER'])) $ref = $_SERVER['HTTP_REFERER']; diff --git a/htdocs/exit.php b/htdocs/exit.php index 7d33755..30f184f 100644 --- a/htdocs/exit.php +++ b/htdocs/exit.php @@ -18,10 +18,10 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: exit.php,v 1.6 2004-09-02 19:39:19 x2000habouzit Exp $ + $Id: exit.php,v 1.7 2004-10-14 18:36:46 x2000habouzit Exp $ ***************************************************************************/ -require("auto.prepend.inc.php"); +require_once("auto.prepend.inc.php"); new_skinned_page('index.tpl',AUTH_MDP); if (isset($_SESSION['suid'])) { -- 2.1.4