case 'font_size_larger': $user_prefs = array('FONT_SIZE' => $user_prefs['FONT_SIZE'] + 1); break; } if ($user_prefs['FONT_SIZE'] < 5) { $user_prefs['FONT_SIZE'] = 5; } if ($user_prefs['FONT_SIZE'] > 15) { $user_prefs['FONT_SIZE'] = 15; } if (!user_update_prefs($uid, $user_prefs)) { header_status(500, 'Internal Server Error'); exit; } header('Content-Type: application/json'); $content = json_encode(array('success' => true, 'font_size' => $user_prefs['FONT_SIZE'], 'html' => messages_fontsize_form($tid, $pid, true, $user_prefs['FONT_SIZE']))); break; case 'post_options': if (!session::logged_in()) { break; } cache_disable(); if (!isset($_GET['msg']) || !validate_msg($_GET['msg'])) { header_status(500, 'Internal Server Error'); exit; } list($tid, $pid) = explode('.', $_GET['msg']); if (!($thread_data = thread_get($tid, session::check_perm(USER_PERM_ADMIN_TOOLS, 0)))) { header_status(500, 'Internal Server Error'); exit; }
echo " </div>\n"; echo " </td>\n"; echo " </tr>\n"; } echo " <tr>\n"; echo " <td align=\"left\" colspan=\"3\"> </td>\n"; echo " </tr>\n"; echo "</table>\n"; echo "</div>\n"; echo "<div align=\"center\" class=\"messages_panel\">\n"; echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"96%\">\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <table class=\"box\" width=\"100%\">\n"; echo " <tr>\n"; echo " <td class=\"posthead\">\n"; echo " <br />\n"; messages_nav_strip($tid, $pid, $thread_data['LENGTH'], $posts_per_page); messages_poll_results_link($thread_data); messages_interest_form($tid, $pid, $thread_data['INTEREST']); messages_fontsize_form($tid, $pid); messages_beehive_bar(); echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo "</table>\n"; echo "</div>\n"; messages_forum_stats($tid, $pid); html_draw_bottom();