Suppression de PEAR.
Le mode de connexion ldap reste a tester.
This commit is contained in:
parent
ffd0fdeb21
commit
89d4abc264
@ -18,8 +18,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -31,8 +29,7 @@ if (!empty ($_SERVER["REMOTE_USER"]))
|
|||||||
die("La déconnection ne fonctionne actuellement que pour l'authentification par pear");
|
die("La déconnection ne fonctionne actuellement que pour l'authentification par pear");
|
||||||
|
|
||||||
include_once("../conf/conf.php");
|
include_once("../conf/conf.php");
|
||||||
require_once("../master.inc.php");
|
require_once("../main.inc.php");
|
||||||
require_once(PEAR_PATH."/Auth/Auth.php");
|
|
||||||
|
|
||||||
// Module Phenix
|
// Module Phenix
|
||||||
if ($conf->phenix->enabled && $conf->phenix->cookie)
|
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);
|
dolibarr_syslog("End session in DOLSESSID_".$dolibarr_main_db_name);
|
||||||
|
|
||||||
|
session_destroy();
|
||||||
session_name("DOLSESSID_".$dolibarr_main_db_name);
|
session_name("DOLSESSID_".$dolibarr_main_db_name);
|
||||||
session_start();
|
session_start();
|
||||||
session_unregister("dol_login");
|
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");
|
header("Location: ".DOL_URL_ROOT."/index.php");
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user