', $s));
}
// Feedback about current mirror location + trigger for alt mirrors.
$dl2_mirror_alt = sprintf(
_t('This %s download mirror is located in %s (%s).'),
$one_mirror['mirror_url'],
$one_mirror['mirror_host'],
rewrite_city($one_mirror['city']) . ', ' . $countries[$one_mirror['country']],
$one_mirror['country']
)
. ' ' . _t('If it does not work well for you, check out these other mirrors.');
// 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 = 'This file 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(_t('(download size is about %s).'), $product['size']),
' ', sprintf(_t('If the download does not start, click here.'), $download, $download);
?>