forked from opendocman/opendocman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
92 lines (84 loc) · 3.79 KB
/
logout.php
File metadata and controls
92 lines (84 loc) · 3.79 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/*
* Copyright (C) 2000-2021. Stephen Lawrence
*
* 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.
*/
// Provides logout functionality
include('odm-load.php');
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"><b> Thank you
for using OpenDocMan</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>
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>
<p>
<form name="CM">
<input type="button" value="LOGOUT" Onclick="top.close();">
</form>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?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');
}