This repository has been archived by the owner on May 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.php
245 lines (215 loc) · 8.4 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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<?php
//Needed varibles
//you need to put a roblox cookie here blame roblox
$cookie = "_|WARNING:-DO-NOT-SHARE-THIS...";
$pageName = "Condos";
$blurAmount = "10px";
$backgroundImage = "https://www.teahub.io/photos/full/11-111196_gif-wallpaper.gif";
$discordInvite = "https://discord.gg/";
$iconUrl = "https://images.rbxcdn.com/3b43a5c16ec359053fef735551716fc5.ico"; // Icon of the site
$webhook = "https://discord.com/api/webhooks/0/no"; // Out of games and error webhook
$gameIds = array(// List of gamesIDs
6674398905,
);
$githubCredits = false; //Add in the bottom right my github link
//Embed data
$enableEmbed = True; //IDK if i made the toggle right lol
$embedHexColor = "#85bb65"; //Needs to be hex code
$embedTitle = "Condos"; //Title for embed
$embedDescription = "List of Condos"; //Description for embed
// /‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\
// | DON'T MESS WITH ANY THING PAST UNLESS YOU KNOW WHAT YOU ARE DOING! |
// \____________________________________________________________________/
//Discord out of games and error webhook
function postToDiscord($message){
$json_data = json_encode(["content" => $message], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
$ch = curl_init( $webhook );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
curl_close( $ch );
}
shuffle($gameIds);
function sendCsrfRequest(){ //Send a request to get the CSRF token from roblox
$csrfUrl = "https://auth.roblox.com/v2/login";
function grabCsrfToken( $curl, $header_line ) { //Filter through the Roblox headers
if(strpos($header_line, "x-csrf-token") !== false){
global $csrf;
$csrf = ltrim($header_line, "x-csrf-token: "); // set x-csrf-token var
}
return strlen($header_line);
}
$csrfCurl = curl_init();
curl_setopt($csrfCurl, CURLOPT_URL, $csrfUrl);
curl_setopt($csrfCurl, CURLOPT_POST, true);
curl_setopt($csrfCurl, CURLOPT_HEADERFUNCTION, "grabCsrfToken");
curl_setopt($csrfCurl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($csrfCurl,CURLOPT_RETURNTRANSFER,1);
curl_exec($csrfCurl);
curl_close($csrfCurl);
}
function checkGame($placeId){ //Finds what game works
global $csrf, $cookie, $isPlayable;
$gameUrl = "https://games.roblox.com/v1/games/multiget-place-details?placeIds=$placeId";
$gameCurl = curl_init();
curl_setopt($gameCurl, CURLOPT_URL, $gameUrl);
$headers = array("X-CSRF-TOKEN: ".$csrf);
curl_setopt($gameCurl, CURLOPT_COOKIE, '.ROBLOSECURITY='.$cookie);
curl_setopt($gameCurl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($gameCurl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($gameCurl, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($gameCurl, CURLOPT_RETURNTRANSFER,1);
$resp = curl_exec($gameCurl);
curl_close($gameCurl);
$data = json_decode($resp);
return $data[0]->isPlayable; //Get if you can play or not
}
try {
sendCsrfRequest();
} catch (Error $e) {}
$versionId = "1.0.2"
?>
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<title>
<?php echo($pageName); ?>
</title>
<link rel="icon" href="<?php echo($iconUrl); ?>">
<style>
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css');
@keyframes glowing {
0% {
filter: drop-shadow(0 0 0.25rem red);
}
50% {
filter: drop-shadow(0 0 0.50rem green);
}
100% {
filter: drop-shadow(0 0 0.25rem red);
}
}
body {
background: url("<?php echo($backgroundImage); ?>") no-repeat center center fixed;
background-repeat: no-repeat;
backdrop-filter: blur(<?php echo($blurAmount); ?>);
background-position: bottom;
background-size: cover;
height: 100vh;
width: 100%;
font-family: 'Montserrat', sans-serif;
min-height: 80vh;
display: -webkit-box;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
h1 {
font-family: 'Montserrat', sans-serif !important;
font-weight: bold;
filter: drop-shadow(0 0 0);
animation: glowing 3500ms infinite;
}
h2 {
font-family: 'Montserrat', sans-serif !important;
font-size: 350%;
}
h3 {
font-family: 'Montserrat', sans-serif !important;
font-size: 150%;
}
#bottomRight
{
position:fixed;
bottom:5px;
right:5px;
opacity:0.5;
z-index:99;
color:white;
}
#bottomLeft
{
position:fixed;
bottom:5px;
left:5px;
opacity:0.5;
z-index:99;
color:white;
}
</style>
<script>
function fadeInPage() {
for (let i = 1; i < 100; i++) {
fadeIn(i * 0.01);
}
function fadeIn(i) {
setTimeout(function() {
document.body.style.opacity = i;
}, 2000 * i);
}
}
</script>
<?php if ($enableEmbed): ?>
<meta name="description" content="<?php echo($embedDescription);?>">
<!-- Google / Search Engine Tags -->
<meta name="theme-color" content="<?php echo($embedHexColor);?>">
<meta itemprop="name" content="<?php echo($embedTitle);?>">
<meta itemprop="description" content="<?php echo($embedDescription);?>">
<!-- Facebook Meta Tags -->
<meta property="og:title" content="<?php echo($embedTitle);?>">
<meta property="og:type" content="website">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php echo($embedTitle);?>">
<meta name="twitter:description" content="<?php echo($embedDescription);?>">
<?php endif; ?>
</head>
<body style="opacity:0" onload='fadeInPage()'>
<h1 class="text-light">
<?php echo($pageName); ?>
</h1>
<?php if ($discordInvite !== "https://discord.gg/"): ?>
<div class="btn-group mt-2 mb-4" role="group" aria-label="actionButtons">
<a href="<?php echo($discordInvite); ?>" class="d-block btn btn-outline-light">
Join the Discord
</a>
</div>
<?php endif; ?>
<a>
<?php
try {
foreach ($gameIds as $gameId) {
echo "<h3 class=\"text-light\">";
$isPlayable = checkGame($gameId);
echo "<b>$gameId:</b> ";
if ($isPlayable){
echo "<a style=\"color: #dcdcdc\" href=\"https://www.roblox.com/games/$gameId\"><u>Click for game</u></a><br>";
}else{
echo "Game banned<br>";
}
echo "</h3>";
}
} catch (Error $e) {
}
?>
<div id="bottomLeft"> <?php //Please don't take credit for this shit :) ?>
V<?php echo($versionId); ?>
</div>
<?php if ($githubCredits): ?>
<div id="bottomRight"> <?php //Please don't take credit for this shit :) ?>
<a href="https://github.com/Roblox-Thot/cashmoney-con.tk">
Site coded by Roblox Thot
</a>
</div>
<?php endif; ?>
</a>
</body>
</html>
</html>