From 89d4abc264b80985172cd21bb7ef8aa420784c2a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Dec 2007 00:02:26 +0000 Subject: [PATCH] Suppression de PEAR. Le mode de connexion ldap reste a tester. --- htdocs/user/logout.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/htdocs/user/logout.php b/htdocs/user/logout.php index 55b185a3aa8..5daae6db2b7 100644 --- a/htdocs/user/logout.php +++ b/htdocs/user/logout.php @@ -18,8 +18,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ - * */ /** @@ -31,8 +29,7 @@ if (!empty ($_SERVER["REMOTE_USER"])) die("La déconnection ne fonctionne actuellement que pour l'authentification par pear"); include_once("../conf/conf.php"); -require_once("../master.inc.php"); -require_once(PEAR_PATH."/Auth/Auth.php"); +require_once("../main.inc.php"); // Module Phenix if ($conf->phenix->enabled && $conf->phenix->cookie) @@ -43,15 +40,10 @@ if ($conf->phenix->enabled && $conf->phenix->cookie) dolibarr_syslog("End session in DOLSESSID_".$dolibarr_main_db_name); +session_destroy(); session_name("DOLSESSID_".$dolibarr_main_db_name); session_start(); session_unregister("dol_login"); -$a = new DOLIAuth("DB"); -$a->setSessionName("DOLSESSID_".$dolibarr_main_db_name); -$a->setShowLogin (false); -$a->start(); -if ($a->getAuth()) $a->logout(); - header("Location: ".DOL_URL_ROOT."/index.php"); ?>