From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- api/cloudburst-data.php | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 api/cloudburst-data.php (limited to 'api/cloudburst-data.php') diff --git a/api/cloudburst-data.php b/api/cloudburst-data.php deleted file mode 100644 index edddd2d..0000000 --- a/api/cloudburst-data.php +++ /dev/null @@ -1,44 +0,0 @@ - null, - "content" => null - ]; - if ($parts[1] === "metadata") { - $data["members"][$parts[0]][$parts[1]] = parseMetadata(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . $file), true)); - } else { - $data["members"][$parts[0]][$parts[1]] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . $file), true); - } - } else { - $data[$name] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . $file), true); - } - } else { - if (strlen($parts[0]) === 5) { - if (!isset($data["members"][$parts[0]])) $data["members"][$parts[0]] = [ - "metadata" => null, - "content" => null - ]; - $data["members"][$parts[0]][$parts[1]] = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . $file); - } else { - $data[$name] = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/" . $file); - } - } - } -} - -header("Content-Type: application/json"); -die(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file -- cgit