summaryrefslogtreecommitdiff
path: root/api/cloudburst-data.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/cloudburst-data.php')
-rw-r--r--api/cloudburst-data.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/cloudburst-data.php b/api/cloudburst-data.php
index c996815..edddd2d 100644
--- a/api/cloudburst-data.php
+++ b/api/cloudburst-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, "ynmuc-") && !(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, "ynmuc-") && !(str_ends_with($file, "/members.json") || str_ends_with($file, "/content.html") || str_ends_with($file, "/general.json") || str_ends_with($file, "/switches.json"))) {
$name = substr(explode(".", $file)[0], 6);
$parts = explode("-", $name);