|
This post has NOT been accepted by the mailing list yet.
There is no auto-refresh of the home page, which is quite annoying.
Here are the instructions to add one:
- edit the file egroupware/home/index.php
- add this: 'reload' => True
- after the line 'include_xajax' => True
- So the whole array will become like this:
$GLOBALS['egw_info'] = array(
'flags' => array(
'noheader' => False,
'nonavbar' => False,
'currentapp' => 'home',
'enable_network_class' => False,
'enable_contacts_class' => False,
'enable_nextmatchs_class' => False,
'include_xajax' => True,
'reload' => True
)
);
- Save the index.php file.
- edit the header.inc.php file in the egroupware directory, and add after the nocachecontrol block:
if(!isset($GLOBALS['egw_info']['flags']['nocachecontrol']) || !$GLOBALS['egw_info']['flags']['nocachecontrol'])
{
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
}
else
{
// allow caching by browser
session_cache_limiter('private_no_expire');
}
- this:
if(isset($GLOBALS['egw_info']['flags']['reload']))
{
header('refresh: 60'); //reload every minute
}
- So the whole area looks like this:
if(!isset($GLOBALS['egw_info']['flags']['nocachecontrol']) || !$GLOBALS['egw_info']['flags']['nocachecontrol'])
{
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
}
else
{
// allow caching by browser
session_cache_limiter('private_no_expire');
}
if(isset($GLOBALS['egw_info']['flags']['reload']))
{
header('refresh: 60'); //reload every minute
}
- Save file, and your done! ONLY the home page is now refreshed every 60 seconds.
|