From 4d9bfa6dea8976d171da66364c47396a7e6e2d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Sat, 27 Jan 2024 11:34:48 +0400 Subject: [PATCH] [BEP47] sha1 hash files are binary by default (#1348) --- filelist.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/filelist.php b/filelist.php index c127cdd10..0b10895c6 100644 --- a/filelist.php +++ b/filelist.php @@ -78,10 +78,7 @@ $files = $torrent->$t_version_field()->$t_files_field(); $allFiles = ''; foreach ($files as $file) { - $path = clean_tor_dirname(implode('/', $file->path)); - $size = humn_size($file->length, 2); - $hash = ($t_hash_field === 'sha1' && isset($file->$t_hash_field)) ? "SHA1: {$file->$t_hash_field}" : $file->$t_hash_field; - $allFiles .= '' . $path . '' . $size . '' . $hash . ''; + $allFiles .= '' . clean_tor_dirname(implode('/', $file->path)) . '' . humn_size($file->length, 2) . '' . $file->$t_hash_field . ''; } $data = [ @@ -125,19 +122,19 @@ table { border: collapse; width: auto; margin: 20px auto; - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; + font-family: "Segoe UI","Noto Sans",Helvetica,sans-serif; background-color: #2c2c2c; } th, td { - padding: 8px; + padding: 10px; text-align: left; color: #acacac; width: auto; } td { - border: 2px solid #353535; + border: 3px solid #353535; } th { @@ -202,7 +199,7 @@ sup { -$allFiles + {$allFiles}

Generated by TorrentPier