2012-02-20 10:26:22 +00: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.
|
|
|
|
*/
|
|
|
|
|
2012-09-07 12:32:45 +00:00
|
|
|
|
2012-05-03 10:23:29 +00:00
|
|
|
OCP\JSON::checkLoggedIn();
|
|
|
|
OCP\JSON::checkAppEnabled('calendar');
|
2012-07-20 18:12:36 +00:00
|
|
|
OCP\JSON::callCheck();
|
2012-02-20 10:26:22 +00:00
|
|
|
|
|
|
|
$calendarcolor_options = OC_Calendar_Calendar::getCalendarColorOptions();
|
2012-05-14 13:59:06 +00:00
|
|
|
$calendar = OC_Calendar_App::getCalendar($_GET['calendarid'], true);
|
2012-09-07 13:21:03 +00:00
|
|
|
if(!$calendar) {
|
2012-05-14 13:59:06 +00:00
|
|
|
OCP\JSON::error(array('message'=>'permission denied'));
|
|
|
|
exit;
|
|
|
|
}
|
2012-05-06 21:00:36 +00:00
|
|
|
$tmpl = new OCP\Template("calendar", "part.editcalendar");
|
2012-02-20 10:26:22 +00:00
|
|
|
$tmpl->assign('new', false);
|
|
|
|
$tmpl->assign('calendarcolor_options', $calendarcolor_options);
|
|
|
|
$tmpl->assign('calendar', $calendar);
|
2012-06-16 07:48:07 +00:00
|
|
|
$tmpl->printPage();
|