Files
server/usr/share/psa-horde/kronolith/calendars/subscribe.php
2026-01-07 20:52:11 +01:00

25 lines
696 B
PHP

<?php
/**
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Jan Schneider <jan@horde.org>
*/
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit('kronolith');
$calendar = Horde_Util::getFormData('calendar');
$url = Horde::url('', true);
if (Kronolith::showAjaxView()) {
$url->setAnchor('calendar:internal|' . $calendar);
} else {
$url->setAnchor('calendar:' . $calendar);
if (!in_array($display_calendars, $calendar)) {
$url->add('toggle_calendar', $calendar);
}
}
$url->redirect();