diff options
Diffstat (limited to 'app/planner/index.php')
-rw-r--r-- | app/planner/index.php | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/app/planner/index.php b/app/planner/index.php deleted file mode 100644 index ebc81e6..0000000 --- a/app/planner/index.php +++ /dev/null @@ -1,71 +0,0 @@ -<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn; if (!$isLoggedIn) header("Location: /-/login") and die(); ?> - -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>Planner</title> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"> - <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> - <style> - body { - background-color: black !important; - color: white; - } - - .alert, .alert .btn, .alert code { - filter: hue-rotate(180deg); - } - - .alert { - filter: invert(1) hue-rotate(180deg); - } - - .member-link { - color: white !important; - text-decoration: none !important; - } - </style> -</head> -<body> - <div class="container"> - <br> - <?php - - require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/score.inc"; - require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/bitset.inc"; - - function getMiniName(string $name) { - $parts = explode(" ", $name); - - if (strlen($parts[0]) > 3 && !str_ends_with($parts[0], "e") && $parts[0] !== "Filly" && $parts[0] !== "Windy" && (isset($parts[1]) && $parts[1] !== "Brightdawn" && $parts[1] !== "Fizz")) { - if (str_contains($parts[0], "/")) { - return explode("/", $parts[0])[0]; - } else { - return $parts[0]; - } - } else { - return $name; - } - } - - function getSystemMember(string $system, string $id) { - $systemID = $system; - - $members = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/members.json"), true); - $member = null; - - foreach ($members as $m) { - if ($m["id"] === $id) $member = $m; - } - - $member["system"] = $member["_system"] = $system; - - return $member; - } - - require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/planner.inc"; ?> - </div> -</body> -</html>
\ No newline at end of file |