forked from opendocman/opendocman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
logout.php
77 lines (69 loc) · 3.18 KB
/
logout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/*
logout.php - provides logout functionality
Copyright (C) 2002-2011 Stephen Lawrence Jr.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
include('odm-load.php');
// If kerbauth, then display warning about shutting down browser
session_start();
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy the session.
session_destroy();
if ($GLOBALS["CONFIG"]["authen"] =='kerbauth') {
?>
<html>
<BODY bgcolor="#FFFFFF" link="#000000" vlink="#000000" background="images/background_blue.gif">
<TABLE width="633" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="4"> </td>
<TD>
<TABLE border="0" cellpadding="0" cellspacing="0" width="620">
<TR>
<TD width="100%" align="LEFT" BGCOLOR="#31639C"><IMG SRC="images/blue_left.gif" WIDTH="5" HEIGHT="16" ALIGN="top"><FONT face="Arial" size="-1" color="#FFFFFF"><B> Thank you for using OpenDocMan</FONT></B></TD>
</TR>
<TR>
<TD width="100%" align="LEFT" BGCOLOR="#FFCE31">
<IMG SRC="images/logout_logo.gif" align="left"><H2>Logging off...</H2>
</TD>
</TR>
<TR>
<TD align="left">
<IMG src="/images/white_dot.gif" height="8"><BR>
<FONT face="ARIAL" color="#000000" size="-1">OpenDocMan, and other campus web systems, use a cookie to store your credentials for access. This cookie is kept only in your computers memory and not saved to disk for security purposes. In order to remove this cookie from memory you must completely exit your browser. The LOGOUT button below will close the current browser window, but this may not exit your browser software completely.
<P>
<B>Macintosh Users:</B> Choose 'Quit' from the 'File' menu to be sure the browser is completely exited. <P>
<B>PC/Windows Users:</B> Close off all browser windows by clicking the 'X' icon in the upper right of the window. Be sure all browser windows are closed.
<P>
</font>
<P>
<FORM NAME="CM">
<FONT face="ARIAL" color="#000000" size="-2"> <INPUT TYPE="BUTTON" VALUE="LOGOUT" Onclick="top.close();"></font>
<FONT face="ARIAL" color="#000000" size="-2"> </font>
</TD>
</TR>
<TR><TD>
</TD>
</TR>
</TABLE>
</FORM>
<?php
draw_footer();
} else {// mysql auth, so just kill session and show login prompt
session_start();
unset($_SESSION['uid']);
// Call the plugin API
callPluginMethod('onAfterLogout');
header('Location:index.php');
}