blob: 4df1aea8430a0d563c5c3a388bb416bdc72726c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
global $app;
$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/app.json"), true);
if (str_ends_with($_GET['_'], "/")) {
$pagename = substr($_GET['_'], 0, strlen($_GET['_']) - 1);
} else {
$pagename = $_GET['_'];
}
$toplevel = explode("/", $pagename)[0];
if ($toplevel === "api") {
require_once $_SERVER['DOCUMENT_ROOT'] . "/api/_main.php";
} else {
if (time() > 1714507200) {
header("Location: https://equestria.dev");
die();
} else {
require_once $_SERVER['DOCUMENT_ROOT'] . "/eol.php";
}
}
|