phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/templates/linux-at-work.de navbar.inc.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/templates/linux-at-work.de navbar.inc.php,1.6.2.4,1.6.2.5
Date: Thu, 20 Mar 2003 18:54:10 -0500

Update of /cvsroot/phpgroupware/phpgwapi/templates/linux-at-work.de
In directory subversions:/tmp/cvs-serv11613/linux-at-work.de

Modified Files:
      Tag: Version-0_9_14-branch
        navbar.inc.php 
Log Message:
Moved list_sessions and total from admin.socurrentsessions into the 
session-class and implemented them for php4 too.
So admin.socurrentsessions is no longer used and bocurrentsessions as well as 
the phpgwapi/templates/xxx/navbar.inc.php use the session-class to get the 
number of loged-in-users.
Aktivated the accesslog für php4-sessions too.


Index: navbar.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/phpgwapi/templates/linux-at-work.de/navbar.inc.php,v
retrieving revision 1.6.2.4
retrieving revision 1.6.2.5
diff -C2 -r1.6.2.4 -r1.6.2.5
*** navbar.inc.php      16 Mar 2003 19:15:33 -0000      1.6.2.4
--- navbar.inc.php      20 Mar 2003 23:54:08 -0000      1.6.2.5
***************
*** 82,90 ****
                if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && 
isset($GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers']))
                {
-                       $db  = $GLOBALS['phpgw']->db;
-                       $db->query('select count(session_id) from 
phpgw_sessions');
-                       $db->next_record();
                        $var['current_users'] = '<a href="' . 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions')
!                               . '">&nbsp;' . lang('Current users') . ': ' . 
$db->f(0) . '</a>';
                        $tpl->set_var($var);
                }
--- 82,87 ----
                if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && 
isset($GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers']))
                {
                        $var['current_users'] = '<a href="' . 
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions')
!                               . '">&nbsp;' . lang('Current users') . ': ' . 
$GLOBALS['phpgw']->session->total() . '</a>';
                        $tpl->set_var($var);
                }





reply via email to

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