From 6f5104a9e5929a44c61070691126b4af2a01746d Mon Sep 17 00:00:00 2001 From: nanosimbiot Date: Mon, 4 Jul 2011 21:43:34 +0000 Subject: [PATCH] r77 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit обработка ссылок в bbcode git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@77 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 4 +-- upload/includes/bbcode.php | 58 +++++++++++++++++------------------ upload/includes/functions.php | 7 ++--- 3 files changed, 33 insertions(+), 36 deletions(-) diff --git a/upload/config.php b/upload/config.php index bbad6b8c9..12867afdf 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,8 +57,8 @@ $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 r76'; -$bb_cfg['tp_release_date'] = '04-07-2011'; +$bb_cfg['tp_release_state'] = 'TP II r77'; +$bb_cfg['tp_release_date'] = '05-07-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger $bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут"; diff --git a/upload/includes/bbcode.php b/upload/includes/bbcode.php index 182eee8c7..7bcce2a7a 100644 --- a/upload/includes/bbcode.php +++ b/upload/includes/bbcode.php @@ -583,30 +583,25 @@ class bbcode function init_replacements () { $tpl = $this->tpl; - $url_exp = '[\w\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]+?'; $img_url_exp = 'http://[^\s\?&;:=\#\"<>]+?\.(jpg|jpeg|gif|png)'; $email_exp = '[a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+'; $this->preg = array( - '#\[quote="(.+?)"\]#i' => $tpl['quote_username_open'], - '#\[spoiler="(.+?)"\]#i' => $tpl['spoiler_title_open'], - '#\[list=(a|A|i|I|1)\]#i' => '