summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/event/delete.php
diff options
context:
space:
mode:
authorGeorg Ehrke <ownclouddev@georgswebsite.de>2012-02-20 11:26:22 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-02-23 21:58:39 +0100
commitb7de1850a00b91be34af062957df73424c95469b (patch)
tree975943d8ca3d11298fa090e24d9b814b0464e8f9 /apps/calendar/ajax/event/delete.php
parente188b96596f7562e73b2974e640ff77b3e165629 (diff)
downloadnextcloud-server-b7de1850a00b91be34af062957df73424c95469b.tar.gz
nextcloud-server-b7de1850a00b91be34af062957df73424c95469b.zip
add moved files to clean up ajax folder
Diffstat (limited to 'apps/calendar/ajax/event/delete.php')
-rw-r--r--apps/calendar/ajax/event/delete.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/calendar/ajax/event/delete.php b/apps/calendar/ajax/event/delete.php
new file mode 100644
index 00000000000..862dec6bf5b
--- /dev/null
+++ b/apps/calendar/ajax/event/delete.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+require_once('../../../../lib/base.php');
+
+$l10n = new OC_L10N('calendar');
+
+OC_JSON::checkLoggedIn();
+OC_JSON::checkAppEnabled('calendar');
+
+$id = $_POST['id'];
+$event_object = OC_Calendar_App::getEventObject($id);
+$result = OC_Calendar_Object::delete($id);
+OC_JSON::success();
+?>