mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update file_list_v2.php (#1199)
This commit is contained in:
parent
182216830b
commit
8f1c66a26b
1 changed files with 5 additions and 3 deletions
|
@ -61,10 +61,12 @@ if (isset($torrent['info']['private']) && IS_GUEST) {
|
||||||
|
|
||||||
$files = (new TorrentPier\Legacy\TorrentFileList($torrent))->fileTreeTable($torrent['info']['file tree']);
|
$files = (new TorrentPier\Legacy\TorrentFileList($torrent))->fileTreeTable($torrent['info']['file tree']);
|
||||||
|
|
||||||
|
date_default_timezone_set('UTC');
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'name' => isset($torrent['info']['name']) ? htmlCHR(substr($torrent['info']['name'], 0, 255)) : 'undefined',
|
'name' => isset($torrent['info']['name']) ? htmlCHR(substr($torrent['info']['name'], 0, 255)) : 'undefined',
|
||||||
'client' => isset($torrent['created by']) ? htmlCHR(substr($torrent['created by'], 0, 20)) : 'unknown client',
|
'client' => isset($torrent['created by']) ? htmlCHR(substr($torrent['created by'], 0, 20)) : 'unknown client',
|
||||||
'date' => (isset($torrent['creation date']) && is_numeric($torrent['creation date'])) ? delta_time($torrent['creation date']) : 'unknown',
|
'date' => (isset($torrent['creation date']) && is_numeric($torrent['creation date'])) ? date('d-M-Y H:i (e)', $torrent['creation date']) : 'unknown',
|
||||||
'size' => humn_size($row['size']),
|
'size' => humn_size($row['size']),
|
||||||
'topic_url' => TOPIC_URL . $topic_id,
|
'topic_url' => TOPIC_URL . $topic_id,
|
||||||
];
|
];
|
||||||
|
@ -152,7 +154,7 @@ sup {
|
||||||
</style>
|
</style>
|
||||||
<a href = "{$data['topic_url']}" style = "font-family: Monospace; color: #569904;">🠔 Back to the topic</a>
|
<a href = "{$data['topic_url']}" style = "font-family: Monospace; color: #569904;">🠔 Back to the topic</a>
|
||||||
<center>
|
<center>
|
||||||
<h2 style="color: #b3b3b3; font-family: Monospace;">Name: {$data['name']} | Age: ({$data['date']}) | Size: {$data['size']}</h2>
|
<h2 style="color: #b3b3b3; font-family: Monospace;">Name: {$data['name']} | Date: {$data['date']} | Size: {$data['size']}</h2>
|
||||||
<p>
|
<p>
|
||||||
<i>Created by: {$data['client']}</i>
|
<i>Created by: {$data['client']}</i>
|
||||||
</p>
|
</p>
|
||||||
|
@ -178,7 +180,7 @@ echo $files['list'];
|
||||||
echo '
|
echo '
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
<i style = "color: gray">Generated by</i> <a href = "https://github.com/torrentpier/torrentpier" target="_blank">TorrentPier</a>
|
<p style = "color: gray; font-family: Calibri">Generated by <a href = "https://github.com/torrentpier/torrentpier" target="_blank" title = "Bull-powered BitTorrent tracker engine">TorrentPier</a></p>
|
||||||
</p>
|
</p>
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue