From fc2fadb0033767d7e75ff501af60b6120f982f77 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 1 Mar 2008 19:05:01 -0800 Subject: 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 --- index.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'index.php') 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 "\n\n"; - $names = DB_get_all_names(); - echo "

Registered players:

\n

\n"; - echo implode(", ",$names)."\n"; - echo "

\n"; + + $names = DB_get_names_of_new_logins(5); + echo "

New Players:

\n

\n"; + echo implode(", ",$names).",...\n"; + echo "

\n"; + + $names = DB_get_names_of_last_logins(5); + echo "

Players last logged in:

\n

\n"; + echo implode(", ",$names).",...\n"; + echo "

\n"; + + echo "\n"; } } else -- cgit v1.2.3-18-g5258