2005-12-19 05:23:14 +01:00
|
|
|
<?php
|
2006-08-26 18:32:29 +02:00
|
|
|
/**
|
|
|
|
* TimeSheet - index
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @package timesheet
|
2016-04-26 20:27:29 +02:00
|
|
|
* @copyright (c) 2005-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
2006-08-26 18:32:29 +02:00
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
2008-10-07 10:57:09 +02:00
|
|
|
* @version $Id$
|
2006-08-26 18:32:29 +02:00
|
|
|
*/
|
2005-12-19 05:23:14 +01:00
|
|
|
|
2016-04-26 20:27:29 +02:00
|
|
|
use EGroupware\Api\Framework;
|
|
|
|
|
2008-10-28 07:00:37 +01:00
|
|
|
include_once('./setup/setup.inc.php');
|
2005-12-19 05:23:14 +01:00
|
|
|
$ts_version = $setup_info[TIMESHEET_APP]['version'];
|
|
|
|
unset($setup_info);
|
|
|
|
|
|
|
|
$GLOBALS['egw_info'] = array(
|
|
|
|
'flags' => array(
|
2008-10-07 10:57:09 +02:00
|
|
|
'currentapp' => TIMESHEET_APP,
|
2005-12-19 05:23:14 +01:00
|
|
|
'noheader' => True,
|
|
|
|
'nonavbar' => True
|
|
|
|
));
|
|
|
|
include('../header.inc.php');
|
|
|
|
|
|
|
|
if ($ts_version != $GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version'])
|
|
|
|
{
|
2016-04-26 20:27:29 +02:00
|
|
|
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.',
|
2005-12-19 05:23:14 +01:00
|
|
|
$ts_version,$GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version'],
|
2016-04-26 20:27:29 +02:00
|
|
|
'<a href="../setup/">','</a>')."</p>\n", null, true);
|
|
|
|
exit();
|
2005-12-19 05:23:14 +01:00
|
|
|
}
|
|
|
|
|
2016-04-26 20:27:29 +02:00
|
|
|
Framework::redirect_link('/index.php',array('menuaction'=>TIMESHEET_APP.'.timesheet_ui.index'));
|