Update file_list_v2.php (#1197)

This commit is contained in:
Cønstantine Kovalensky 2023-12-08 23:27:10 +04:00 committed by GitHub
commit 59777ba68a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ $data = [
'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',
'size' => humn_size($row['size']),
'site_url' => TOPIC_URL . $topic_id,
'topic_url' => TOPIC_URL . $topic_id,
];
header('Cache-Control: public, max-age=3600');
@ -79,7 +79,7 @@ echo <<<EOF
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="index">
<meta name="description" content="File listing for topic - $topic_id | {$data['name']} ({$data['size']})">
<link rel="shortcut icon" href="{$data['site_url']}favicon.png" type="image/x-icon">
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<title>{$data['name']} ({$data['size']}) | {$bb_cfg['sitename']}</title>
</head>
@ -150,7 +150,7 @@ sup {
opacity: 0.97;
}
</style>
<a href = "{$data['site_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>
<h2 style="color: #b3b3b3; font-family: Monospace;">Name: {$data['name']} | Age: ({$data['date']}) | Size: {$data['size']}</h2>
<p>