NEW FEATURE: provide an RSS feed for each user showing in which games it's his turn
[e-DoKo.git] / include / user.php
index 0273183d0ba5a99b909f8319362ac91c82881527..a027f40ee18cf3a173ffcb185ce30e66a119555f 100644 (file)
@@ -54,8 +54,8 @@ if(myisset("forgot"))
              "to log into the server. The new password is valid for 24h, so make\n".
              "sure you reset your password to something new. Your old password will\n".
              "also still be valid until you set a new one.\n";
-           $subject = $EmailName.' Recovery';
-           sendmail($email,$subject,$message);
+           $subject = 'Recovery';
+           mymail($myid,$subject,$message);
 
            /* we save these in the database */
            DB_set_recovery_password($myid,md5($newpw));
@@ -206,9 +206,14 @@ else
        echo "</p>\n";
 
        /* display last 5 users that logged on */
-       $names = DB_get_names_of_last_logins(5);
        echo "<h4>Players last logged in:</h4>\n<p>\n";
-       echo implode(", ",$names).",...\n";
+
+       $names  = DB_get_names_of_last_logins(7);
+       $emails = DB_get_emails_of_last_logins(7);
+       for($i=0;$i<7;$i++)
+         {
+           echo "<img class=\"gravatar\" title=\"".$names[$i]."\" src=\"http://www.gravatar.com/avatar/".md5(strtolower(trim($emails[$i])))."?d=identicon\" />\n";
+         }
        echo "</p>\n";
 
        echo "</div>\n";