summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2010-02-04 22:23:38 -0800
committerArun Persaud <arun@nubati.net>2010-02-04 22:23:38 -0800
commitf2217bfa18ba8a8ab17dd188b38777460ae0590d (patch)
tree141fa327006ab683b01bfe6b0d1b61ca11b322e9 /include/db.php
parent2070b0fcc3a069ff88267b740317cca7363c4bb0 (diff)
parentb76cddb9313d8a67e5d7e1830503b5775666238f (diff)
downloade-DoKo-f2217bfa18ba8a8ab17dd188b38777460ae0590d.tar.gz
e-DoKo-f2217bfa18ba8a8ab17dd188b38777460ae0590d.tar.bz2
e-DoKo-f2217bfa18ba8a8ab17dd188b38777460ae0590d.zip
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 882a1ad..55d97c9 100644
--- a/include/db.php
+++ b/include/db.php
@@ -498,6 +498,15 @@ function DB_update_game_timestamp($gameid)
return;
}
+function DB_get_game_timestamp($gameid)
+{
+ $r = DB_query_array("SELECT mod_date FROM Game WHERE id=".DB_quote_smart($gameid));
+
+ if($r)
+ return $r[0];
+ else
+ return NULL;
+}
function DB_update_user_timestamp($userid)
{
@@ -514,6 +523,17 @@ function DB_get_user_timestamp($userid)
else
return NULL;
}
+
+function DB_get_user_creation_date($userid)
+{
+ $r = DB_query_array("SELECT create_date FROM User WHERE id=".DB_quote_smart($userid));
+
+ if($r)
+ return $r[0];
+ else
+ return NULL;
+}
+
function DB_get_user_timezone($userid)
{
$r = DB_query_array("SELECT timezone FROM User WHERE id=".DB_quote_smart($userid));