]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-top10.php
Mailer project continued:
[mailer.git] / inc / modules / guest / what-top10.php
index e80566d930c3f11e883063f748b12e93dfe3f4b4..fe0892ddb042cdef58b07305f68c902e09b9c17c 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
@@ -53,12 +53,14 @@ $rows = array();
 
 // TOP logins
 $result = SQL_QUERY("SELECT
-       `userid`,`last_online`
+       `userid`,
+       `last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
        `total_logins` > 0 AND
        `status`='CONFIRMED'
+       " . runFilterChain('user_exclusion_sql', ' ') . "
 ORDER BY
        `total_logins` DESC
 LIMIT {?top10_max?}", __FILE__, __LINE__);
@@ -112,6 +114,7 @@ ON
 WHERE
        p.points > 0 AND
        d.`status`='CONFIRMED'
+       " . runFilterChain('user_exclusion_sql', ' ') . "
 GROUP BY
        p.userid
 ORDER BY
@@ -151,7 +154,7 @@ $rows['points_out'] = $OUT;
 // Free result
 SQL_FREERESULT($result);
 
-// TOP referal "hunter"
+// TOP referral "hunter"
 $result = SQL_QUERY("SELECT
        d.userid,
        SUM(r.counter) AS refs,
@@ -165,6 +168,7 @@ ON
 WHERE
        r.counter > 0 AND
        d.`status`='CONFIRMED'
+       " . runFilterChain('user_exclusion_sql', ' ') . "
 GROUP BY
        r.userid
 ORDER BY
@@ -203,7 +207,7 @@ if ($count < getConfig('top10_max')) {
 } // END - if
 
 // Remember the rows in array
-$rows['referals_out'] = $OUT;
+$rows['referrals_out'] = $OUT;
 
 // Free result
 SQL_FREERESULT($result);