From b76cddb9313d8a67e5d7e1830503b5775666238f Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 2 Feb 2010 22:37:27 -0800 Subject: NEW FEATURE: provide an RSS feed for each user showing in which games it's his turn the feed shows the same as the "It's your turn in these games" box. --- include/functions.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index eca0155..33da9ef 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1384,4 +1384,18 @@ function cancel_game($why,$gameid) return; } +function get_user_token($userid) +{ + + $token = NULL; + + $date = DB_get_user_creation_date($userid); + $name = DB_get_name('userid',$userid); + + if($date && $name) + $token = md5("token".$name.$date); + + return $token; +} + ?> -- cgit v1.2.3-18-g5258