diff --git a/contributors.txt b/contributors.txt index f2274757c..c88224b24 100644 --- a/contributors.txt +++ b/contributors.txt @@ -35,6 +35,7 @@ Nightwolf nord51 Вася Alexander.S (http://torrent.dchub.ws/) +sasha20072007 ***************************** ** Прочая информация ** diff --git a/upload/config.php b/upload/config.php index 904042443..45122ce5f 100644 --- a/upload/config.php +++ b/upload/config.php @@ -73,7 +73,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do // Version info $bb_cfg['tp_version'] = '2.1 (RC)'; $bb_cfg['tp_release_date'] = '31-08-2014'; -$bb_cfg['tp_release_state'] = 'R599b'; +$bb_cfg['tp_release_state'] = 'R599c'; // Database $charset = 'utf8'; @@ -81,9 +81,11 @@ $pconnect = false; // Настройка баз данных ['db']['srv_name'] => (array) srv_cfg; // порядок параметров srv_cfg (хост, название базы, пользователь, пароль, charset, pconnect); -$bb_cfg['db']['db1'] = array('localhost', 'dbase', 'user', 'pass', $charset, $pconnect); -//$bb_cfg['db']['db2'] = array('localhost2', 'dbase2', 'user2', 'pass2', $charset, $pconnect); -//$bb_cfg['db']['db3'] = array('localhost3', 'dbase3', 'user2', 'pass3', $charset, $pconnect); +$bb_cfg['db'] = array( + 'db1' => array('localhost', 'dbase', 'user', 'pass', $charset, $pconnect), + //'db2' => array('localhost2', 'dbase2', 'user2', 'pass2', $charset, $pconnect), + //'db3' => array('localhost3', 'dbase3', 'user2', 'pass3', $charset, $pconnect), +); $bb_cfg['db_alias'] = array( // 'alias' => 'srv_name' diff --git a/upload/includes/bbcode.php b/upload/includes/bbcode.php index c691b7e69..ce2966ac1 100644 --- a/upload/includes/bbcode.php +++ b/upload/includes/bbcode.php @@ -578,7 +578,7 @@ class bbcode $url_exp = '[\w\#!$%&~/.\-;:=,?@а-яА-Я\[\]+]+?'; $text = preg_replace_callback("#\[url\]((?:https?://)?$url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text); $text = preg_replace_callback("#\[url\](www\.$url_exp)\[/url\]#isu", array(&$this, 'url_callback'), $text); - $text = preg_replace_callback("#\[url=(https?://$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text); + $text = preg_replace_callback("#\[url=((?:https?://)?$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text); $text = preg_replace_callback("#\[url=(www\.$url_exp)\]([^?\n\t].*?)\[/url\]#isu", array(&$this, 'url_callback'), $text); // Normalize block level tags wrapped with new lines @@ -619,7 +619,7 @@ class bbcode /** * Spam filter */ - static function spam_filter ($text) + private function spam_filter ($text) { global $bb_cfg; static $spam_words = null; diff --git a/upload/language/uk/main.php b/upload/language/uk/main.php index 705082b02..aee05039e 100644 --- a/upload/language/uk/main.php +++ b/upload/language/uk/main.php @@ -2193,13 +2193,13 @@ $lang['WHOIS_INFO'] = 'Інформація про IP адресу'; $lang['SHOW_MOD_HOME_PAGE'] = 'Показувати модераторів на головній'; $lang['PREMOD_HELP'] = '
{L_CONTROL_PANEL_EXPLAIN}
@@ -189,51 +188,52 @@ + \ No newline at end of file diff --git a/upload/templates/admin/admin_extensions.tpl b/upload/templates/admin/admin_extensions.tpl index 2978e7c0a..5757d805e 100644 --- a/upload/templates/admin/admin_extensions.tpl +++ b/upload/templates/admin/admin_extensions.tpl @@ -1,4 +1,3 @@ - @@ -216,5 +215,4 @@ -{L_FORUM_PRUNE_EXPLAIN}
diff --git a/upload/templates/admin/admin_forumauth_list.tpl b/upload/templates/admin/admin_forumauth_list.tpl index 73abfdd5c..ff49557fe 100644 --- a/upload/templates/admin/admin_forumauth_list.tpl +++ b/upload/templates/admin/admin_forumauth_list.tpl @@ -1,4 +1,3 @@ - @@ -86,9 +85,8 @@ - + - - + \ No newline at end of file diff --git a/upload/templates/admin/admin_forums.tpl b/upload/templates/admin/admin_forums.tpl index b87d60ac1..07dd206f9 100644 --- a/upload/templates/admin/admin_forums.tpl +++ b/upload/templates/admin/admin_forums.tpl @@ -1,4 +1,3 @@ - diff --git a/upload/templates/admin/admin_log.tpl b/upload/templates/admin/admin_log.tpl index 80334349f..d7f871144 100644 --- a/upload/templates/admin/admin_log.tpl +++ b/upload/templates/admin/admin_log.tpl @@ -1,4 +1,3 @@ -