From b71416ebcd7b909256a3076df75fc9d1b4f917aa Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 8 Feb 2024 21:20:50 +0700 Subject: [PATCH] Updated --- library/ajax/posts.php | 3 +++ library/includes/bbcode.php | 4 ++++ library/includes/functions_atom.php | 4 ++++ library/includes/functions_post.php | 3 +++ posting.php | 3 +++ privmsg.php | 9 +++++++++ viewforum.php | 2 ++ 7 files changed, 28 insertions(+) diff --git a/library/ajax/posts.php b/library/ajax/posts.php index 239c64ce..1b3b8203 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -39,6 +39,9 @@ elseif (isset($this->request['topic_id'])) $is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post); } +// +// Define censored word matches +// if (!defined('WORD_LIST_OBTAINED')) { $orig_word = array(); diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index d6820a65..a70130bc 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -828,6 +828,10 @@ function bbcode2html ($text) { $bbcode = new bbcode(); } + + // + // Define censored word matches + // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); diff --git a/library/includes/functions_atom.php b/library/includes/functions_atom.php index 9ffc437e..a7c06424 100644 --- a/library/includes/functions_atom.php +++ b/library/includes/functions_atom.php @@ -157,6 +157,10 @@ function create_atom ($file_path, $mode, $id, $title, $topics) $tor_status = " ({$lang['TOR_STATUS_NAME'][$topic['tor_status']]})"; } $topic_title = $topic['topic_title']; + + // + // Define censored word matches + // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); diff --git a/library/includes/functions_post.php b/library/includes/functions_post.php index 2cb98883..f6941796 100644 --- a/library/includes/functions_post.php +++ b/library/includes/functions_post.php @@ -370,6 +370,9 @@ function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topi require(CLASS_DIR .'emailer.php'); $emailer = new emailer($bb_cfg['smtp_delivery']); + // + // Define censored word matches + // $orig_word = $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); diff --git a/posting.php b/posting.php index fdbd15a4..45222599 100644 --- a/posting.php +++ b/posting.php @@ -537,6 +537,9 @@ else if ( $mode == 'quote' ) { + // + // Define censored word matches + // if (!defined('WORD_LIST_OBTAINED')) { $orig_word = array(); diff --git a/privmsg.php b/privmsg.php index c2a876a0..3117ec2b 100644 --- a/privmsg.php +++ b/privmsg.php @@ -426,6 +426,9 @@ if ($mode == 'read') $private_message = $privmsg['privmsgs_text']; + // + // Define censored word matches + // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); @@ -1238,6 +1241,9 @@ else if ( $submit || $refresh || $mode != '' ) if ( $preview && !$error ) { + // + // Define censored word matches + // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); @@ -1398,6 +1404,9 @@ else 'body' => 'privmsgs.tpl') ); + // + // Define censored word matches + // $orig_word = $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); diff --git a/viewforum.php b/viewforum.php index 60571e81..663da502 100644 --- a/viewforum.php +++ b/viewforum.php @@ -387,7 +387,9 @@ if ($topics_csv = join(',', $topic_ids)) "); } +// // Define censored word matches +// $orig_word = $replacement_word = array(); obtain_word_list($orig_word, $replacement_word);