X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-active.php;h=5c7c03c0a8763760218d1b092eb559bcf9c1730e;hp=96c09bd54df646e6a62c286ed7dc42c62422cf75;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689 diff --git a/inc/modules/guest/what-active.php b/inc/modules/guest/what-active.php index 96c09bd54d..5c7c03c0a8 100644 --- a/inc/modules/guest/what-active.php +++ b/inc/modules/guest/what-active.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Liste heutiger aktiver Mitglieder * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2015 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +32,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } // END - if // Add description as navigation point @@ -49,22 +44,24 @@ if ((!isExtensionActive('active')) && (!isAdmin())) { } // END - if // Check for members who were active only this day -$result = SQL_QUERY("SELECT - `userid`,`last_online` +$result = sqlQuery("SELECT + `userid`, + `last_online` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `last_online` >= {?START_TDAY?} AND `status`='CONFIRMED' + " . runFilterChain('user_exclusion_sql', ' ') . " ORDER BY `last_online` DESC LIMIT {?active_limit?}", __FILE__, __LINE__); // Entries found? -if (!SQL_HASZERONUMS($result)) { +if (!ifSqlHasZeroNumRows($result)) { // At least one member was online so let's load them all $OUT = ''; - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // If ext-nickname is not installed, set 'nickname' to empty if (!isExtensionActive('nickname')) { $content['nickname'] = ''; @@ -74,15 +71,15 @@ if (!SQL_HASZERONUMS($result)) { $content['last_online'] = generateDateTime($content['last_online'], '2'); // Load template - $OUT .= loadTemplate('guest_list_active_row', true, $content); + $OUT .= loadTemplate('guest_list_active_row', TRUE, $content); } // END - while } else { // No member was online today! :-( - $OUT = loadTemplate('guest_list_active_row_none', true); + $OUT = loadTemplate('guest_list_active_row_none', TRUE); } // Load template -loadTemplate('guest_list_active', false, $OUT); +loadTemplate('guest_list_active', FALSE, $OUT); // [EOF] ?>