-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathloading.php
More file actions
executable file
·209 lines (172 loc) · 5.27 KB
/
loading.php
File metadata and controls
executable file
·209 lines (172 loc) · 5.27 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?php //This file is subject to copyright - contact swampservers@gmail.com for more information. ?>
<?php
$type = preg_replace("/[^a-z]/", '', isset($_GET["map"]) ? explode("_",$_GET["map"])[0] : "cinema");
$music_settings = [
"greenroom" => "5cEiOwQXvy0",
"goosebumps" => "rsEeiIrJy4E",
"bloodswamps" => "X9qmfhg7Clw",
"islandvibes" => "cjdkDZ3BStk",
"holy" => "kQ-I-VQsvko",
"crickets" => "ih4_1FyVjaY",
"smile" => "vRF3zgF6Xao:7",
"temptationrag" => "Z21kNmtOx6I:10",
"garfield" => "bR5fPDVciSE",
"csgo" => "Rvi6c8toWJM",
"despicableme" => "axbUCR1nKRA"
];
$settings = [$type."wallpaper.jpg"];
if ($type == "cinema") {
$settings = ["v3wallpaper.jpg", "greenroom"];
if (date("m/d") == "06/19") {
$settings = ["v3wallpaper.jpg", "garfield"];
}
if (date("m") == "10") {
$settings = ["halloween.jpg", "bloodswamps"];
}
}
?>
<html>
<head>
<title>Swamp Servers LOADING...</title>
<style>
body {
background: black url(/s/loading/<?=$settings[0]?>) no-repeat center center fixed;
background-size: cover;
}
<?php if ($type == "cinema") {?>
div {
color: white;
font-family: cursive;
}
@font-face {
font-family: 'Righteous';
font-style: normal;
font-weight: 400;
src: local('Righteous'), local('Righteous-Regular'), url(https://fonts.gstatic.com/s/righteous/v5/w5P-SI7QJQSDqB3GziL8XVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
.sctext {
transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
-moz-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
-o-transform: translateX(-50%) translateY(-50%);
color: white;
}
<?php }?>
</style>
</head>
<body>
<?php if (isset($settings[1])) {
$musicsettings = explode(":", $music_settings[$settings[1]] );
?>
<div id="player" style="display:none;"></div>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '390',
width: '640',
videoId: '<?=$musicsettings[0]?>',
loop: 1,
events: {
'onReady': onPlayerReady
},
autoplay: 1,
enablejsapi: 1,
});
}
var player_ready = false;
function onPlayerReady(event) {
player_ready = true;
//event.target.setVolume(0);
<?php if (isset($musicsettings[1])) {?>
player.seekTo(<?=$musicsettings[1]?>);
<?php }?>
// document.getElementById("videoname").innerText = event.target.getVideoData().title;
}
var gotGameDetails = false;
function GameDetails(servername, serverurl, mapname, maxplayers, steamid, gamemode, volume) {
gotGameDetails = true;
player.setVolume(volume*100);
setInterval(function() {
if (player_ready && player.getPlayerState() != 0 && player.getPlayerState() != 1) {
player.playVideo();
}
}, 100);
//document.getElementById("output").innerText = mapname + " " + volume;
}
setTimeout(function() {
if (!gotGameDetails) { console.log("DEFAULT LOAD"); GameDetails("servername", "serverurl", "map_name", 128, "STEAM_ID", "gamemode", 1); }
}, 1000);
</script>
<div style="position: absolute;top: 50%;left:64px;">
<div class="sctext"><img src="/s/loading/sideways2.png"></div>
</div>
<div style="margin:32px;line-height:160%;position:fixed;bottom:0px;left:0px;right:0px;font-size:18px;text-align:center;">
<strong>Thought of the day:</strong><br>"<?php
$badwords = array(
" nig",
" kike",
" jew",
" fag",
" kkk ",
" klan ",
" lynch ",
" cum",
" cock",
" dick",
" ass ",
" butthole",
" asshole",
" anus",
" penis",
" vagina",
" fuck",
" puss",
" shit",
" suck",
" rape",
" rapist",
" nude",
" hitler",
" heil",
" fap",
" porn",
" anal",
);
$file = file($THOUGHTFILEPATH, FILE_IGNORE_NEW_LINES);
for ($i = 0; $i < 1000; $i++) {
$str = $file[rand(0, count($file) - 1)];
$str2 = " " . strtolower($str) . " ";
$ok = true;
foreach ($badwords as &$value) {
if (strpos($str2, $value) !== false) {
$ok = false;
}
}
if ($ok) {
echo $str;
break;
}
}
?>" <!--<br><em style="font-size:10pt;">(user submitted)</em>-->
</div>
<!--
<div style="margin:14px;position:fixed;left:0px;bottom:0px;font-size:12px;text-align:left;display:none;" id="videonameouter">
You're listening to:<br><span id="videoname" style="font-weight:bold;font-size:14px;">-</span>
</div>
-->
<?php }?>
<?php if ($type == "spades") {?>
<div style="font-family:monospace;margin:12px;line-height:160%;position:fixed;bottom:0px;left:0px;right:0px;font-size:18px;text-align:center;color:white;">
<strong>Gamemode is "Ace of Spades" in the GMod server browser</strong>
</div>
<?php }?>
<div id="output"></div>
</body>
</html>