forked from Admidio/admidio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (28 loc) · 892 Bytes
/
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
<?php
/**
***********************************************************************************************
* Set the correct startpage for Admidio
*
* @copyright 2004-2020 The Admidio Team
* @see https://www.admidio.org/
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
***********************************************************************************************
*/
// if config file doesn't exists, than show installation dialog
if (!is_file(__DIR__ . '/adm_my_files/config.php'))
{
header('Location: adm_program/installation/index.php');
exit();
}
require_once(__DIR__ . '/adm_program/system/common.php');
if (isset($gHomepage))
{
admRedirect($gHomepage);
// => EXIT
}
else
{
// if parameter gHomepage doesn't exists then show default page
admRedirect(ADMIDIO_URL . '/adm_program/overview.php');
// => EXIT
}