From 0417260bf158c5d7b62888dae2e202b0de115a05 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 10 Aug 2022 00:04:25 +0200 Subject: Initial commit --- api/fronter.php | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 api/fronter.php (limited to 'api/fronter.php') diff --git a/api/fronter.php b/api/fronter.php new file mode 100644 index 0000000..44c2c76 --- /dev/null +++ b/api/fronter.php @@ -0,0 +1,82 @@ + -1 ? $index - 1 : $index); + + break; + + default: + header("Location: /?error=Invalid type name") and die(); + break; +} + +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system-planner.json", json_encode($list)); + +die(); \ No newline at end of file -- cgit