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(); } }