⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.97
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
kronolith
/
View File Name :
add.php
redirect(); } do { if (Horde_Util::getFormData('cancel')) { break; } list($targetType, $targetcalendar) = explode('_', Horde_Util::getFormData('targetcalendar'), 2); if (strpos($targetcalendar, '\\')) { list($calendar_id, $user) = explode('\\', $targetcalendar, 2); } else { $calendar_id = $targetcalendar; $user = $GLOBALS['registry']->getAuth(); } try { /* Permission checks on the target calendar . */ switch ($targetType) { case 'internal': $kronolith_calendar = $GLOBALS['calendar_manager']->getEntry(Kronolith::ALL_CALENDARS, $calendar_id); break; case 'remote': $kronolith_calendar = $GLOBALS['calendar_manager']->getEntry(Kronolith::ALL_REMOTE_CALENDARS, $calendar_id); break; case 'resource': $rid = Kronolith::getDriver('Resource')->getResourceIdByCalendar($calendar_id); $kronolith_calendar = new Kronolith_Calendar_Resource( array('resource' => Kronolith::getDriver('Resource')->getResource($rid))); break; default: break 2; } if ($user == $GLOBALS['registry']->getAuth() && !$kronolith_calendar->hasPermission(Horde_Perms::EDIT)) { $notification->push(_("You do not have permission to add events to this calendar."), 'horde.warning'); break; } if ($user != $GLOBALS['registry']->getAuth() && !$kronolith_calendar->hasPermission(Kronolith::PERMS_DELEGATE)) { $notification->push(_("You do not have permission to delegate events to this user."), 'horde.warning'); break; } $perms = $GLOBALS['injector']->getInstance('Horde_Core_Perms'); if ($perms->hasAppPermission('max_events') !== true && $perms->hasAppPermission('max_events') <= Kronolith::countEvents()) { Horde::permissionDeniedError( 'kronolith', 'max_events', sprintf(_("You are not allowed to create more than %d events."), $perms->hasAppPermission('max_events')) ); break; } $event = Kronolith::getDriver($targetType, $calendar_id)->getEvent(); $event->readForm(); try { $event->save(); Kronolith::notifyOfResourceRejection($event); if (Horde_Util::getFormData('sendupdates', false)) { try { Kronolith::sendITipNotifications($event, $notification, Kronolith::ITIP_REQUEST); } catch (Exception $e) { $notification->push($e, 'horde.error'); } } } catch (Exception $e) { $notification->push(sprintf(_("There was an error adding the event: %s"), $e->getMessage()), 'horde.error'); } } catch (Exception $e) { $notification->push(sprintf(_("There was an error accessing the calendar: %s"), $e->getMessage()), 'horde.error'); } } while (false); if ($url = Horde::verifySignedUrl(Horde_Util::getFormData('url'))) { $url = new Horde_Url($url, true); } else { $url = Horde::url($prefs->getValue('defaultview') . '.php', true) ->add(array('month' => Horde_Util::getFormData('month'), 'year' => Horde_Util::getFormData('year'))); } // Make sure URL is unique. $url->unique()->redirect();