From 402a153f87068529a4b77d8000e40b34e4d75a7e Mon Sep 17 00:00:00 2001 From: Exile Date: Wed, 10 Dec 2014 18:38:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20=D1=81?= =?UTF-8?q?=20=D1=80=D0=B5=D0=BA=D0=B0=D0=BF=D1=87=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправление ошибки с рекапчей, увеличение размера загружаемого торрент-файла. --- ajax.php | 6 +----- library/config.php | 6 +++--- library/includes/functions.php | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/ajax.php b/ajax.php index b0d3e8b0b..0eaa056cb 100644 --- a/ajax.php +++ b/ajax.php @@ -42,12 +42,8 @@ switch ($ajax->action) case 'view_torrent': case 'mod_action': case 'change_tor_status': - case 'gen_passkey': - require(ATTACH_DIR . 'attachment_mod.php'); - require(INC_DIR . 'functions_torrent.php'); - break; - case 'change_torrent': + case 'gen_passkey': require(ATTACH_DIR . 'attachment_mod.php'); require(INC_DIR . 'functions_torrent.php'); break; diff --git a/library/config.php b/library/config.php index 662e754be..faf793a6c 100644 --- a/library/config.php +++ b/library/config.php @@ -72,8 +72,8 @@ $domain_name = 'torrentpier.me'; // enter here your primary domain name of your $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $domain_name; // Version info -$bb_cfg['tp_version'] = '2.1.5'; -$bb_cfg['tp_release_date'] = '06-12-2014'; +$bb_cfg['tp_version'] = '2.1.6'; +$bb_cfg['tp_release_date'] = '14-12-2014'; $bb_cfg['tp_release_state'] = 'ALPHA'; $bb_cfg['tp_zf_version'] = '2.3.3'; @@ -600,7 +600,7 @@ $bb_cfg['file_id_ext'] = array( // Attachments $bb_cfg['attach'] = array( 'upload_path' => DATA_DIR . 'torrent_files', // путь к директории с torrent файлами - 'max_size' => 250*1024, // размер аватары в байтах + 'max_size' => 5*1024*1024, // максимальный размер файла в байтах ); $bb_cfg['tor_forums_allowed_ext'] = array('torrent', 'zip', 'rar'); // для разделов с раздачами diff --git a/library/includes/functions.php b/library/includes/functions.php index 7898478de..77c94ea21 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -2696,7 +2696,7 @@ function bb_captcha ($mode, $callback = '') if ($g_resp) { try { $resp = $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], $g_resp); - } catch (ReCaptchaException $e) { + } catch (Google\ReCaptcha\Exception $e) { $e->getError(); } }