From 23563c7188e089929b60f9e10721c6fc43a220ff Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 22 Jun 2023 23:06:12 +0200 Subject: Updated 15 files, added includes/maintenance/deleteUnusedAssets.php and deleted 4944 files (automated) --- pages/api/fronter.php | 177 -------------------------------------------------- 1 file changed, 177 deletions(-) delete mode 100644 pages/api/fronter.php (limited to 'pages/api/fronter.php') diff --git a/pages/api/fronter.php b/pages/api/fronter.php deleted file mode 100644 index a908efa..0000000 --- a/pages/api/fronter.php +++ /dev/null @@ -1,177 +0,0 @@ - -1 ? $index - 1 : $index); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/planner.json", "{}"); - createJob("RefreshCache", []); - - break; - - case "top": - if (!isset($index) || trim($index) === "" || !is_integer($index)) { - if ($index !== null) peh_error("Invalid index", 400); - } - - $day = $list[$date]; - - if (!isset($day[$index])) { - if ($index !== null) peh_error("Index not found", 404); - } - - moveElement($list[$date], $index, 0); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/cache/planner.json", "{}"); - createJob("RefreshCache", []); - - break; - - default: - peh_error("Invalid type name", 400); - break; -} - -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/planner/$system.json", json_encode($list)); - -die(); \ No newline at end of file -- cgit