-
Notifications
You must be signed in to change notification settings - Fork 153
/
index.php
37 lines (31 loc) · 1.07 KB
/
index.php
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
<?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");
echo "It seems to be script is <b>not</b> installed.<br />\n";
if ( file_exists( "install/index.php" ) ) {
echo "Please, wait. Redirecting you to installation form...<br />\n";
echo "<script language=\"javascript\">location.href = 'install/index.php';</script>\n";
}
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");
/** @} */