diff options
Diffstat (limited to 'api/raindrops-data.php')
-rw-r--r-- | api/raindrops-data.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/raindrops-data.php b/api/raindrops-data.php index 958fb8f..492f561 100644 --- a/api/raindrops-data.php +++ b/api/raindrops-data.php @@ -1,14 +1,14 @@ <?php -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/bitset.php"; +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn; +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/bitset.inc"; if (!$isLoggedIn) header("Location: /-/login") and die(); $data = []; $data["members"] = []; foreach (array_filter(scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/data"), function ($i) { return !str_starts_with($i, "."); }) as $file) { - if (str_starts_with($file, "gdapd-") && !(str_ends_with($file, "-members.json") || str_ends_with($file, "-fronters.json") || str_ends_with($file, "-general.json") || str_ends_with($file, "-switches.json"))) { + if (str_starts_with($file, "gdapd-") && !(str_ends_with($file, "/members.json") || str_ends_with($file, "/fronters.json") || str_ends_with($file, "/general.json") || str_ends_with($file, "/switches.json"))) { $name = substr(explode(".", $file)[0], 6); $parts = explode("-", $name); |