X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-usr_online.php;h=7e4cf237ac8bd028daed8ba7dcd517bef7886656;hb=c5173c4d66be7ec72fbf8051a2097cbb377e87a0;hp=cda7d8e4d75348899aec87ca08786f3660e34f39;hpb=58bd7e0df5e4bee593b7ad46d66d3b1acbec2886;p=mailer.git diff --git a/inc/modules/admin/what-usr_online.php b/inc/modules/admin/what-usr_online.php index cda7d8e4d7..7e4cf237ac 100644 --- a/inc/modules/admin/what-usr_online.php +++ b/inc/modules/admin/what-usr_online.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -43,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Online stats are only working if extension ext-online is installed if (isExtensionActive('online')) { @@ -59,9 +57,9 @@ if (isExtensionActive('online')) { // 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__); - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // List all online users - $OUT = ''; $SW = 2; + $OUT = ''; while ($row = SQL_FETCHARRAY($result)) { if ($row['is_admin'] == 'Y') { // Is an administrator @@ -75,12 +73,10 @@ if (isExtensionActive('online')) { } // Add more content - $row['sw'] = $SW; $row['timestamp'] = generateDateTime($row['timestamp'], 2); // Load row template and switch color $OUT .= loadTemplate('admin_list_online_row', true, $row); - $SW = 3 - $SW; } // END - while // Free memory @@ -88,7 +84,6 @@ if (isExtensionActive('online')) { // Remember rows and fancy time in array $content['rows'] = $OUT; - $content['online_timeout'] = '{--ONLINE_TIMEOUT_IS--}'; // Load footer template loadTemplate('admin_list_online', false, $content);