$value) { $l[$key] = $value; } } return $l; } $api = new IceWarpAPI(); $url = []; $url['webdav'] = $api->GetProperty('C_WebDAV_URL'); $url['freebusy'] = $api->GetProperty('C_FreeBusy_URL'); $url['webadmin'] = $api->GetProperty('C_WebAdmin_URL'); $url['install'] = $api->GetProperty('C_Install_URL'); $url['bcal'] = trim($api->GetProperty('C_Webmail_URL'), '/') . '/calendar/'; $url['ical'] = $api->GetProperty('C_InternetCalendar_URL'); $url['webcal'] = str_replace(['http://', 'https://'], ['webcal://', 'webcals://'], $url['ical']); $sid = filter_input(INPUT_GET, 'sid'); $lang = strtolower(filter_input(INPUT_GET, 'lang', FILTER_SANITIZE_STRING)); if(!preg_match('/^[a-z]{2}$/', $lang)){ $lang = 'en'; } if ($sid) { session_id($sid); session_start(); $account = new IceWarpAccount(); $email = filter_var($_SESSION['EMAIL']); if ($email) { $account->Open($email); $licenses['out'] = $account->GetProperty('U_ActivationKey_OutConn'); $licenses['dsk'] = $account->GetProperty('U_ActivationKey_Desktop'); $url['freebusy'] .= '?' . $email; } $lang = filter_var($_SESSION['LANGUAGE']); } $l = getLang($lang); $_ = function ($key) use($l) { return $l[$key] ?: $key; }; ?> <?= $_('page_title'); ?>

desktop client

outlook sync