mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions_torrent.php
This commit is contained in:
parent
3a2628821e
commit
eee2cc837b
@ -261,9 +261,9 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
|
||||
|
||||
$filename = get_attachments_dir() .'/'. $torrent['physical_filename'];
|
||||
|
||||
if (!is_file($filename)) return torrent_error_exit('File name error');
|
||||
if (!file_exists($filename)) return torrent_error_exit('File not exists');
|
||||
if (!$tor = bdecode_file($filename)) return torrent_error_exit('This is not a bencoded file');
|
||||
if (!is_file($filename)) return torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
|
||||
if (!file_exists($filename)) return torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
|
||||
if (!$tor = bdecode_file($filename)) return torrent_error_exit($lang['TORFILE_INVALID']);
|
||||
|
||||
if ($bb_cfg['bt_disable_dht'])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user