]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-active.php
Minor improvements, wrote all upper-case
[mailer.git] / inc / modules / guest / what-active.php
index 1c4e001ed7f000894565d9e173c8b2a25a5f20bd..fc26a49dd3c486f91ee54fdebe0c3ba3952fb0d4 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * 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 *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } // END - if
 
 // Add description as navigation point
@@ -50,12 +50,14 @@ if ((!isExtensionActive('active')) && (!isAdmin())) {
 
 // Check for members who were active only this day
 $result = SQL_QUERY("SELECT
-       `userid`, `last_online`
+       `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__);
@@ -74,15 +76,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]
 ?>