phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgroupware home.php,1.25,1.26


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgroupware home.php,1.25,1.26
Date: Tue, 29 Oct 2002 18:11:05 -0500

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv18925

Modified Files:
        home.php 
Log Message:
update

Index: home.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/home.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** home.php    29 Oct 2002 22:15:31 -0000      1.25
--- home.php    29 Oct 2002 23:11:03 -0000      1.26
***************
*** 28,39 ****
        }
  
        $GLOBALS['phpgw_info']['flags'] = array
        (
!               'noheader'                => True,
!               'nonavbar'                => True,
!               'currentapp'              => 'home',
!               'enable_network_class'    => True,
!               'enable_contacts_class'   => True,
!               'enable_nextmatchs_class' => True
        );
        include('header.inc.php');
--- 28,52 ----
        }
  
+       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
        (
!               'noheader'                                      => True,
!               'nonavbar'                                      => True,
!               'currentapp'                            => 'home',
!               'enable_network_class'          => True,
!               'enable_contacts_class'         => True,
!               'enable_nextmatchs_class'       => True
        );
        include('header.inc.php');
***************
*** 51,93 ****
        }
  
!       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');
!               if (lang('mainscreen_message') != 
'mainscreen_message'.lang_char())
!               {
!                       echo '<center>' . 
stripslashes(lang('mainscreen_message')) . '</center>';
!               }
! 
!               if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) &&
!                       $GLOBALS['phpgw_info']['user']['apps']['admin']) &&
!                       
(isset($GLOBALS['phpgw_info']['server']['checkfornewversion']) &&
!                       $GLOBALS['phpgw_info']['server']['checkfornewversion']))
                {
!                       $GLOBALS['phpgw']->network->set_addcrlf(False);
!                       $lines = 
$GLOBALS['phpgw']->network->gethttpsocketfile('http://www.phpgroupware.org/currentversion');
!                       for ($i=0; $i<count($lines); $i++)
                        {
!                               if(@ereg('currentversion',$lines[$i]))
!                               {
!                                       $line_found = 
explode(':',chop($lines[$i]));
!                               }
                        }
!                       
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;
!                       }
  
!                       $_found = False;
                        $GLOBALS['phpgw']->db->query("select 
app_name,app_version from phpgw_applications",__LINE__,__FILE__);
                        while($GLOBALS['phpgw']->db->next_record())
--- 64,95 ----
        }
  
!       $GLOBALS['phpgw']->translation->add_app('mainscreen');
!       if (lang('mainscreen_message') != 'mainscreen_message'.lang_char())
        {
!               echo '<center>' . stripslashes(lang('mainscreen_message')) . 
'</center>';
        }
  
!       if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) &&
!               $GLOBALS['phpgw_info']['user']['apps']['admin']) &&
!               (isset($GLOBALS['phpgw_info']['server']['checkfornewversion']) 
&&
!               $GLOBALS['phpgw_info']['server']['checkfornewversion']))
!       {
!               $GLOBALS['phpgw']->network->set_addcrlf(False);
!               $lines = 
$GLOBALS['phpgw']->network->gethttpsocketfile('http://www.phpgroupware.org/currentversion');
!               for ($i=0; $i<count($lines); $i++)
                {
!                       if(@ereg('currentversion',$lines[$i]))
                        {
!                               $line_found = explode(':',chop($lines[$i]));
                        }
!               }
!               
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;
!               }
  
!               $_found = False;
                        $GLOBALS['phpgw']->db->query("select 
app_name,app_version from phpgw_applications",__LINE__,__FILE__);
                        while($GLOBALS['phpgw']->db->next_record())
***************
*** 212,218 ****
        }
  
!       if 
(!$GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'])
!       {
!               
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output);
        }
  ?>
--- 214,218 ----
        }
  
!       
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output);
        }
  ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]