aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2021-03-06 19:21:04 +0100
committerfilip <filip.komar@gmail.com>2021-03-06 19:21:04 +0100
commit903738ba033082cd9b8671dffc4ec83f11afffe3 (patch)
tree16b0c415e14797493fd7a1c968fe26dc406d84fb /en/downloads
parentc9c20a097854e4c80949257ae9a1c266bfcc31dc (diff)
downloadwww-903738ba033082cd9b8671dffc4ec83f11afffe3.tar
www-903738ba033082cd9b8671dffc4ec83f11afffe3.tar.gz
www-903738ba033082cd9b8671dffc4ec83f11afffe3.tar.bz2
www-903738ba033082cd9b8671dffc4ec83f11afffe3.tar.xz
www-903738ba033082cd9b8671dffc4ec83f11afffe3.zip
compare checksum directly without checksum file
Diffstat (limited to 'en/downloads')
-rw-r--r--en/downloads/get/index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 1c9b93f23..b8fa0db10 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -261,14 +261,19 @@ $checksum_specifics = array(
);
$sum_links = array();
$chksm_cmd = '';
+$chksm_cmd_2 = '';
$sig_links = array();
foreach (array_keys($checksum_specifics) as $checksum) {
if (isset($product[$checksum])) {
$each_checksum = "<a href=\"$download.$checksum\">" . basename($download) . '.' . $checksum . '</a><span class="copy-icon" data-toggle="tooltip" title="';
$each_checksum .= _r("Copy") . '" data-clip="' . $product[$checksum] . '"></span> (' . $checksum_specifics[$checksum][1] . ')';
$sum_links[] = $each_checksum;
- $chksm_cmd .= '$ ' . $checksum_specifics[$checksum][0] . ' -c ' . basename($download) . '.' . $checksum . ' # ' . _r('You need both iso and checksum file in the same folder');
+ $chksm_cmd_pre_text = "$ # " . _r('You need both iso and checksum file in the same folder') . "\n";
+ $chksm_cmd .= "$ " . $checksum_specifics[$checksum][0] . ' -c ' . basename($download) . '.' . $checksum;
$chksm_cmd .= "\n<strong>" . basename($download) . ": " . _r("OK") . " </strong>\n" . PHP_EOL;
+ $chksm_cmd_mid_text = "$ # " . _r('You can also compare checksum directly from this web page without checksum file') . "\n";
+ $chksm_cmd_2 .= "$ " . $checksum_specifics[$checksum][0] . ' ' . basename($download);
+ $chksm_cmd_2 .= "\n<strong>" . $product[$checksum] . ' ' . basename($download) . " </strong>\n" . PHP_EOL;
if (isset($product["$checksum.gpg"])) {
$sig_links[] = "<a href=\"$download.$checksum.gpg\">" . basename($download) . ".$checksum.gpg</a>";
}
@@ -285,7 +290,7 @@ if ($num_checksums > 0 && !$torrent) {
echo "$checksum_links.</p>";
echo PHP_EOL . '<div id="check-signs">' . PHP_EOL;
echo '<pre class="term pre-scrollable">' . PHP_EOL;
- echo $chksm_cmd;
+ echo $chksm_cmd_pre_text . $chksm_cmd . $chksm_cmd_mid_text . $chksm_cmd_2;
echo '</pre>' . PHP_EOL . '<p>';
_g('If checksums do not match, <strong>DO NOT use this ISO</strong>. Double-check and try to download again.', null, ' ');
$signature_links = array_to_list($sig_links, ' ' . _r('and', ' '), _r(',', ' '));