dolibarr/htdocs/user/logout.php

43 lines
1.3 KiB
PHP
Raw Normal View History

2003-08-30 14:17:08 +02:00
<?PHP
2004-07-27 16:56:03 +02:00
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
2003-08-30 14:17:08 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/
/**
* Pour se d<EFBFBD>connecter
* @package User
*/
if (!empty ($_SERVER["REMOTE_USER"]))
die("La d&eacute;connection ne fonctionne actuellement que pour l'authentification par pear");
2004-07-27 16:56:03 +02:00
include_once("../conf/conf.php");
2004-07-27 16:59:53 +02:00
define('DOL_DOCUMENT_ROOT', $dolibarr_main_document_root);
2004-07-27 16:56:03 +02:00
require_once "../includes/pear/Auth/Auth.php";
$a = new DOLIAuth("DB");
2003-08-30 11:27:49 +02:00
$a->setShowLogin (false);
$a->start();
if ($a->getAuth())
$a->logout();
2004-07-27 16:56:03 +02:00
header("Location: ../");
2003-08-30 11:27:49 +02:00
?>