Files
2026-11-30 16:32:37 +00:00

90 lines
3.6 KiB
PHP

<?php
/*
* SPDX-FileCopyrightText: Copyright 2020 - 2026 grommunio GmbH
* SPDX-FileCopyrightText: Copyright 2016 Kopano and its licensors
* SPDX-FileCopyrightText: Copyright 2005 - 2016 Zarafa B.V. and its licensors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
include BASE_PATH . 'server/includes/loader.php';
include BASE_PATH . 'server/includes/templates/serverinfo.php';
$loader = new FileLoader();
$versionInfo['webapp'] = $loader->getVersion();
$serverConfig = [
'enable_plugins' => ENABLE_PLUGINS ? true : false,
'enable_advanced_settings' => ENABLE_ADVANCED_SETTINGS ? true : false,
'max_attachment_size' => getMaxUploadSize(),
'freebusy_load_start_offset' => FREEBUSY_LOAD_START_OFFSET,
'freebusy_load_end_offset' => FREEBUSY_LOAD_END_OFFSET,
'client_timeout' => defined('CLIENT_TIMEOUT') && is_numeric(CLIENT_TIMEOUT) && CLIENT_TIMEOUT > 0 ? CLIENT_TIMEOUT : false,
'json_themes' => Theming::getJsonThemes(),
'active_theme' => Theming::getActiveTheme(),
'iconsets' => Iconsets::getIconsets(),
'active_iconset' => Iconsets::getActiveIconset(),
'enable_themes' => ENABLE_THEMES,
'enable_iconsets' => ENABLE_ICONSETS,
'enable_widgets' => ENABLE_WIDGETS,
];
?>
<!DOCTYPE html>
<html lang="<?php echo $Language->getSelectedIetf(); ?>" data-host="<?php echo htmlspecialchars(Theming::getRequestHost(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); ?>">
<head>
<meta name="Generator" content="grommunio-web v<?php echo $loader->getVersion(); ?>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?php echo $webappTitle; ?></title>
<link rel="icon" href="<?php echo $favicon; ?>" type="image/x-icon">
<link rel="shortcut icon" href="<?php echo $favicon; ?>" type="image/x-icon">
<link rel="manifest" href="<?php echo versionedUrl('manifest.webmanifest'); ?>">
<!-- load the login css first as we need it immediately! -->
<link rel="stylesheet" href="client/resources/css/external/login.css?version=<?php echo getWebappVersion(); ?>" >
<link rel="stylesheet" href="client/resources/css/darkmode.css?version=<?php echo getWebappVersion(); ?>" >
<script><?php require BASE_PATH . 'client/fingerprint.js'; ?></script>
<?php
$loader->cssOrder();
echo Theming::getStyles($theme);
?>
<link rel="stylesheet" href="/brand/brand.css">
</head>
<body class="grommunio-welcome theme-<?php echo strtolower((string) $theme ?: 'basic'); ?>">
<div id="loading-mask" role="status" aria-label="<?php echo _("Loading"); ?>">
<div id="form-container" class="loading" style="visibility: hidden;">
<div id="bg"></div>
<span class="product-badge" aria-hidden="true"></span>
<div id="content">
<div class="left">
<div id="logo" role="img" aria-label="grommunio"></div>
</div>
<div class="product-chip"><span class="icon"></span>Web</div>
<div class="right">
</div>
</div>
</div>
</div>
<script><?php require BASE_PATH . 'client/resize.js'; ?></script>
<!-- Translations -->
<script src="index.php?version=<?php echo getWebappVersion(); ?>&load=translations.js&lang=<?php echo $Language->getSelected(); ?>&v=<?php echo $Language->getTranslationsEtag(); ?>"></script>
<!-- JS Files -->
<?php $loader->jsOrder(); ?>
<script>
settings = <?php echo $GLOBALS["settings"]->getJSON(); ?>;
languages = <?php echo $Language->getJSON(); ?>;
user = <?php echo json_encode($GLOBALS['mapisession']->getUserInfo()); ?>;
version = <?php echo json_encode($versionInfo); ?>;
serverconfig = <?php echo json_encode($serverConfig); ?>;
Ext.onReady(Grommunio.loadWelcome, Grommunio);
</script>
</body>
</html>