2011-09-23 00:09:03 +04:00
|
|
|
<?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');
|
|
|
|
|
|
|
|
if(!OC_USER::isLoggedIn()) {
|
|
|
|
die('<script type="text/javascript">document.location = oc_webroot;</script>');
|
|
|
|
}
|
2011-10-01 01:05:10 +04:00
|
|
|
OC_JSON::checkAppEnabled('calendar');
|
2011-09-23 00:09:03 +04:00
|
|
|
|
|
|
|
$id = $_POST['id'];
|
2011-12-19 01:58:20 +04:00
|
|
|
$event_object = OC_Calendar_App::getEventObject($id);
|
2011-09-23 00:09:03 +04:00
|
|
|
$result = OC_Calendar_Object::delete($id);
|
2011-09-24 00:22:59 +04:00
|
|
|
OC_JSON::success();
|
2011-09-23 00:09:03 +04:00
|
|
|
?>
|