-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
106 lines (100 loc) · 2.44 KB
/
index.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?
// $filepath = '/home/analogue/public_html/www.glop.org/lineage2/';
$filename = 'cache.txt';
$mtime = filemtime($filename);
$difftime = time() - $mtime;
if ($difftime > 60)
include('update.php');
?>
<html>
<head>
<title>Lineage 2 Server Status</title>
<meta http-equiv="Refresh" content="60;URL=http://www.glop.org/lineage2/" />
<style type="text/css">
body {
font-family: Verdana, sans-serif;
font-size: 8pt;
color: white;
background-color: #0B283B;
}
img {
border: 0;
}
td.left {
padding-left: 1em;
}
td.right {
padding-right: 1em;
text-align: right;
}
table.status {
background: url("bg.gif");
width: 192px;
font-size: 8pt;
font-weight: bold;
}
.yellow {
color: yellow;
background-color: transparent;
}
.up {
color: #4f4;
background-color: transparent;
}
.down {
color: red;
background-color: transparent;
}
td.top {
padding-bottom: .5em;
}
td.full_line {
text-align: center;
padding-top: 1em;
padding-left: 1em;
padding-right: 1em;
font-size: 7pt;
}
td.full_line_small {
text-align: center;
padding-top: 1em;
padding-left: 1em;
padding-right: 1em;
font-size: 6pt;
}
a {
color: #97E6ED;
background-color: transparent;
text-decoration: none;
}
a:hover {
color: #D9DEE3;
background-color: transparent;
text-decoration: underline;
}
</style>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-107561-2";
urchinTracker();
</script>
</head>
<body>
<table width="100%" height="100%" cellspacing="0" cellpadding="0"><tr><td align="center">
<table cellspacing="0" cellpadding="0" class="status" border="0">
<tr><td colspan="2" class="top"><img src="up.gif" /></td></tr>
<? include($filename); ?>
<tr><td colspan="2" class="full_line">Updated <?=$difftime?> second<? if($difftime > 1) echo 's'; ?> ago</td></tr>
<tr><td colspan="2" class="full_line_small">
<?/*<a href="history.html">Graph</a> |
<a href="http://www.glop.org/forum/viewforum.php?id=2">Forum</a> |*/?>
<a href="backend.txt">Backend</a> |
<a href="https://www.paypal.com/xclick/business=analogue%40glop.org&item_name=Lineage+2+Server+Status&no_note=1¤cy_code=EUR">PayPal</a> |
<a href="http://flattr.com/thing/6354/Lineage-2-Server-Status">Flattr</a>
</td></tr>
<tr><td colspan="2"><img src="down.gif" /></td></tr>
</table>
</td></tr></table>
</body>
</html>