diff --git a/upload/config.php b/upload/config.php index 9f189b3f4..d444a6a1f 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.0.2'; -$bb_cfg['tp_release_state'] = 'TP II r187'; +$bb_cfg['tp_release_state'] = 'TP II r188'; $bb_cfg['tp_release_date'] = '2-08-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger diff --git a/upload/includes/functions_torrent.php b/upload/includes/functions_torrent.php index 0857b281e..e89bbd4ab 100644 --- a/upload/includes/functions_torrent.php +++ b/upload/includes/functions_torrent.php @@ -245,7 +245,7 @@ function change_tor_type ($attach_id, $tor_status_gold) $result = DB()->query($sql); $row = DB()->sql_fetchrow($result); $sql = "INSERT INTO ". BB_BT_TORRENTS ."_del(is_del, topic_id,info_hash, dl_percent) - VALUES (0, " .$row['topic_id'] .", '". $row['info_hash'] ."', ". $row['dl_percent'] .") ON DUPLICATE KEY UPDATE dl_percent = values(dl_percent)"; + VALUES (0, " .$row['topic_id'] .", '". DB()->escape($row['info_hash']) ."', ". $row['dl_percent'] .") ON DUPLICATE KEY UPDATE dl_percent = values(dl_percent)"; if (!DB()->sql_query($sql)) { message_die(GENERAL_ERROR, "Error delete_torrents", '', __LINE__, __FILE__, $sql); diff --git a/upload/privmsg.php b/upload/privmsg.php index 280485e50..d7507cbcc 100644 --- a/upload/privmsg.php +++ b/upload/privmsg.php @@ -1240,7 +1240,6 @@ else if ( $submit || $refresh || $mode != '' ) $privmsg_subject = $privmsg['privmsgs_subject']; $privmsg_message = $privmsg['privmsgs_text']; - $privmsg_bbcode_enabled = ($privmsg['privmsgs_enable_bbcode'] == 1); $to_username = $privmsg['username']; $to_userid = $privmsg['user_id']; diff --git a/upload/templates/admin/admin_forum_prune.tpl b/upload/templates/admin/admin_forum_prune.tpl index 92e1b2178..afaaa7b53 100644 --- a/upload/templates/admin/admin_forum_prune.tpl +++ b/upload/templates/admin/admin_forum_prune.tpl @@ -26,7 +26,7 @@