* *
* -------------------------------------------------------------------- *
* File : what-usr_online.php *
* *
* -------------------------------------------------------------------- *
* File : what-usr_online.php *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Online stats are only working if extension ext-online is installed
if (isExtensionActive('online')) {
// Count guests, members and admins
// @TODO Add a filter for sponsor
// Online stats are only working if extension ext-online is installed
if (isExtensionActive('online')) {
// Count guests, members and admins
// @TODO Add a filter for sponsor
- $content['guests_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='N'");
- $content['admins_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', true, " AND `is_member`='Y'");
- $content['members_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', true);
+ $content['guests_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='N'");
+ $content['admins_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE, " AND `is_member`='Y'");
+ $content['members_online'] = countSumTotalData('N', 'online', 'id', 'is_admin', TRUE);
// Check for online users
$result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
__FILE__, __LINE__);
// Check for online users
$result = SQL_QUERY("SELECT `id`, `ip`, `userid`, `refid`, `module`, `action`, `what`, `is_member`, `is_admin`, `timestamp` FROM `{?_MYSQL_PREFIX?}_online` ORDER by `timestamp` DESC",
__FILE__, __LINE__);