phpDocumentor lodeladmin
[ class tree: lodeladmin ] [ index: lodeladmin ] [ all elements ]

Source for file logout.php

Documentation is available at logout.php

  1. <?php
  2. /**
  3.  * Fichier logout de lodeladmin - Ce fichier est quasiment identique au fichier logout.php dans
  4.  * le package lodel/source
  5.  *
  6.  * PHP versions 4 et 5
  7.  *
  8.  * LODEL - Logiciel d'Edition ELectronique.
  9.  *
  10.  * Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos
  11.  * Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
  12.  * Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou
  13.  * Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  14.  * Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  15.  * Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  16.  *
  17.  * Home page: http://www.lodel.org
  18.  *
  19.  * E-Mail: lodel@lodel.org
  20.  *
  21.  * All Rights Reserved
  22.  *
  23.  * This program is free software; you can redistribute it and/or modify
  24.  * it under the terms of the GNU General Public License as published by
  25.  * the Free Software Foundation; either version 2 of the License, or
  26.  * (at your option) any later version.
  27.  *
  28.  * This program is distributed in the hope that it will be useful,
  29.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  31.  * GNU General Public License for more details.
  32.  *
  33.  * You should have received a copy of the GNU General Public License
  34.  * along with this program; if not, write to the Free Software
  35.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  36.  *
  37.  * @author Ghislain Picard
  38.  * @author Jean Lamy
  39.  * @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  40.  * @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  41.  * @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  42.  * @licence http://www.gnu.org/copyleft/gpl.html
  43.  * @version CVS:$Id:
  44.  * @package lodeladmin
  45.  */
  46.  
  47. require 'lodelconfig.php';
  48. require 'auth.php';
  49. $name addslashes($_COOKIE[$sessionname]);
  50.  
  51. require_once 'connect.php';
  52. $time time()-1;
  53. $db->execute(lq("DELETE FROM #_TP_session WHERE name='"$name"'")) or dberror();
  54. setcookie($sessionname,"",$time,$urlroot);
  55.  
  56. require_once 'func.php';
  57.  
  58. header ('Location: http://'$_SERVER['SERVER_NAME']($_SERVER['SERVER_PORT'':'$_SERVER['SERVER_PORT''')$urlroot);
  59. exit;
  60. ?>

Documentation generated on Tue, 17 Jun 2008 05:07:57 +0200 by phpDocumentor 1.4.0a2