-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoot.php
More file actions
21 lines (18 loc) · 877 Bytes
/
foot.php
File metadata and controls
21 lines (18 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$sourceAPIToken = "PRODUCTION.TOKEN.HERE";
$devSourceAPIToken = "DEVELOPMENT.TOKEN.HERE";
$veryDevSourceAPIToken = "STAGING.TOKEN.HERE";
if (json_decode(file_get_contents('php://input'), true)['key'] == $sourceAPIToken) {
die(file_get_contents('../../pcsource.lua'));
} elseif (json_decode(file_get_contents('php://input'), true)['key'] == $devSourceAPIToken) {
die(file_get_contents('../../devpcsource.lua'));
} elseif (json_decode(file_get_contents('php://input'), true)['key'] == $veryDevSourceAPIToken) {
if (json_decode(file_get_contents('php://input'), true)['module'] == "") {
die(file_get_contents('../../pcsourcedev.lua'));
} else {
die(file_get_contents('../../pc_modules/' . json_decode(file_get_contents('php://input'), true)['module'] . '.lua'));
}
} else {
die("print('Project Cobra loaded successfully!');");
}
?>