Finished off the agenda and minutes features in the adm page. Added another six events to the calendar.

This commit is contained in:
2025-07-10 12:40:53 +10:00
parent 558012bf89
commit 3e32ea92b4
7 changed files with 121 additions and 29 deletions

View File

@@ -7,13 +7,7 @@ if ( in_array("cmd", array_keys($_GET)) and $_GET["cmd"] == "get" ) {
} elseif ( $_POST["cmd"] == "put" ) {
$json = base64_decode($_POST["payload"]);
$events = json_decode($json, true);
for ( $i = 0; $i < count($events); $i++ ) {
foreach ( array( "hours", "agenda", "minutes" ) as $field ) {
unset($events[$i][$field]);
}
}
$json = json_encode($events, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
file_put_contents("dat/events.json", $json);
putEvents($events);
$ret = getEvents();
}
print(json_encode($ret));