projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NEW FEATURE: provide an RSS feed for each user showing in which games it's his turn
[e-DoKo.git]
/
include
/
functions.php
diff --git
a/include/functions.php
b/include/functions.php
index eca0155f3e2de43cc22cdb11b91c9d8e4907dd02..33da9ef04ebbd8de8b11bb36a93538581d49cb27 100644
(file)
--- 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;
+}
+
?>