summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
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;
}