G
Gemini_13
Гость
Lange, а причем тут отправка по ctrl + enter?
Lange, а причем тут отправка по ctrl + enter?
ты где-то до этого накосячил
$last_message = undo_htmlspecialchars(addslashes($last_message));
$last_message = undo_htmlspecialchars($last_message);
if ( !empty($last_message) )
{
$messages = ( $last_message != $message ) ? $last_message . $separator . $message : $message;
$added = 1;
if(mb_strlen($messages) > 2)
{
if($messages != $messages['post_text'])
{
DB()->sql_query("UPDATE ". BB_POSTS_TEXT ." SET post_text = '". DB()->escape($messages) ."' WHERE post_id = $post_id LIMIT 1");
add_search_words($post_id, stripslashes($messages), stripslashes($messages['topic_title']));
update_post_html(array(
'post_id' => $post_id,
'post_text' => $messages,
));
$this->response['html'] = bbcode2html($messages);
$this->response['post_id'] = $post_id;
$this->response['redirect'] = make_url(POST_URL . "$post_id#$post_id");
}
}
}
else
{