summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-10-22 22:56:21 -0700
committerArun Persaud <arun@nubati.net>2009-10-30 20:49:42 -0700
commitba7d92fad7b3ac0cfe4a6733339aa474991315a2 (patch)
tree67bd1b65dd9e4b6e084ebbcdd9fca141464b7b31 /include/db.php
parentde3f7290a0d3fb90e48c89cf508b38d77db1ccff (diff)
downloade-DoKo-ba7d92fad7b3ac0cfe4a6733339aa474991315a2.tar.gz
e-DoKo-ba7d92fad7b3ac0cfe4a6733339aa474991315a2.tar.bz2
e-DoKo-ba7d92fad7b3ac0cfe4a6733339aa474991315a2.zip
NEW FEATURE: use gravatars as icons for players
use icons at the table and on the user page (for last players logged in).
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index cc40f67..882a1ad 100644
--- a/include/db.php
+++ b/include/db.php
@@ -470,6 +470,17 @@ function DB_get_names_of_last_logins($N)
return $names;
}
+function DB_get_emails_of_last_logins($N)
+{
+ $emails = array();
+
+ $result = DB_query("SELECT email FROM User ORDER BY last_login DESC LIMIT $N");
+ while($r = DB_fetch_array($result))
+ $emails[] = $r[0];
+
+ return $emails;
+}
+
function DB_get_names_of_new_logins($N)
{
$names = array();