mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r530
Фикс именования скачиваемых торрент-файлов с доменом сайта (по аналогии с рутрекером). Обоснованность включения по-умолчанию разработчикам пояснена отдельно. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@530 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
5f9a64e04f
commit
cdf0c1a6b7
3 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ if ($tor_auth_reg || $tor_auth_del)
|
|||
|
||||
if ($bb_cfg['torrent_name_style'])
|
||||
{
|
||||
$display_name = '['.$domain_name.'].t' . $bt_topic_id . '.torrent';
|
||||
$display_name = '['.$bb_cfg['server_name'].'].t' . $bt_topic_id . '.torrent';
|
||||
}
|
||||
|
||||
if (!$tor_reged)
|
||||
|
|
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||
$bb_cfg['tp_release_date'] = '01-08-2013';
|
||||
$bb_cfg['tp_release_state'] = 'R529';
|
||||
$bb_cfg['tp_release_date'] = '02-08-2013';
|
||||
$bb_cfg['tp_release_state'] = 'R530';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
@ -178,7 +178,7 @@ $bb_cfg['allow_dl_list_names_mode'] = true;
|
|||
|
||||
// Torrents
|
||||
$bb_cfg['torrent_sign'] = ''; // e.g. "[yoursite.com]"
|
||||
$bb_cfg['torrent_name_style'] = false; // Use torrent name style [yoursite.com].txxx.torrent
|
||||
$bb_cfg['torrent_name_style'] = true; // Use torrent name style [yoursite.com].txxx.torrent
|
||||
$bb_cfg['tor_help_links'] = '';
|
||||
|
||||
// Сколько дней сохранять торрент зарегистрированным / Days to keep torrent registered, if:
|
||||
|
|
|
@ -613,7 +613,7 @@ function send_torrent_with_passkey ($filename)
|
|||
header("Content-Type: $mimetype $charset name=\"$filename\"");
|
||||
if ($bb_cfg['torrent_name_style'])
|
||||
{
|
||||
$header_file_name = 'Content-Disposition: attachment; filename="['.$domain_name.'].t' . $topic_id . '.torrent"';
|
||||
$header_file_name = 'Content-Disposition: attachment; filename="['.$bb_cfg['server_name'].'].t' . $topic_id . '.torrent"';
|
||||
header($header_file_name);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue