[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/templates/idots navbar.inc.php,1.1.2.7
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/templates/idots navbar.inc.php,1.1.2.7,1.1.2.8 |
Date: |
Fri, 16 May 2003 16:51:29 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/templates/idots
In directory subversions:/tmp/cvs-serv13644
Modified Files:
Tag: Version-0_9_16-branch
navbar.inc.php
Log Message:
use the total function from the sessions class to get the number of active
sessions (direct db-query is not good and does not work for php4-sessions)
Index: navbar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/templates/idots/Attic/navbar.inc.php,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -C2 -r1.1.2.7 -r1.1.2.8
*** navbar.inc.php 10 May 2003 02:11:25 -0000 1.1.2.7
--- navbar.inc.php 16 May 2003 20:51:27 -0000 1.1.2.8
***************
*** 80,89 ****
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) &&
$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')
. '">'
! . lang('Current users') . ': ' . $db->f(0) . '</a>';
}
$now = time();
--- 80,86 ----
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) &&
$GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers'])
{
$var['current_users'] = '<a href="'
.
$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions')
. '">'
! . lang('Current users') . ': ' .
$GLOBALS['phpgw']->session->total() . '</a>';
}
$now = time();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/templates/idots navbar.inc.php,1.1.2.7,1.1.2.8,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/modules class.module_news.inc.php,1.3,1.4
- Next by Date:
[Phpgroupware-cvs] CVS: bookmarks/inc class.bo.inc.php,1.1.2.3,1.1.2.4 class.so.inc.php,1.1.2.2,1.1.2.3 class.ui.inc.php,1.1.2.6,1.1.2.7
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/modules class.module_news.inc.php,1.3,1.4
- Next by thread:
[Phpgroupware-cvs] CVS: bookmarks/inc class.bo.inc.php,1.1.2.3,1.1.2.4 class.so.inc.php,1.1.2.2,1.1.2.3 class.ui.inc.php,1.1.2.6,1.1.2.7
- Index(es):