Only show new players from the last 45 days
[e-DoKo.git] / include / db.php
index 33f0fff2dd291040bce2126e8ab65da6d52460b7..2ea2ac0a1dca2b7aa7c6f10e6a16c272b6f9588f 100644 (file)
@@ -507,7 +507,9 @@ function DB_get_names_of_new_logins($N)
 {
   $names  = array();
 
-  $result = DB_query("SELECT fullname FROM User ORDER BY create_date DESC, id DESC LIMIT $N");
+  $result = DB_query("SELECT fullname FROM User".
+                    " WHERE create_date >=(NOW() - interval 45 day)".
+                    " ORDER BY create_date DESC, id DESC LIMIT $N");
   while($r = DB_fetch_array($result))
     $names[] = $r[0];