-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
46 lines (42 loc) · 1.59 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
40
41
42
43
44
45
46
<?php
/**
* ProjectManager - Index page
*
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package projectmanager
* @copyright (c) 2005-12 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
$GLOBALS['egw_info'] = array(
'flags' => array(
'currentapp' => 'projectmanager',
'noheader' => True,
'nonavbar' => True
));
include('../header.inc.php');
include_once(EGW_INCLUDE_ROOT.'/projectmanager/setup/setup.inc.php');
if ($setup_info['projectmanager']['version'] != $GLOBALS['egw_info']['apps']['projectmanager']['version'])
{
// 1.9.001 update is run inside EGroupware by datasource constructor
if ($GLOBALS['egw_info']['apps']['projectmanager']['version'] === '1.9.001')
{
include_once(EGW_INCLUDE_ROOT.'/projectmanager/inc/class.datasource.inc.php');
new datasource();
}
else
{
echo $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.',
$setup_info['projectmanager']['version'],$GLOBALS['egw_info']['apps']['projectmanager']['version'],
'<a href="../setup/">','</a>')."</p>\n");
exit();
}
}
unset($setup_info);
$pm_id = $GLOBALS['egw_info']['user']['preferences']['projectmanager']['current_project'];
$GLOBALS['egw']->redirect_link('/index.php',array(
'menuaction' => $pm_id ? 'projectmanager.projectmanager_elements_ui.index' : 'projectmanager.projectmanager_ui.index',
));
exit();