-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
32 lines (31 loc) · 1.47 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
<?php
include($_SERVER["DOCUMENT_ROOT"] . "/core/database/connectionapi.php");
header("Content-Security-Policy: default-src 'self' monosoftware.one *.monosoftware.one");
header("X-XSS-Protection: 1; mode=block");
header("Allow: GET, POST");
header_remove("x-powered-by");
header("Content-Length: 1337", true);
header_remove("server");
header_remove("x-turbo-charged-by");
header("developer: WhistleDev"); // Under the GNU GENERAL PUBLIC LICENSE Version 3 License, this is part of the copyright notice, you must not remove this copyright or legal action will be taken.
if(!isset($_GET["api"])){
header_remove("server");
header_remove("x-powered-by");
header_remove("x-turbo-charged-by");
header("developer: WhistleDev");
echo "<code>Cannot /GET</code></br>";
echo "<code>Reason: Permission denied.</code>";
echo "<script>setTimeout(() => { console.log(\"Access Denied to Overlord System.\"); }, 1000);</script>";
}
else if($_GET["api"] != "0.4"){
header_remove("server");
header_remove("x-powered-by");
header_remove("x-turbo-charged-by");
header("developer: WhistleDev"); // Under the GNU GENERAL PUBLIC LICENSE Version 3 License, this is part of the copyright notice, you must not remove this copyright or legal action will be taken.
echo "<code>Cannot /GET</code></br>";
echo "<code>Reason: API Version Incorrect.</code>";
echo "<script>setTimeout(() => { console.log(\"Access Denied to Overlord System.\"); }, 1000);</script>";
}
else{
}
?>