', $s));
}
// Feedback about current mirror location + trigger for alt mirrors.
if (array_key_exists($one_mirror['country'], $countries)) {
$mirrors_country_name = $countries[$one_mirror['country']];
} else if (array_key_exists($one_mirror['country'], MGA_Geoip::$MGA_COUNTRY_CODE_TO_COUNTRY_NAME)) {
$mirrors_country_name = MGA_Geoip::$MGA_COUNTRY_CODE_TO_COUNTRY_NAME[$one_mirror['country']];
} else {
$mirrors_country_name = $one_mirror['country'];
}
$dl2_mirror_alt = sprintf(
_r('This %s download mirror is located in %s (%s).', ' '),
$one_mirror['mirror_url'],
$one_mirror['mirror_host'],
rewrite_city($one_mirror['city']),
$mirrors_country_name
);
$dl2_mirror_alt .= _r('If it does not work well for you, check out these other mirrors.', ' ');
if (array_key_exists($_SESSION['country'], $countries)) {
$country_name = $countries[$_SESSION['country']];
} else if (array_key_exists($_SESSION['country'], MGA_Geoip::$MGA_COUNTRY_CODE_TO_COUNTRY_NAME)) {
$country_name = MGA_Geoip::$MGA_COUNTRY_CODE_TO_COUNTRY_NAME[$_SESSION['country']];
} else {
$country_name = $_SESSION['country'];
}
if (array_key_exists($_SESSION['continent'], MGA_Geoip::$MGA_CONTINENT_CODE_TO_CONTINENT_NAME)) {
$continent_name = MGA_Geoip::$MGA_CONTINENT_CODE_TO_CONTINENT_NAME[$_SESSION['continent']];
} else {
$continent_name = $_SESSION['continent'];
}
$dl2_mirror_alt .= sprintf(
_r('Your IP address is %s and you seem to be in %s, %s.'),
$_SESSION['ip'], $country_name, $continent_name
);
// at the end of this block we expect the following vars to be available from here:
// - $product (mixed)
// - $download (URL)
// - $js_redirect (JS snippet)
// - $alternative_mirrors (HTML snippet)
// - $dl2_mirror_alt (HTML snippet)
}
catch (NoProductFoundError $e) {
// sorry, no such product found/available. redirect?
$reason = 'The file '. $product .' is not available for download.';
}
catch (NoMirrorFoundError $e) {
// sorry, no mirror found. next time?
$reason = 'No mirror found for this file to download.';
}
catch (Exception $e) {
// don't translate $reason as it's for debuging purposes
$reason = 'I do not know either!';
}
if (!$download) {
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
header('Cache-Control: public, max-age=600, s-max-age=900');
$title = '404 Not Found';
$js_redirect = null;
} else {
header('Pragma: no-cache');
header('Cache-Control: s-maxage=0, max-age=0, must-revalidate, no-cache');
$title = $product['name'];
}
if ($debug)
$js_redirect = null;
?>
|
' . $title . '')?>
' . $product['name'] . '' . ($torrent ? ' (torrent)' : '')),
' ', sprintf(_r('(download size is about %s).'), $product['size']),
' ', sprintf(_r('If the download does not start, click here.'), $download, $download);
?>
' . basename($download) . '.' . $checksum . '';
$chksm_cmd .= '$ ' . $checksum . 'sum ' . basename($download) . "\n" . $product[$checksum] . "\n" . PHP_EOL;
}
}
?>
0 && !$torrent) {
_g('As soon as your download is complete, you should check that the checksums match:', null, 'p');
echo PHP_EOL . '
' . PHP_EOL;
echo '
' . PHP_EOL;
echo $chksm_cmd;
echo '
' . PHP_EOL . '
';
_g('If checksums do not match, DO NOT use this ISO. Double-check and try to download again.', null, ' ');
$checksum_links = '';
$list_sign = _r(',', ' ');
foreach ($sum_links as $checksum_link) {
$checksum_links .= $checksum_link;
if ($num_checksums == 2) {
$list_sign = ' ' . _r('and', ' ');
} else if ($num_checksums == 1) {
$list_sign = '';
}
$checksum_links .= $list_sign;
$num_checksums--;
}
_g('Checksums are available for download as files', null, ' ');
echo "$checksum_links.
";
// }
?>
MIT PGP Public Key Server:'), 'https://pgp.mit.edu/'); ?>
gpg: key EDCA7A90: public key "Mageia Release <release@mageia.org>" importedgpg: key EDCA7A90: "Mageia Release <release@mageia.org>" not changed
$ gpg --verify /your/download/location/.md5.gpg
gpg: Good signature from "Mageia Release <release@mageia.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: B210 76A0 CBE4 D93D 66A9 D08D 835E 41F4 EDCA 7A90