summaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'logout.php')
-rw-r--r--logout.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/logout.php b/logout.php
new file mode 100644
index 0000000..749816f
--- /dev/null
+++ b/logout.php
@@ -0,0 +1,20 @@
+<?php
+// $Header: /cvsroot/bitweaver/_bit_users/logout.php,v 1.1 2005/06/19 05:12:22 bitweaver Exp $
+// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
+// All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
+// Initialization
+$bypass_siteclose_check = 'y';
+require_once( '../bit_setup_inc.php' );
+global $gBitSystem;
+// go offline in Live Support
+if ($gBitSystem->isPackageActive( 'LIVE_SUPPORT_PKG_NAME' ) ) {
+ include_once( LIVE_SUPPORT_PKG_PATH.'ls_lib.php' );
+ if ($lslib->get_operator_status($user) != 'offline') {
+ $lslib->set_operator_status($user, 'offline');
+ }
+}
+$gBitUser->logout();
+header ("location: ".$gBitSystem->getDefaultPage());
+exit;
+?>