diff options
author | Arun Persaud <arun@nubati.net> | 2008-05-24 13:33:55 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-05-24 13:33:55 -0700 |
commit | 95b72fab501b778555252b005ea8618a3305ad4c (patch) | |
tree | f67dc4b3929873b0b235dc8681486efc6195b6d8 /include/db.php | |
parent | c956a58882bbfef255af6817d8f21432968ac785 (diff) | |
download | e-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.php | 13 |
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; } |