phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/templates/default navbar.inc.php,1.28.


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/templates/default navbar.inc.php,1.28.2.1,1.28.2.2
Date: Thu, 20 Mar 2003 18:54:10 -0500

Update of /cvsroot/phpgroupware/phpgwapi/templates/default
In directory subversions:/tmp/cvs-serv11613/default

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/default/Attic/navbar.inc.php,v
retrieving revision 1.28.2.1
retrieving revision 1.28.2.2
diff -C2 -r1.28.2.1 -r1.28.2.2
*** navbar.inc.php      5 Mar 2003 00:13:07 -0000       1.28.2.1
--- navbar.inc.php      20 Mar 2003 23:54:08 -0000      1.28.2.2
***************
*** 79,87 ****
                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 where session_flags != 'A'");
-                       $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>';
                }
                $now = time();
--- 79,84 ----
                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>';
                }
                $now = time();





reply via email to

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