diff --git a/htdocs/util/stats/rank.php b/htdocs/util/stats/rank.php new file mode 100644 index 00000000..7057e43c --- /dev/null +++ b/htdocs/util/stats/rank.php @@ -0,0 +1,13 @@ + \ No newline at end of file diff --git a/htdocs/util2/stats/rank.php b/htdocs/util2/stats/rank.php index 885ff130..6b5f4b59 100644 --- a/htdocs/util2/stats/rank.php +++ b/htdocs/util2/stats/rank.php @@ -12,7 +12,8 @@ $n = 1; $rs = sql('SELECT `user`.`username`, `stat_user`.`found` FROM `stat_user` - INNER JOIN `user` on `stat_user`.`user_id`=`user`.`user_id` + INNER JOIN `user` on `stat_user`.`user_id`=`user`.`user_id` + WHERE `user`.`is_active_flag`=1 ORDER BY `stat_user`.`found` DESC LIMIT 100'); while ($r = sql_fetch_assoc($rs))