Source for file signout.php
Documentation is available at signout.php
-  * signout.php -- cleans up session and logs the user out 
-  *  Cleans up after the user. Resets cookies and terminates session. 
-  * @copyright 1999-2020 The SquirrelMail Project Team 
-  * @license http://opensource.org/licenses/gpl-license.php GNU Public License 
-  * @version $Id: signout.php 14845 2020-01-07 08:09:34Z pdontthink $ 
- /** This is the signout page */ 
- define('PAGE_NAME', 'signout'); 
-  * Include the SquirrelMail initialization file. 
- require ('../include/init.php');
- /* Erase any lingering attachments */ 
- if (!empty($compose_message) - &&  is_array($compose_messages)) {
 
-     foreach($compose_messages as $composeMessage) { 
-         $composeMessage->purgeAttachments(); 
- if (!- isset ($frame_top)) {
 
- $login_uri - =  'login.php';
 
-     // Status 303 header is disabled. PHP fastcgi bug. See 1.91 changelog. 
-     //header('Status: 303 See Other'); 
-     header("Location: $signout_page"); 
-     exit; /* we send no content if we're redirecting. */ 
- /* After a reload of signout.php, $oTemplate might not exist anymore. 
-  * Recover, so that we don't get all kinds of errors in that situation. */ 
- if ( !- isset ($oTemplate)- ||  !is_object($oTemplate) ) {
 
-     require_once(SM_PATH - .  'class/template/Template.class.php');
 
-     // We want some variables to always be available to the template 
-     $always_include - =  array('sTemplateID', 'icon_theme_path');
 
-     foreach ($always_include as $var) { 
-         $oTemplate->assign($var, (- isset (- $ $var)- ? $ $var- :  NULL));
 
- // The error handler object is probably also not initialized on a refresh 
- $oErrorHandler - =  new ErrorHandler($oTemplate,'error_message.tpl');
 
- /* internal gettext functions will fail, if language is not set */ 
- $oTemplate->assign('frame_top', $frame_top); 
- $oTemplate->assign('login_uri', $login_uri); 
- $oTemplate->display('signout.tpl'); 
- $oTemplate->display('footer.tpl'); 
 
	
		Documentation generated on Mon, 13 Jan 2020 04:23:33 +0100 by phpDocumentor 1.4.3