[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgroupware home.php,1.18,1.19
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgroupware home.php,1.18,1.19 |
Date: |
Fri, 31 May 2002 05:25:54 -0400 |
Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv28212
Modified Files:
home.php
Log Message:
few minor bug fixed
Index: home.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/home.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** home.php 24 May 2002 10:38:01 -0000 1.18
--- home.php 31 May 2002 09:25:52 -0000 1.19
***************
*** 55,114 ****
}
! if
(($GLOBALS['phpgw_info']['user']['preferences']['common']['useframes'] &&
! $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']->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');
! if (lang('mainscreen_message') != 'mainscreen_message*')
{
echo '<center>' .
stripslashes(lang('mainscreen_message')) . '</center>';
--- 55,66 ----
}
! 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');
! if (lang('mainscreen_message') !=
'mainscreen_message'.lang_char())
{
echo '<center>' .
stripslashes(lang('mainscreen_message')) . '</center>';
***************
*** 131,136 ****
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="'
.
'http://www.phpgroupware.org">http://www.phpgroupware.org</a>';
}
--- 83,89 ----
if($GLOBALS['phpgw']->common->cmp_version($GLOBALS['phpgw_info']['server']['versions']['phpgwapi'],$line_found[1]))
{
! $message = '<p>There is a new version of
phpGroupWare available. <a href="'
.
'http://www.phpgroupware.org">http://www.phpgroupware.org</a>';
+
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=True;
}
***************
*** 162,168 ****
if($_found)
{
! echo '<br>' . lang('The following applications
require upgrades') . ':' . "\n";
! echo $_app_string . "\n";
! echo '<br>' . lang('Please run setup to become
current') . '.' . "\n";
unset($_app_string);
}
--- 115,124 ----
if($_found)
{
! $message = '<br>' . lang('The following
applications require upgrades') . ':' . "\n";
! $message .= $_app_string . "\n";
! $message .= '<br>' . lang('Please run setup to
become current') . '.' . "\n";
!
!
$GLOBALS['phpgw_info']['flags']['msgbox_data'][$message]=False;
! unset($message);
unset($_app_string);
}
***************
*** 172,176 ****
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
{
! ?>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var NotifyWindow;
--- 128,132 ----
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
{
! /* need to figure out how to implement this properly
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
var NotifyWindow;
***************
*** 194,199 ****
</SCRIPT>
- <?php
echo '<a href="javascript:opennotifywindow()">' . lang('Open
notify window') . '</a>';
}
--- 150,155 ----
</SCRIPT>
echo '<a href="javascript:opennotifywindow()">' . lang('Open
notify window') . '</a>';
+ */
}
***************
*** 250,256 ****
$GLOBALS['phpgw']->preferences->save_repository();
}
-
- //$phpgw->common->debug_phpgw_info();
- //$phpgw->common->debug_list_core_functions();
$GLOBALS['phpgw']->common->phpgw_footer();
?>
--- 206,209 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgroupware home.php,1.18,1.19,
Dan Kuykendall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.144,1.145 functions.inc.php,1.141,1.142
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.142,1.143 class.Template_experimental.inc.php,1.2,NONE
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.144,1.145 functions.inc.php,1.141,1.142
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.142,1.143 class.Template_experimental.inc.php,1.2,NONE
- Index(es):