2001-05-23 21:07:45 +02:00
< ? php
2006-10-04 19:40:33 +02:00
/**
2008-03-21 21:53:24 +01:00
* eGroupWare - InfoLog
2006-10-04 19:40:33 +02:00
*
* @ link http :// www . egroupware . org
* @ author Ralf Becker < RalfBecker - AT - outdoor - training . de >
* @ package infolog
2008-03-21 21:53:24 +01:00
* @ copyright ( c ) 2003 - 8 by Ralf Becker < RalfBecker - AT - outdoor - training . de >
2006-10-04 19:40:33 +02:00
* @ license http :// opensource . org / licenses / gpl - license . php GPL - GNU General Public License
* @ version $Id $
*/
2001-07-12 01:17:32 +02:00
2006-10-04 19:40:33 +02:00
$GLOBALS [ 'egw_info' ] = array (
'flags' => array (
2008-10-07 14:50:14 +02:00
'currentapp' => 'infolog' ,
2006-10-04 19:40:33 +02:00
'noheader' => True ,
'nonavbar' => True ,
)
2005-07-14 19:12:50 +02:00
);
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' ])
{
2008-03-21 21:53:24 +01:00
$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.' ,
2005-07-14 19:12:50 +02:00
$setup_info [ 'infolog' ][ 'version' ], $GLOBALS [ 'egw_info' ][ 'apps' ][ 'infolog' ][ 'version' ],
2008-03-21 21:53:24 +01:00
'<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 );
2008-10-07 14:50:14 +02:00
ExecMethod ( 'infolog.infolog_ui.index' , 'reset_action_view' );