mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Ошибка с рекапчей
Исправление ошибки с рекапчей, увеличение размера загружаемого торрент-файла.
This commit is contained in:
parent
5e30291773
commit
402a153f87
3 changed files with 5 additions and 9 deletions
6
ajax.php
6
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;
|
||||
|
|
|
@ -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'); // для разделов с раздачами
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue