summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-03-01 19:05:01 -0800
committerArun Persaud <arun@nubati.net>2008-03-01 19:10:04 -0800
commitfc2fadb0033767d7e75ff501af60b6120f982f77 (patch)
tree36a0f353c6765d02d0701eaaee8e30b710ed5a64 /index.php
parent73a6f86691f53d8eb6339b5bb5e9156822cc7e54 (diff)
downloade-DoKo-fc2fadb0033767d7e75ff501af60b6120f982f77.tar.gz
e-DoKo-fc2fadb0033767d7e75ff501af60b6120f982f77.tar.bz2
e-DoKo-fc2fadb0033767d7e75ff501af60b6120f982f77.zip
FEATURE: display names of new players and last logged in players
instead of showing all registered players, just display the above. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/index.php b/index.php
index 4b5ca5c..c3988b5 100644
--- a/index.php
+++ b/index.php
@@ -2248,10 +2248,18 @@ else if( myisset("email","password") || isset($_SESSION["name"]) )
}
}
echo "</td></tr>\n</table>\n";
- $names = DB_get_all_names();
- echo "<h4>Registered players:</h4>\n<p>\n";
- echo implode(", ",$names)."\n";
- echo "</p>\n</div>";
+
+ $names = DB_get_names_of_new_logins(5);
+ echo "<h4>New Players:</h4>\n<p>\n";
+ echo implode(", ",$names).",...\n";
+ echo "</p>\n";
+
+ $names = DB_get_names_of_last_logins(5);
+ echo "<h4>Players last logged in:</h4>\n<p>\n";
+ echo implode(", ",$names).",...\n";
+ echo "</p>\n";
+
+ echo "</div>\n";
}
}
else