This commit is contained in:
Roman Kelesidis 2023-10-26 18:25:40 +07:00
parent c27173fb3f
commit 18b9d37438
2 changed files with 3 additions and 10 deletions

View File

@ -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']);
}
// Построение списка

View File

@ -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'])