mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
c27173fb3f
commit
18b9d37438
@ -19,14 +19,7 @@ $filename = get_attachments_dir() .'/'. $torrent['physical_filename'];
|
||||
|
||||
if (($file_contents = @file_get_contents($filename)) === false)
|
||||
{
|
||||
if (IS_AM)
|
||||
{
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT'] ."\n\n". htmlCHR($filename));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT']);
|
||||
}
|
||||
$this->ajax_die($lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||
}
|
||||
|
||||
// Построение списка
|
||||
|
@ -261,8 +261,8 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE
|
||||
|
||||
$filename = get_attachments_dir() .'/'. $torrent['physical_filename'];
|
||||
|
||||
if (!is_file($filename)) torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
|
||||
if (!file_exists($filename)) torrent_error_exit($lang['ERROR_NO_ATTACHMENT']);
|
||||
if (!is_file($filename)) torrent_error_exit($lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||
if (!file_exists($filename)) torrent_error_exit($lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||
if (!$tor = bdecode_file($filename)) torrent_error_exit($lang['TORFILE_INVALID']);
|
||||
|
||||
if ($bb_cfg['bt_disable_dht'])
|
||||
|
Loading…
Reference in New Issue
Block a user