-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathindex.php
More file actions
104 lines (98 loc) · 3.09 KB
/
Copy pathindex.php
File metadata and controls
104 lines (98 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaCore UNA Core
* @{
*/
if (!file_exists("./inc/header.inc.php")) {
// this is dynamic page - send headers to not cache this page
$now = gmdate('D, d M Y H:i:s') . ' GMT';
header("Expires: $now");
header("Last-Modified: $now");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
$bHasInstaller = file_exists("install/index.php");
$sTitle = $bHasInstaller ? 'Initiating Installation' : 'Installation files are missing';
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php echo htmlspecialchars($sTitle, ENT_QUOTES, 'UTF-8'); ?></title>
<?php if ($bHasInstaller): ?>
<meta http-equiv="refresh" content="2;url=install/index.php" />
<?php endif; ?>
<style>
:root {
--bx-flash-bg: #f4f5f7;
--bx-flash-text: #111827;
--bx-flash-muted: #6b7280;
--bx-flash-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html, body {
margin: 0;
height: 100%;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--bx-flash-bg);
font-family: var(--bx-flash-font);
color: var(--bx-flash-text);
-webkit-font-smoothing: antialiased;
}
.bx-install-flash {
text-align: center;
padding: 24px;
}
.bx-install-flash img {
display: block;
width: 64px;
height: 64px;
margin: 0 auto 20px;
border-radius: 16px;
}
.bx-install-flash p {
margin: 0;
font-size: 16px;
font-weight: 550;
letter-spacing: -0.01em;
color: var(--bx-flash-muted);
}
.bx-install-flash-pulse {
animation: bx-install-flash-pulse 1.4s ease-in-out infinite;
}
@keyframes bx-install-flash-pulse {
0%, 100% { opacity: 0.35; }
50% { opacity: 1; }
}
</style>
</head>
<body>
<div class="bx-install-flash">
<img src="install/img/logo.svg" alt="UNA" />
<p class="bx-install-flash-pulse"><?php echo htmlspecialchars($sTitle, ENT_QUOTES, 'UTF-8'); ?></p>
</div>
<?php if ($bHasInstaller): ?>
<script>setTimeout(function () { location.href = 'install/index.php'; }, 1400);</script>
<?php endif; ?>
</body>
</html>
<?php
exit;
}
require_once('./inc/header.inc.php');
require_once(BX_DIRECTORY_PATH_INC . "profiles.inc.php");
if (!isLogged() && getParam('sys_site_splash_enabled') && false === strpos($_SERVER['HTTP_USER_AGENT'], 'UNAMobileApp')) {
require_once("./splash.php");
exit;
}
$_GET['i'] = 'home';
require_once("./page.php");
/** @} */