plugins/SpecialUserPrefs.php
changeset 555 ac4c6a7f01d8
parent 541 acb7e23b6ffa
child 564 a1c450a911a6
--- a/plugins/SpecialUserPrefs.php	Mon May 12 00:59:46 2008 -0400
+++ b/plugins/SpecialUserPrefs.php	Fri May 16 12:22:26 2008 -0400
@@ -514,6 +514,7 @@
         $hobbies = $db->escape($hobbies);
         
         $email_public = ( isset($_POST['email_public']) ) ? '1' : '0';
+        $disable_js_fx = ( isset($_POST['disable_js_fx']) ) ? '1' : '0';
         
         $session->real_name = $real_name;
         
@@ -566,7 +567,7 @@
         
         $q = $db->sql_query('UPDATE '.table_prefix."users_extra SET user_aim='$imaddr_aim',user_yahoo='$imaddr_yahoo',user_msn='$imaddr_msn',
                                user_xmpp='$imaddr_xmpp',user_homepage='$homepage',user_location='$location',user_job='$occupation',
-                               user_hobbies='$hobbies',email_public=$email_public
+                               user_hobbies='$hobbies',email_public=$email_public,disable_js_fx=$disable_js_fx
                                WHERE user_id=$session->user_id;");
         
         if ( !$q )
@@ -725,6 +726,10 @@
             <td class="row1" style="width: 50%;"><input type="checkbox" id="chk_email_public" name="email_public" <?php if ($session->user_extra['email_public'] == 1) echo 'checked="checked"'; ?> size="30" /></td>
           </tr>
           <tr>
+            <td class="row2" style="width: 50%;"><label for="chk_jsfx"><?php echo $lang->get('usercp_publicinfo_field_jsfx'); ?></label><br /><small><?php echo $lang->get('usercp_publicinfo_field_jsfx_hint'); ?></small></td>
+            <td class="row1" style="width: 50%;"><input type="checkbox" id="chk_jsfx" name="disable_js_fx" <?php if ($session->user_extra['disable_js_fx'] == 1) echo 'checked="checked"'; ?> size="30" /></td>
+          </tr>
+          <tr>
             <th class="subhead" colspan="2">
               <input type="submit" name="submit" value="<?php echo $lang->get('usercp_publicinfo_btn_save'); ?>" />
             </th>