} if (isset($_POST['offset_match']) && is_numeric($_POST['offset_match'])) { $offset_match = $_POST['offset_match']; } else { $offset_match = 0; } // Restart the spell check if (isset($_POST['restart'])) { $current_word = -1; $offset_match = 0; $t_ignored_words = array(); } // New instance of the dictionary $dictionary = new dictionary(); // Check it's installed if (!$dictionary->is_installed()) { html_draw_error(gettext("No dictionary has been installed. Please contact the forum owner to remedy this.")); } // Initialise it $dictionary->initialise($t_content, $t_ignored_words, $current_word, $obj_id, $offset_match); // Check for submit if (isset($_POST['ignoreall'])) { // User wants to ignore all references to the current word $dictionary->add_ignored_word($dictionary->get_current_word()); $dictionary->find_next_word(); } else { if (isset($_POST['add'])) { // User wants to add the current word to his dictionary if (isset($_POST['word']) && strlen(trim($_POST['word'])) > 0) { $t_custom_word = trim($_POST['word']); $dictionary->add_custom_word($t_custom_word);