From 95b72fab501b778555252b005ea8618a3305ad4c Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 24 May 2008 13:33:55 -0700 Subject: 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 --- include/db.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/db.php') 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; } -- cgit v1.2.3-18-g5258