From 8fabf77b2a7720a357c63817c07035a9908818a0 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 10 Nov 2021 17:53:50 +0100 Subject: Update --- Neutron-trunk/api/admin/calendar_delete.php | 64 ----------------------------- 1 file changed, 64 deletions(-) delete mode 100644 Neutron-trunk/api/admin/calendar_delete.php (limited to 'Neutron-trunk/api/admin/calendar_delete.php') diff --git a/Neutron-trunk/api/admin/calendar_delete.php b/Neutron-trunk/api/admin/calendar_delete.php deleted file mode 100644 index 720a2f5..0000000 --- a/Neutron-trunk/api/admin/calendar_delete.php +++ /dev/null @@ -1,64 +0,0 @@ - -events as $stdClass) { - $pos = $pos + 1; - if (isset($stdClass->timestamp)) { - if ($stdClass->timestamp == $id) { - unset($json->events[$pos]->timestamp); - unset($json->events[$pos]->datestr); - unset($json->events[$pos]->name); - unset($json->events[$pos]->description); - } - } - } - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/caldb.json", json_encode($json, JSON_PRETTY_PRINT)); - require $_SERVER['DOCUMENT_ROOT'] . "/api/admin/cache_content_reset.php"; - require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("ok"); -} else { - require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit("CalDb1: ParseError: Unable to open database, JSON parse failed. Data might be corrupted"); -} \ No newline at end of file -- cgit