- SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET html='%s' WHERE userid=%s LIMIT 1",
- array($_POST['html'], $GLOBALS['userid']), __FILE__, __LINE__);
- LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_SETTINGS_SAVED'));
-}
- else
-{
- // Load template for changing settings
- $result = SQL_QUERY_ESC("SELECT html FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
- array($GLOBALS['userid']), __FILE__, __LINE__);
- list($mode) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1",
+ array(postRequestElement('html'), getMemberId()), __FILE__, __LINE__);
+ displayMessage('{--MEMBER_SETTINGS_SAVED--}');
+} else {
+ // Prepare it
+ $content['html_y'] = '';
+ $content['html_n'] = '';
+ $content['html_' . strtolower(getUserData('html'))] = ' checked="checked"';