From 9337aae8b1c87fad34884dacd5cd79d9591c60db Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 18 Nov 2023 11:34:36 +0100 Subject: Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated) --- pages/api/design.php | 58 ---------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 pages/api/design.php (limited to 'pages/api/design.php') diff --git a/pages/api/design.php b/pages/api/design.php deleted file mode 100644 index 1894a75..0000000 --- a/pages/api/design.php +++ /dev/null @@ -1,58 +0,0 @@ - "Untitled", - "note" => "ID: " . $id, - "image" => $text - ]; - - break; - - default: - die("Invalid type"); -} - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $_GET["member"] . ".json", json_encode($designs)); - -while (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $_GET["member"] . ".json")) === "") { - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/designs/" . $_GET["member"] . ".json", json_encode($designs)); -} \ No newline at end of file -- cgit