Было бы не плохо добавить в релиз автоматическое добавление retracker.local. Ниже представленный код добавляет не просто retracker.local, а с описанием, размером и ссылкой на тему.
В /includes/functions_torrent.php найти:
[php] //Azureus DHT disable
[/php]
перед этим добавить:
[php] // --- Start multi announce url ---
$info = (@$tor['info']) ? $tor['info'] : array();
if (!@$info['name'] || !@$info['piece length'] || !@$info['pieces'] || strlen($info['pieces']) % 20 != 0)
{
torrent_error_exit('Invalid torrent file');
}
$totallen = 0;
if (@$info['length'])
{
$totallen = (float) $info['length'];
}
else if (@$info['files'] && is_array($info['files']))
{
foreach ($info['files'] as $fn => $f)
{
$totallen += (float) $f['length'];
}
}
else
{
torrent_error_exit('Invalid torrent file');
}
$totalsize = '';
$totalsize = sprintf('%.0f', (float) $totallen);
$topicname = '';
$topicname = urlencode(iconv('UTF-8', 'CP1251', $info['name']));
$tor['announce-list'] = array(
array($announce),
array('http://retracker.local/announce?name=' . $topicname . '&size=' . $totalsize . '&comment=' . $comment,)
);
// --- End multi announce url ---
[/php]