2011-08-31 19:29:38 +04:00
|
|
|
<?php
|
|
|
|
/*************************************************
|
|
|
|
* ownCloud - Calendar Plugin *
|
|
|
|
* *
|
2011-09-11 18:45:58 +04:00
|
|
|
* (c) Copyright 2011 Bart Visscher *
|
2011-08-31 19:29:38 +04:00
|
|
|
* License: GNU AFFERO GENERAL PUBLIC LICENSE *
|
|
|
|
* *
|
|
|
|
* If you are not able to view the License, *
|
|
|
|
* <http://www.gnu.org/licenses/> *
|
|
|
|
* please write to the Free Software Foundation. *
|
|
|
|
* Address: *
|
|
|
|
* 59 Temple Place, Suite 330, Boston, *
|
|
|
|
* MA 02111-1307 USA *
|
|
|
|
*************************************************/
|
|
|
|
require_once ("../../../lib/base.php");
|
|
|
|
if(!OC_USER::isLoggedIn()) {
|
|
|
|
die("<script type=\"text/javascript\">document.location = oc_webroot;</script>");
|
|
|
|
}
|
|
|
|
$calendarid = $_POST['calendarid'];
|
|
|
|
OC_Calendar_Calendar::setCalendarActive($calendarid, $_POST['active']);
|
|
|
|
$cal = OC_Calendar_Calendar::findCalendar($calendarid);
|
2011-08-31 22:20:46 +04:00
|
|
|
echo $cal['active'];
|