nextcloud/apps/calendar/ajax/changeview.php

16 lines
478 B
PHP
Raw Normal View History

2011-08-12 16:29:45 +04:00
<?php
2011-09-24 00:59:24 +04:00
/**
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
2011-08-12 16:29:45 +04:00
require_once ("../../../lib/base.php");
if(!OC_USER::isLoggedIn()) {
die("<script type=\"text/javascript\">document.location = oc_webroot;</script>");
2011-08-12 16:29:45 +04:00
}
$currentview = $_GET["v"];
OC_Preferences::setValue(OC_USER::getUser(), "calendar", "currentview", $currentview);
2011-09-24 00:59:24 +04:00
?>