-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (47 loc) · 1.6 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
<?php
$steamURL = "http://steamcommunity.com/groups/loaderror/memberslistxml/?xml=1";
$content = file_get_contents($steamURL, 0, stream_context_create(array(
"http" => array("timeout" => 1)
)));
if($content) {
$xml = new SimpleXMLElement($content);
$members = (int)$xml->groupDetails->memberCount;
$online = (int)$xml->groupDetails->membersOnline;
$playing = (int)$xml->groupDetails->membersInGame;
} else {
$members = $online = $playing = 0;
}
?><!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="loaderror">
<meta property="og:type" content="website">
<meta property="og:url" content="https://loaderror.de/">
<meta property="og:image" content="https://loaderror.de/loaderror.png">
<title>loaderror</title>
<link rel="stylesheet" href="css/loaderror.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Geo:400italic|Inconsolata:400,700">
<script src="js/loaderror.js"></script>
</head>
<body>
<header>
<h1>loaderror</h1>
<canvas id="c" style="height: 8px"></canvas>
</header>
<section>
<div>
<p><?php echo $members ?> <span>members</span></p>
<p><?php echo $online ?> <span>online</span></p>
<?php if($playing > 0): ?><p><?php echo $playing ?> <span>playing</span></p><?php endif; ?>
</div>
<div>
<p><a href="https://steamcommunity.com/groups/loaderror">Join us</a></p>
</div>
</section>
<footer>
<p>© 2015 loaderror - <a href="https://tbspace.de/impressum.html">Impressum</a></p>
</footer>
</body>
</html>