<?php
if (!empty($_POST['text']))
{
$text = check($_POST['text']);
$text = substr($text, 0, 10000);
if (!empty($text)) mysql_query("UPDATE `groups_forum_post` SET `text` = '".$text."' WHERE `id` = '".$id."' AND `user_id` = '".$user_id."' LIMIT 1");
if ($ajax_query == true) exit;
else go(URL.'/groups/forum/theme.php?id='.$arr_post['tid']);
}
?>