This repository has been archived by the owner on Apr 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
91 lines (87 loc) · 2.89 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
<?php
include "config.php";
$id = $_GET["id"];
if( $steam_key != "Get this from http://steamcommunity.com/dev/apikey") {
$playerarray = json_decode(file_get_contents('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' . $steam_key . '&steamids=' . $id . '&format=json'), true);
$username = htmlspecialchars($playerarray['response']['players'][0]['personaname']); // Username
} else {
Header( "Location: http://steamcommunity.com/dev/apikey" );
}
?>
<html>
<head>
<meta charset="UTF-8" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600,400&subset=cyrillic,cyrillic-ext,latin,greek-ext,greek,latin-ext,vietnamese' rel='stylesheet' type='text/css'>
<style>
* {
pointer-events: none;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
background-color: black;
}
h1 {
width: 100%;
font-size: 36pt;
height: 7%;
font-weight: 100;
padding: 12px 0px;
color: white;
font-family: 'Open Sans', sans-serif;
text-align: center;
}
.footer {
position: fixed;
bottom: 7px;
width: 100%;
z-index: 2;
padding-top: 20px;
background-color: brown;
}
.title {
background: url(img/background.png) repeat;
padding-bottom: 20px;
z-index: 2;
}
.overlay {
position: fixed;
background: url(img/overlays/1.png);
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 1;
background-repeat: repeat;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("#footer").slideDown(0, function() {
$(this).delay(5000).slideUp('slow').delay(10000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
});
$("#title").slideUp(0, function() {
$(this).delay(5000).slideDown('slow').delay(10000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
});
});
</script>
</head>
<body>
<div class="overlay"></div>
<h1 id="title" class="title"><?php echo($banner_top); ?></h1>
<h1 id="footer" class="footer">Howdy, <?php echo($username); ?></h1>
<div id="video">
<iframe id="player" width="100%" height="100%" src="//www.youtube.com/embed/<?php print( GetRandomVideo() ); ?>?iv_load_policy=3&rel=0&autoplay=1&loop=1&showinfo=0&controls=0&playlist=<?php print( GeneratePlaylist() ); ?>" frameborder="0" allowfullscreen></iframe>
</div>
</body>
<?
if( static_list( $id, $playerVideos ) != false ){
print("<script>document.getElementById(\"video\").innerHTML = \"<iframe width='100%' height='100%' src='//www.youtube.com/embed/" . static_list( $id, $playerVideos ) . "?iv_load_policy=3&rel=0&autoplay=1&showinfo=0&controls=0' frameborder='0' allowfullscreen></iframe>\"</script>\"");
}
?>
<script>
document.getElementById("player").volume=0.2; // Controls volume
</script>
</html>