add a readme file to the top level AContent directory
[acontent.git] / logout.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 define('TR_INCLUDE_PATH', 'include/');
14 require(TR_INCLUDE_PATH.'vitals.inc.php');
15
16 // unset all session variables
17 session_unset();
18 $_SESSION = array();
19
20 $msg->addFeedback('LOGOUT');
21 header('Location: index.php');
22 exit;
23 ?>