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-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: signout.php,v 1.97 2006/10/05 21:59:04 stevetruckstuff Exp $
* 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)) {
/* If a user hits reload on the last page, $base_uri isn't set
* because it was deleted with the session. */
// 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', 'javascript_on');
foreach ($always_include as $var) {
$oTemplate->assign($var, (isset
($
$var) ? $
$var :
NULL));
// The error handler object is probably also not initialized on a refresh
require_once(SM_PATH .
'class/error.class.php');
$oErrorHandler =
new ErrorHandler($oTemplate,'error_message.tpl');
/* internal gettext functions will fail, if language is not set */
$oTemplate->assign('frame_top', $frame_top);
$oTemplate->display('signout.tpl');
$oTemplate->display('footer.tpl');
Documentation generated on Sat, 07 Oct 2006 16:13:35 +0300 by phpDocumentor 1.3.0RC6