mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 11:59:16 +01:00
update
This commit is contained in:
parent
27031e5523
commit
aa1dc9eb33
26
home.php
26
home.php
@ -27,6 +27,19 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($GLOBALS['phpgw_info']['server']['force_default_app'] && $GLOBALS['phpgw_info']['server']['force_default_app'] != 'user_choice')
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] = $GLOBALS['phpgw_info']['server']['force_default_app'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($GLOBALS['HTTP_GET_VARS']['cd']=='yes' && $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']
|
||||||
|
&& $GLOBALS['phpgw_info']['user']['apps'][$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']])
|
||||||
|
{
|
||||||
|
//$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php'));
|
||||||
|
Header('Location: ' . $GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$GLOBALS['phpgw_info']['flags'] = array
|
$GLOBALS['phpgw_info']['flags'] = array
|
||||||
(
|
(
|
||||||
'noheader' => True,
|
'noheader' => True,
|
||||||
@ -50,17 +63,6 @@
|
|||||||
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link($GLOBALS['phpgw_forward'],$extra_vars));
|
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link($GLOBALS['phpgw_forward'],$extra_vars));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($GLOBALS['phpgw_info']['server']['force_default_app'] && $GLOBALS['phpgw_info']['server']['force_default_app'] != 'user_choice')
|
|
||||||
{
|
|
||||||
$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] = $GLOBALS['phpgw_info']['server']['force_default_app'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($GLOBALS['HTTP_GET_VARS']['cd']=='yes' && $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']
|
|
||||||
&& $GLOBALS['phpgw_info']['user']['apps'][$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']])
|
|
||||||
{
|
|
||||||
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['phpgw']->translation->add_app('mainscreen');
|
$GLOBALS['phpgw']->translation->add_app('mainscreen');
|
||||||
if (lang('mainscreen_message') != 'mainscreen_message'.lang_char())
|
if (lang('mainscreen_message') != 'mainscreen_message'.lang_char())
|
||||||
{
|
{
|
||||||
@ -211,8 +213,6 @@
|
|||||||
$GLOBALS['phpgw']->preferences->save_repository();
|
$GLOBALS['phpgw']->preferences->save_repository();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'])
|
|
||||||
{
|
|
||||||
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output);
|
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -1240,10 +1240,7 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
|||||||
switch($GLOBALS['phpgw_info']['flags']['currentapp'])
|
switch($GLOBALS['phpgw_info']['flags']['currentapp'])
|
||||||
{
|
{
|
||||||
case 'home':
|
case 'home':
|
||||||
if (!$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'])
|
|
||||||
{
|
|
||||||
$var['home'] = True;
|
$var['home'] = True;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'about':
|
case 'about':
|
||||||
$var['about'] = True;
|
$var['about'] = True;
|
||||||
|
Loading…
Reference in New Issue
Block a user