diff options
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 11 |
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(); |