2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 11/26/2004 *
4 * =================== Last change: 11/26/2004 *
6 * -------------------------------------------------------------------- *
7 * File : what-active.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Today active members list *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Liste heutiger aktiver Mitglieder *
12 * -------------------------------------------------------------------- *
13 * Copyright (c) 2003 - 2009 by Roland Haeder *
14 * Copyright (c) 2009 - 2015 by Mailer Developer Team *
15 * For more information visit: http://mxchange.org *
17 * This program is free software; you can redistribute it and/or modify *
18 * it under the terms of the GNU General Public License as published by *
19 * the Free Software Foundation; either version 2 of the License, or *
20 * (at your option) any later version. *
22 * This program is distributed in the hope that it will be useful, *
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
25 * GNU General Public License for more details. *
27 * You should have received a copy of the GNU General Public License *
28 * along with this program; if not, write to the Free Software *
29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
31 ************************************************************************/
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
38 // Add description as navigation point
39 addYouAreHereLink('guest', __FILE__);
41 if ((!isExtensionActive('active')) && (!isAdmin())) {
42 displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=active%}');
46 // Check for members who were active only this day
47 $result = sqlQuery("SELECT
51 `{?_MYSQL_PREFIX?}_user_data`
53 `last_online` >= {?START_TDAY?} AND
55 " . runFilterChain('user_exclusion_sql', ' ') . "
58 LIMIT {?active_limit?}", __FILE__, __LINE__);
61 if (!ifSqlHasZeroNumRows($result)) {
62 // At least one member was online so let's load them all
64 while ($content = sqlFetchArray($result)) {
65 // If ext-nickname is not installed, set 'nickname' to empty
66 if (!isExtensionActive('nickname')) {
67 $content['nickname'] = '';
71 $content['last_online'] = generateDateTime($content['last_online'], '2');
74 $OUT .= loadTemplate('guest_list_active_row', TRUE, $content);
77 // No member was online today! :-(
78 $OUT = loadTemplate('guest_list_active_row_none', TRUE);
82 loadTemplate('guest_list_active', FALSE, $OUT);