/posting.php перед
Код: Выделить всё
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
Код: Выделить всё
if($mode=='quote' && $post_data['forumas']==1 && $post_data['post_attachment'])
{
$result=$db->sql_query("SELECT post_msg_id FROM ".ATTACHMENTS_TABLE." WHERE post_msg_id = '{$post_id}' AND extension = 'torrent' LIMIT 1");
$is_tracker=$db->sql_fetchfield('post_msg_id');
if($is_tracker)
{
$message_parser->message = '[quote="' . $post_data['quote_username'] . '"]Re: ' . $post_data['post_subject'] . "[/quote]\n";
}
}
Код: Выделить всё
if ($row['bbcode_bitfield'])
Код: Выделить всё
if($has_attachments && $end-1==$i)
{
$result=$db->sql_query("SELECT a.post_msg_id FROM ".ATTACHMENTS_TABLE." a LEFT JOIN ".FORUMS_TABLE." f ON (f.forum_id='{$row['forum_id']}') WHERE f.forumas='1' AND a.post_msg_id = '{$row['post_id']}' AND a.extension = 'torrent' LIMIT 1");
$is_tracker=$db->sql_fetchfield('post_msg_id');
if($is_tracker)
{
$decoded_message = 'Re: ' . $row['post_subject'];
}
}
Код: Выделить всё
if ($action == 'forward' && !$preview && !$refresh && !$submit)
Код: Выделить всё
if($action=='quotepost' && !$preview && !$refresh && !$submit)
{
$result=$db->sql_query("SELECT a.post_msg_id FROM ".ATTACHMENTS_TABLE." a LEFT JOIN ".FORUMS_TABLE." f ON (f.forum_id='{$post['forum_id']}') WHERE f.forumas='1' AND a.post_msg_id = '{$post_id}' AND a.extension = 'torrent' LIMIT 1");
$is_tracker=$db->sql_fetchfield('post_msg_id');
if($is_tracker)
{
$message_parser->message = $message_link . '[quote="' . $quote_username . '"]' . $message_subject . "[/quote]\n";
}
}