mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
few minor bug fixed
This commit is contained in:
parent
4004c9a4e1
commit
96577bfcd9
71
home.php
71
home.php
@ -54,62 +54,14 @@
|
|||||||
$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] = $GLOBALS['phpgw_info']['server']['force_default_app'];
|
$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] = $GLOBALS['phpgw_info']['server']['force_default_app'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($GLOBALS['phpgw_info']['user']['preferences']['common']['useframes'] &&
|
if ($GLOBALS['HTTP_GET_VARS']['cd']=='yes' && $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app']
|
||||||
$GLOBALS['phpgw_info']['server']['useframes'] == 'allowed') ||
|
|
||||||
($GLOBALS['phpgw_info']['server']['useframes'] == 'always'))
|
|
||||||
{
|
|
||||||
if ($GLOBALS['HTTP_GET_VARS']['cd'] == 'yes')
|
|
||||||
{
|
|
||||||
if (! $navbarframe && ! $framebody)
|
|
||||||
{
|
|
||||||
$tpl = new Template(PHPGW_TEMPLATE_DIR);
|
|
||||||
$tpl->set_file(array(
|
|
||||||
'frames' => 'frames.tpl',
|
|
||||||
'frame_body' => 'frames_body.tpl',
|
|
||||||
'frame_navbar' => 'frames_navbar.tpl'
|
|
||||||
));
|
|
||||||
$tpl->set_var('navbar_link',$GLOBALS['phpgw']->link('index.php','navbarframe=True&cd=yes'));
|
|
||||||
if ($GLOBALS['forward'])
|
|
||||||
{
|
|
||||||
$tpl->set_var('body_link',$GLOBALS['phpgw']->link($GLOBALS['forward']));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$tpl->set_var('body_link',$GLOBALS['phpgw']->link('index.php','framebody=True&cd=yes'));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($GLOBALS['phpgw_info']['user']['preferences']['common']['frame_navbar_location'] == 'bottom')
|
|
||||||
{
|
|
||||||
$tpl->set_var('frame_size','*,60');
|
|
||||||
$tpl->parse('frames_','frame_body',True);
|
|
||||||
$tpl->parse('frames_','frame_navbar',True);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$tpl->set_var('frame_size','60,*');
|
|
||||||
$tpl->parse('frames_','frame_navbar',True);
|
|
||||||
$tpl->parse('frames_','frame_body',True);
|
|
||||||
}
|
|
||||||
$tpl->pparse('out','frames');
|
|
||||||
}
|
|
||||||
if ($navbarframe)
|
|
||||||
{
|
|
||||||
$GLOBALS['phpgw']->common->phpgw_header();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif ($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_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']->redirect($GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php'));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$GLOBALS['phpgw']->common->phpgw_header();
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['phpgw']->translation->add_app('mainscreen');
|
$GLOBALS['phpgw']->translation->add_app('mainscreen');
|
||||||
if (lang('mainscreen_message') != 'mainscreen_message*')
|
if (lang('mainscreen_message') != 'mainscreen_message'.lang_char())
|
||||||
{
|
{
|
||||||
echo '<center>' . stripslashes(lang('mainscreen_message')) . '</center>';
|
echo '<center>' . stripslashes(lang('mainscreen_message')) . '</center>';
|
||||||
}
|
}
|
||||||
@ -130,8 +82,9 @@
|
|||||||
}
|
}
|
||||||
if($GLOBALS['phpgw']->common->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1]))
|
if($GLOBALS['phpgw']->common->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1]))
|
||||||
{
|
{
|
||||||
echo '<p>There is a new version of phpGroupWare available. <a href="'
|
$message = '<p>There is a new version of phpGroupWare available. <a href="'
|
||||||
. 'http://www.phpgroupware.org">http://www.phpgroupware.org</a>';
|
. 'http://www.phpgroupware.org">http://www.phpgroupware.org</a>';
|
||||||
|
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=True;
|
||||||
}
|
}
|
||||||
|
|
||||||
$_found = False;
|
$_found = False;
|
||||||
@ -161,9 +114,12 @@
|
|||||||
}
|
}
|
||||||
if($_found)
|
if($_found)
|
||||||
{
|
{
|
||||||
echo '<br>' . lang('The following applications require upgrades') . ':' . "\n";
|
$message = '<br>' . lang('The following applications require upgrades') . ':' . "\n";
|
||||||
echo $_app_string . "\n";
|
$message .= $_app_string . "\n";
|
||||||
echo '<br>' . lang('Please run setup to become current') . '.' . "\n";
|
$message .= '<br>' . lang('Please run setup to become current') . '.' . "\n";
|
||||||
|
|
||||||
|
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False;
|
||||||
|
unset($message);
|
||||||
unset($_app_string);
|
unset($_app_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -171,7 +127,7 @@
|
|||||||
if (isset($GLOBALS['phpgw_info']['user']['apps']['notifywindow']) &&
|
if (isset($GLOBALS['phpgw_info']['user']['apps']['notifywindow']) &&
|
||||||
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
|
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
|
||||||
{
|
{
|
||||||
?>
|
/* need to figure out how to implement this properly
|
||||||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||||||
var NotifyWindow;
|
var NotifyWindow;
|
||||||
|
|
||||||
@ -193,8 +149,8 @@
|
|||||||
}
|
}
|
||||||
</SCRIPT>
|
</SCRIPT>
|
||||||
|
|
||||||
<?php
|
|
||||||
echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
|
echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This initializes the users portal_order preference if it does not exist. */
|
/* This initializes the users portal_order preference if it does not exist. */
|
||||||
@ -249,8 +205,5 @@
|
|||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->preferences->save_repository();
|
$GLOBALS['phpgw']->preferences->save_repository();
|
||||||
}
|
}
|
||||||
|
|
||||||
//$phpgw->common->debug_phpgw_info();
|
|
||||||
//$phpgw->common->debug_list_core_functions();
|
|
||||||
$GLOBALS['phpgw']->common->phpgw_footer();
|
$GLOBALS['phpgw']->common->phpgw_footer();
|
||||||
?>
|
?>
|
||||||
|
@ -1233,28 +1233,28 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
/* Make sure some of the defaults are set */
|
/* Make sure some of the defaults are set */
|
||||||
if (!isset($phpgw_info['theme']['css']['A']))
|
if (!isset($GLOBALS['phpgw_info']['theme']['css']['A']))
|
||||||
{
|
{
|
||||||
$phpgw_info['theme']['css']['A'] = 'text-decoration:none;';
|
$GLOBALS['phpgw_info']['theme']['css']['A'] = 'text-decoration:none;';
|
||||||
}
|
}
|
||||||
if (!isset($phpgw_info['theme']['css']['A:link']) && !empty($GLOBALS['phpgw_info']['theme']['link']))
|
if (!isset($GLOBALS['phpgw_info']['theme']['css']['A:link']) && !empty($GLOBALS['phpgw_info']['theme']['link']))
|
||||||
{
|
{
|
||||||
$phpgw_info['theme']['css']['A:link'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['link'].';';
|
$GLOBALS['phpgw_info']['theme']['css']['A:link'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['link'].';';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($phpgw_info['theme']['css']['A:visited']) && !empty($GLOBALS['phpgw_info']['theme']['vlink']))
|
if (!isset($GLOBALS['phpgw_info']['theme']['css']['A:visited']) && !empty($GLOBALS['phpgw_info']['theme']['vlink']))
|
||||||
{
|
{
|
||||||
$phpgw_info['theme']['css']['A:visited'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['vlink'].';';
|
$GLOBALS['phpgw_info']['theme']['css']['A:visited'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['vlink'].';';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($phpgw_info['theme']['css']['A:active']) && !empty($GLOBALS['phpgw_info']['theme']['alink']))
|
if (!isset($GLOBALS['phpgw_info']['theme']['css']['A:active']) && !empty($GLOBALS['phpgw_info']['theme']['alink']))
|
||||||
{
|
{
|
||||||
$phpgw_info['theme']['css']['A:active'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['alink'].';';
|
$GLOBALS['phpgw_info']['theme']['css']['A:active'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['alink'].';';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($phpgw_info['theme']['css']['A:hover']) && !empty($GLOBALS['phpgw_info']['theme']['hovlink']))
|
if (!isset($GLOBALS['phpgw_info']['theme']['css']['A:hover']) && !empty($GLOBALS['phpgw_info']['theme']['hovlink']))
|
||||||
{
|
{
|
||||||
$phpgw_info['theme']['css']['A:hover'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['hovlink'].';';
|
$GLOBALS['phpgw_info']['theme']['css']['A:hover'] = 'text-decoration:none; color: '.$GLOBALS['phpgw_info']['theme']['hovlink'].';';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now put the css data into the template class */
|
/* now put the css data into the template class */
|
||||||
@ -1832,7 +1832,7 @@
|
|||||||
$prefs['email']['mail_port'] = '110';
|
$prefs['email']['mail_port'] = '110';
|
||||||
}
|
}
|
||||||
// This is going to be used to switch to the nntp class
|
// This is going to be used to switch to the nntp class
|
||||||
if (isset($phpgw_info['flags']['newsmode']) &&
|
if (isset($GLOBALS['phpgw_info']['flags']['newsmode']) &&
|
||||||
$GLOBALS['phpgw_info']['flags']['newsmode'])
|
$GLOBALS['phpgw_info']['flags']['newsmode'])
|
||||||
{
|
{
|
||||||
$prefs['email']['mail_server_type'] = 'nntp';
|
$prefs['email']['mail_server_type'] = 'nntp';
|
||||||
|
@ -53,6 +53,10 @@
|
|||||||
$value = $GLOBALS['phpgw']->translation->translate("$key",$vars);
|
$value = $GLOBALS['phpgw']->translation->translate("$key",$vars);
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
function lang_char()
|
||||||
|
{
|
||||||
|
return $GLOBALS['phpgw']->translation->translator_helper;
|
||||||
|
}
|
||||||
|
|
||||||
/* Just a temp wrapper. ###DELETE_ME#### (Seek3r) */
|
/* Just a temp wrapper. ###DELETE_ME#### (Seek3r) */
|
||||||
function check_code($code)
|
function check_code($code)
|
||||||
@ -273,8 +277,7 @@
|
|||||||
{
|
{
|
||||||
if(@isset($GLOBALS['phpgw_info']['server']['enforce_ssl']) && $GLOBALS['phpgw_info']['server']['enforce_ssl'] && !$GLOBALS['HTTP_SERVER_VARS']['HTTPS'])
|
if(@isset($GLOBALS['phpgw_info']['server']['enforce_ssl']) && $GLOBALS['phpgw_info']['server']['enforce_ssl'] && !$GLOBALS['HTTP_SERVER_VARS']['HTTPS'])
|
||||||
{
|
{
|
||||||
Header('Location: ' . $GLOBALS['phpgw']->redirect($GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']));
|
$GLOBALS['phpgw']->redirect($GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']);
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
if (@$login != '')
|
if (@$login != '')
|
||||||
{
|
{
|
||||||
@ -298,8 +301,7 @@
|
|||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
if (! $GLOBALS['phpgw']->session->verify())
|
if (! $GLOBALS['phpgw']->session->verify())
|
||||||
{
|
{
|
||||||
Header('Location: ' . $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->session->link('/login.php','code=10')));
|
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->session->link('/login.php','code=10'));
|
||||||
exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************\
|
/***************************************************************************\
|
||||||
|
Loading…
Reference in New Issue
Block a user