EGroupware /
egroupware
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * TimeSheet - index |
||
| 4 | * |
||
| 5 | * @link http://www.egroupware.org |
||
| 6 | * @author Ralf Becker <RalfBecker-AT-outdoor-training.de> |
||
| 7 | * @package timesheet |
||
| 8 | * @copyright (c) 2005-16 by Ralf Becker <RalfBecker-AT-outdoor-training.de> |
||
| 9 | * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License |
||
| 10 | * @version $Id$ |
||
| 11 | */ |
||
| 12 | |||
| 13 | use EGroupware\Api\Framework; |
||
| 14 | |||
| 15 | include_once('./setup/setup.inc.php'); |
||
| 16 | $ts_version = $setup_info[TIMESHEET_APP]['version']; |
||
| 17 | unset($setup_info); |
||
| 18 | |||
| 19 | $GLOBALS['egw_info'] = array( |
||
| 20 | 'flags' => array( |
||
| 21 | 'currentapp' => TIMESHEET_APP, |
||
| 22 | 'noheader' => True, |
||
| 23 | 'nonavbar' => True |
||
| 24 | )); |
||
| 25 | include('../header.inc.php'); |
||
| 26 | |||
| 27 | if ($ts_version != $GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version']) |
||
| 28 | { |
||
| 29 | Framework::render('<p style="text-align: center; color:red; font-weight: bold;">'. |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 30 | lang('Your database is NOT up to date (%1 vs. %2), please run %3setup%4 to update your database.', |
||
| 31 | $ts_version,$GLOBALS['egw_info']['apps'][TIMESHEET_APP]['version'], |
||
| 32 | '<a href="../setup/">','</a>')."</p>\n", null, true); |
||
| 33 | exit(); |
||
| 34 | } |
||
| 35 | |||
| 36 | Framework::redirect_link('/index.php',array('menuaction'=>TIMESHEET_APP.'.timesheet_ui.index')); |
||
| 37 |