-
Notifications
You must be signed in to change notification settings - Fork 46
/
logout.php
75 lines (59 loc) · 2.04 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
<?php include("configs.php"); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>World of Warcraft</title>
<link rel="stylesheet" type="text/css" href="login/static/local-common/css/common.css?v15"/>
<link rel="stylesheet" type="text/css" href="login/static/_themes/bam/css/master.css?v1"/>
<script type="text/javascript" src="login/static/local-common/js/third-party/jquery-1.4.2.min.js?v15"></script>
<script type="text/javascript" src="login/static/local-common/js/core.js?v15"></script>
<script>
var targetOrigin = "<?php echo $website['address']; ?>";
function updateParent(action, key, value) {
var obj = { action: action };
if (key) obj[key] = value;
parent.postMessage(JSON.stringify(obj), targetOrigin);
return false;
}
function checkDefaultValue(input, isPass) {
if (input.value == input.title)
input.value = "";
if (isPass)
input.type = "password";
}
</script>
</head>
<body>
<div id="embedded-login">
<h2>World of Warcraft - Logging Out</h2>
<style type="text/css">
.loader {
width:24px;
height:24px;
background: url("wow/static/images/loaders/canvas-loader.gif") no-repeat;
}
</style>
<br />
<center>
<h3>Logging Out</h3><br />
<div class="loader"></div>
<?php session_unset(); session_destroy(); ?>
<meta http-equiv="refresh" content="2;url=index.php"/>
</center>
<script type="text/javascript">
$(function() {
$("#ssl-trigger").click(function() {
updateParent('onload', 'height', $(document).height() + 76);
$("#thawteseal").show();
});
$("#help-links a").click(function() {
updateParent('redirect', 'url', this.href);
return false;
});
$('#accountName').focus();
updateParent('onload', 'height', $(document).height());
});
</script>
</div>
</body>
</html>