-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·39 lines (35 loc) · 1.43 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
38
39
<?php
/**
* EGroupware Schulmanager
*
* @link http://www.egroupware.org
* @package schulmanager
* @author Axel Wild <info-AT-wild-solutions.de>
* @copyright (c) 2022 by info-AT-wild-solutions.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
use EGroupware\Api\Framework;
include_once('./setup/setup.inc.php');
$ts_version = $setup_info['schulmanager']['version'];
unset($setup_info);
$GLOBALS['egw_info'] = array(
'flags' => array(
'currentapp' => 'schulmanager',
'noheader' => True,
'nonavbar' => True
));
include('../header.inc.php');
if ($ts_version != $GLOBALS['egw_info']['apps']['schulmanager']['version'])
{
$GLOBALS['egw']->framework->render('<p style="text-align: center; color:red; font-weight: bold;">'.
lang('Your database is NOT up to date (%1 vs. %2), please run %3setup%4 to update your database.',
$ts_version,$GLOBALS['egw_info']['apps']['schulmanager']['version'],
'<a href="../setup/">','</a>')."</p>\n", null, true);
//Framework::render('<p style="text-align: center; color:red; font-weight: bold;">'.
// lang('Your database is NOT up to date (%1 vs. %2), please run %3setup%4 to update your database.',
// $ts_version,$GLOBALS['egw_info']['apps']['schulmanager']['version'],
// '<a href="../setup/">','</a>')."</p>\n", null, true);
exit();
}
Framework::redirect_link('/index.php',array('menuaction'=>'schulmanager.schulmanager_ui.index'));