From fe78d752c80c8d4872a88dd4be19c7613df9f350 Mon Sep 17 00:00:00 2001 From: following Date: Mon, 5 Aug 2013 12:18:01 +0200 Subject: [PATCH] restored old rank.php url and removed disabled users from stats --- htdocs/util/stats/rank.php | 13 +++++++++++++ htdocs/util2/stats/rank.php | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 htdocs/util/stats/rank.php 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))