From 2af4ffce19df7cdb34d4b509a66bc916ffcb88d1 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 3 Feb 2020 09:47:21 +0100 Subject: Initial commit --- add.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 add.php (limited to 'add.php') diff --git a/add.php b/add.php new file mode 100644 index 0000000..e538d2e --- /dev/null +++ b/add.php @@ -0,0 +1,49 @@ + + + + Adding new events + + + + $msg['guessed_source']]); + $info=$parsed['info']; + + $info['added_by']=$msg['user']['id']; + $info['keywords']=array_map ('get_or_add_keyword',$info['keywords']); + $info['source']=get_or_add_source ($info['source']); + + $id=add_event ($info); + echo 'Added #'.$id.': '.$info['title'].'
'; + + mail_mark_seen ($msg_id); + } catch (Exception $e){ + $exceptions[]=$e->getMessage(); + } +} + +if (count ($exceptions)>0){ + echo 'Exceptions:
'; + foreach ($exceptions as $e) + echo $e.'
'; +} +?> +

Back to the list of new events?

+ + -- cgit v1.2.3