summaryrefslogtreecommitdiffstats
path: root/include/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-02-02 22:37:27 -0800
committerArun Persaud <arun@nubati.net>2010-02-04 22:17:09 -0800
commitb76cddb9313d8a67e5d7e1830503b5775666238f (patch)
tree29a1b79a6f0578c804318a9cf741ab51538940a6 /include/functions.php
parent3b407a98fe0243cef87fdd64aeb4f567cca41f40 (diff)
downloade-DoKo-b76cddb9313d8a67e5d7e1830503b5775666238f.tar.gz
e-DoKo-b76cddb9313d8a67e5d7e1830503b5775666238f.tar.bz2
e-DoKo-b76cddb9313d8a67e5d7e1830503b5775666238f.zip
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.
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php14
1 files changed, 14 insertions, 0 deletions
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;
+}
+
?>