forked from web-cyradm/web-cyradm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
92 lines (82 loc) · 2.3 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
if (!defined('WC_BASE')) define('WC_BASE', dirname(__FILE__));
$ref=WC_BASE."/index.php";
if ($ref!=$_SERVER['SCRIPT_FILENAME']){
header("Location: index.php");
exit();
}
?>
<tr>
<td width="10"> </td>
<td valign="top">
<?php
logger(sprintf("LOGOUT : %s %s %s %s %s%s", $_SERVER['REMOTE_ADDR'], $_SESSION['user'], $_SERVER['HTTP_USER_AGENT'], $_SERVER['HTTP_REFERER'], $_SERVER['REQUEST_METHOD'], "\n"));
$_SESSION = array();
//print session_id();
if(session_destroy()){
/*
print "<html>";
print "<title>Web-cyradm</title>";
print "<meta http-equiv=Content-Type content=text/html; charset=iso-8859-1>";
print "</head>";
print "<body bgcolor=#FFFFFF text=#000000 leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>";
print "<form name=form1 method=post action=>";
*/
?>
<table width="100%" border="0" style="height: 100%;">
<tr>
<td align="center" valign="middle">
<table width="450" border="0" cellpadding="1"
cellspacing="1" style="height: 150px;">
<tr>
<td bgcolor="#000000">
<table border="0" bgcolor="#FFFFFF"
cellpadding="0" cellspacing="0"
width="450" style="height: 150px;">
<tr>
<td bgcolor="#000666"
style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #fff; font-weight: bold;">
Web-cyradm
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<p align="center"
style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #000; ">
<?php print _("Thank you for using Web-cyradm");?>
</p>
<p align="center"
style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #000; font-weight: bold;">
<?php print _("You are logged out");?>
</p>
<p align="center"
style="font-family: Verdana, Arial, Helvetica, sans-serif; color: #000; ">
<?php print _("If you like to login click");?>
<a class="navi" href="index.php"><?php
print _("here");
?></a>
</p>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--
</form>
</body>
</html>
-->
<?php
}
?>
</td></tr>