let deconnexion be exit for suid cases
authorx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 18:36:46 +0000 (18:36 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 18:36:46 +0000 (18:36 +0000)
htdocs/deconnexion.php
htdocs/exit.php

index 417758b..e23b2b7 100644 (file)
  *  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'];
index 7d33755..30f184f 100644 (file)
  *  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'])) {