-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
index.php
32 lines (30 loc) · 1.37 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
<?php
/**
***********************************************************************************************
* Set the correct startpage for Admidio
*
* @copyright 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')) {
if (is_file(__DIR__ . '/config.php')) {
// show update hint if config of Admidio 1 or 2 was found
exit('<div style="color: #cc0000;">Old Admidio version 1.x or 2.x config file detected! Please update first to the latest version 3 of Admidio and after that you can perform an update to version 4!<br /><br />Please view <a href="https://www.admidio.org/dokuwiki/doku.php?id=de:2.0:update_von_2.x_auf_3.x">our documentation</a>.</div>');
} else {
// no config file found than show installation dialog
header('Location: install/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
}