// close_topic_with_text_mod start
if($userdata['user_level'] == MODERATOR)
{
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, ":locked:"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod end