NEW FEATURE: provide an RSS feed for each user showing in which games it's his turn
[e-DoKo.git] / include / functions.php
index eca0155f3e2de43cc22cdb11b91c9d8e4907dd02..33da9ef04ebbd8de8b11bb36a93538581d49cb27 100644 (file)
@@ -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;
+}
+
 ?>