From ba7d92fad7b3ac0cfe4a6733339aa474991315a2 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 22 Oct 2009 22:56:21 -0700 Subject: NEW FEATURE: use gravatars as icons for players use icons at the table and on the user page (for last players logged in). --- include/functions.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 43fbb24..63216eb 100644 --- a/include/functions.php +++ b/include/functions.php @@ -803,7 +803,8 @@ function display_table () " Hand.point_call, ". " User.last_login, ". " Hand.hash, ". - " User.timezone ". + " User.timezone, ". + " User.email ". "FROM Hand ". "LEFT JOIN User ON User.id=Hand.user_id ". "WHERE Hand.game_id='".$gameid."' ". @@ -821,11 +822,14 @@ function display_table () $call = $r[5]; $hash = $r[7]; $timezone = $r[8]; + $email = $r[9]; $wins = DB_get_number_of_tricks($gameid,$pos); date_default_timezone_set($defaulttimezone); $lastlogin = strtotime($r[6]); date_default_timezone_set($timezone); $timenow = strtotime(date("Y-m-d H:i:s")); + $gravatar = "$name
"; + echo "
\n"; @@ -838,10 +842,10 @@ function display_table () $comment = $vacation[2]; $title = "begin: $start end: $stop $comment"; - echo " $name (on vacation until $stop) \n"; + echo " $gravatar (on vacation until $stop) \n"; } else - echo " $name \n"; + echo " $gravatar \n"; if($debug) echo"\n"; -- cgit v1.2.3-18-g5258