summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-24 13:33:55 -0700
committerArun Persaud <arun@nubati.net>2008-05-24 13:33:55 -0700
commit95b72fab501b778555252b005ea8618a3305ad4c (patch)
treef67dc4b3929873b0b235dc8681486efc6195b6d8 /include/db.php
parentc956a58882bbfef255af6817d8f21432968ac785 (diff)
downloade-DoKo-95b72fab501b778555252b005ea8618a3305ad4c.tar.gz
e-DoKo-95b72fab501b778555252b005ea8618a3305ad4c.tar.bz2
e-DoKo-95b72fab501b778555252b005ea8618a3305ad4c.zip
NEW FEATURE: automatically accept new games
user can set this in the preferences now and won't be asked during a game setup Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 208334f..c8750b4 100644
--- a/include/db.php
+++ b/include/db.php
@@ -705,6 +705,19 @@ function DB_get_PREF($myid)
else
$PREF["email"]="emailnonaddict";
+ /* Autosetup */
+ $r = DB_query_array("SELECT value FROM User_Prefs".
+ " WHERE user_id='$myid' AND pref_key='autosetup'" );
+ if($r)
+ {
+ if($r[0]=='yes')
+ $PREF['autosetup']='yes';
+ else
+ $PREF['autosetup']='no';
+ }
+ else
+ $PREF['autosetup']='no';
+
return $PREF;
}