diff options
Diffstat (limited to 'apps/calendar/ajax/activation.php')
-rwxr-xr-x | apps/calendar/ajax/activation.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/calendar/ajax/activation.php b/apps/calendar/ajax/activation.php new file mode 100755 index 00000000000..51c5777f643 --- /dev/null +++ b/apps/calendar/ajax/activation.php @@ -0,0 +1,27 @@ +<?php +/************************************************* + * ownCloud - Calendar Plugin * + * * + * (c) Copyright 2011 Georg Ehrke * + * author: Georg Ehrke * + * email: ownclouddev at georgswebsite dot de * + * homepage: ownclouddev.georgswebsite.de * + * manual: ownclouddev.georgswebsite.de/manual * + * License: GNU AFFERO GENERAL PUBLIC LICENSE * + * * + * If you are not able to view the License, * + * <http://www.gnu.org/licenses/> * + * <http://ownclouddev.georgswebsite.de/license/> * + * 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); +echo $cal['active']; |