2001-05-23 21:07:45 +02:00
< ? php
2005-07-14 19:12:50 +02:00
/************************************************************************** \
* eGroupWare - Info Log *
* http :// www . egroupware . org *
* Written by Ralf Becker < RalfBecker @ outdoor - training . de > *
* originaly based on todo written by Joseph Engo < jengo @ phpgroupware . org > *
* -------------------------------------------- *
* This program is free software ; you can redistribute it and / or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation ; either version 2 of the License , or ( at your *
* option ) any later version . *
\ **************************************************************************/
2001-07-12 01:17:32 +02:00
2005-07-14 19:12:50 +02:00
/* $Id$ */
2001-07-12 01:17:32 +02:00
2005-07-14 19:12:50 +02:00
$GLOBALS [ 'egw_info' ][ 'flags' ] = array (
'currentapp' => 'infolog' ,
'noheader' => True ,
'nonavbar' => True
);
include ( '../header.inc.php' );
2001-06-04 20:26:46 +02:00
2005-07-14 19:12:50 +02:00
include_once ( EGW_INCLUDE_ROOT . '/infolog/setup/setup.inc.php' );
if ( $setup_info [ 'infolog' ][ 'version' ] != $GLOBALS [ 'egw_info' ][ 'apps' ][ 'infolog' ][ 'version' ])
{
$GLOBALS [ 'egw' ] -> common -> egw_header ();
parse_navbar ();
echo '<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 [ 'infolog' ][ 'version' ], $GLOBALS [ 'egw_info' ][ 'apps' ][ 'infolog' ][ 'version' ],
'<a href="../setup/">' , '</a>' ) . " </p> \n " ;
2005-04-06 13:05:57 +02:00
$GLOBALS [ 'egw' ] -> common -> egw_exit ();
2005-07-14 19:12:50 +02:00
}
unset ( $setup_info );
2006-04-05 18:16:33 +02:00
ExecMethod ( 'infolog.uiinfolog.index' , 'reset_action_view' );
2005-07-14 19:12:50 +02:00
$GLOBALS [ 'egw' ] -> common -> egw_exit ();
2001-05-23 21:07:45 +02:00
?>