ids, 'contacts' => ids, 'emails' => [...]]) and $form_invited
* (whether anyone has been sent it already). The client's sites and contacts
* follow the client picked (agent/js/calendar_event_modal.js).
*/
isset($mysqli) || die("Direct file access is not allowed");
$form_all_day = !empty($form['event_all_day']);
$form_start_ts = strtotime($form['event_start'] ?? '') ?: strtotime(date('Y-m-d 09:00:00'));
$form_end_ts = !empty($form['event_end']) ? (strtotime($form['event_end']) ?: $form_start_ts + 3600) : $form_start_ts + 3600;
$form_repeat = isset(CALENDAR_REPEATS[$form['event_repeat'] ?? '']) ? $form['event_repeat'] : '';
$form_interval = max(1, intval($form['event_repeat_interval'] ?? 1));
$form_calendars = calendarList();
$form_calendar_id = intval($form['event_calendar_id'] ?? 0);
if (!isset($form_calendars[$form_calendar_id])) {
$form_calendar_id = isset($form_calendars[intval($config_default_calendar ?? 0)]) ? intval($config_default_calendar) : intval(array_key_first($form_calendars) ?? 0);
}
$form_can_email = calendarCanEmail();
?>
An event for a client takes Clients at Modify in your role.
>
Email is not set up, so invitations cannot be sent - the people on it can still subscribe to their calendar link.