[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com> 4 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 * 20 * $Id: logout.php,v 1.13 2005/07/08 20:30:11 eldy Exp $ 21 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/user/logout.php,v $ 22 * 23 */ 24 25 /** 26 \file htdocs/user/logout.php 27 \brief Fichier de deconnexion 28 */ 29 30 if (!empty ($_SERVER["REMOTE_USER"])) 31 die("La déconnection ne fonctionne actuellement que pour l'authentification par pear"); 32 33 include_once("../conf/conf.php"); 34 define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root); 35 36 require_once "../includes/pear/Auth/Auth.php"; 37 38 $a = new DOLIAuth("DB"); 39 $a->setSessionName("DOLSESSID_".$dolibarr_main_db_name); 40 $a->setShowLogin (false); 41 $a->start(); 42 if ($a->getAuth()) 43 $a->logout(); 44 header("Location: ../"); 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |