diff --git a/library/includes/file_list_v2.php b/library/includes/file_list_v2.php index 7897187db..83edbea5c 100644 --- a/library/includes/file_list_v2.php +++ b/library/includes/file_list_v2.php @@ -48,30 +48,27 @@ if (isset($tor['info']['private']) && IS_GUEST) { die($lang['BT_PRIVATE_TORRENT']); } -$torrent = new TorrentPier\Legacy\TorrentFileList($tor); -$files = $torrent->fileTreeTable($tor['info']['file tree']); +$list_handler = new TorrentPier\Legacy\TorrentFileList($tor); + +$files = $list_handler->fileTreeTable($tor['info']['file tree']); $data = [ - 'date' => '', 'name' => htmlCHR($tor['info']['name'] ?? ''), 'client' => htmlCHR(substr($tor['created by'] ?? 'unknown client', 0, 20)), 'size' => humn_size($files['size']), - 'hash' => bin2hex($row['info_hash_v2']) + 'hash' => bin2hex($row['info_hash_v2']), + 'date' => (isset($tor['creation date']) && is_numeric($tor['creation date'])) ? delta_time($tor['creation date']) : 'unknown' ]; -if (isset($tor['creation date']) && is_numeric($tor['creation date'])) { - $data['date'] = date("d M Y | G:i:s T", $tor['creation date']); -} - echo << - - + + -File information listing | {$data['name']} ({$data['size']}) | {$data['hash']} +{$data['name']} ({$data['size']}) | {$data['hash']} | {$bb_cfg['sitename']}
-

Document name: {$data['name']} | Date: ({$data['date']}) | Size: {$data['size']} +

Name: {$data['name']} | Age: ({$data['date']}) | Size: {$data['size']}

Created by: {$data['client']}


- +
PathSizeHash ?
EOF; echo $files['list'];
PathSizeBTMR hash ?