(function(){setTimeout("document.location=\'%s\';", 3000);})();',
$download);
$g_mirs2 = array();
foreach ($alt_mirrors as $country => $mirs):
if (substr($country, 0, 3) == '_C:')
continue;
foreach ($mirs as $mir):
$g_mirs2[$countries[$country]][$mir['city']][] = $mir['url'];
endforeach;
endforeach;
ksort($g_mirs2);
$alternative_mirrors = '';
foreach ($g_mirs2 as $country => $cities):
$s = array();
foreach ($cities as $city => $mirrors2) {
$mirs = array();
foreach ($mirrors2 as $m) {
$pm = parse_url($m);
$alt_dl_link = str_replace('$MIRROR', $m, $download_tmpl);
$mirs[] = sprintf('%s://%s',
$pm['scheme'], $alt_dl_link, $pm['host']);
}
$s[] = sprintf('
%s | %s | ', rewrite_city($city), implode(', ', $mirs));
}
$alternative_mirrors .= sprintf('%s | %s
', count($cities), $country, implode('', $s));
endforeach;
$dl2_mirror_alt = sprintf($_t['dl_mirror_loc'],
$one_mirror['mirror_url'],
$one_mirror['mirror_host'],
rewrite_city($one_mirror['city']) . ', ' . $countries[$one_mirror['country']],
$one_mirror['country'])
. ' ' . $_t['dl_alt_mirrors'];
}
catch (NoProductFoundError $e) {
// sorry, no such product found/available. redirect?
$reason = 'This file is not available for download.';
}
catch (NoMirrorFoundError $e) {
// sorry, not mirror found. next time?
$reason = 'No mirror found for this file to download.';
}
catch (Exception $e) {
$reason = 'I do not know either!';
}
if (!$download) {
header('HTTP/1.0 404 Not Found');
header('Status: 404 Not Found');
$title = '404 Not Found';
$js_redirect = null;
}
else {
$title = $product['name'];
}
if ($debug)
$js_redirect = null;
$_t['page_h1'] = sprintf($_t['page_h1'], '' . $title . '');
$_t['page_title'] = sprintf($_t['page_title'], '' . $title . '');
?>
| Mageia Downloads
' . $product['name'] . '' . ($torrent ? ' (torrent)' : '')),
' ', sprintf($_t['dl_size'], $product['size']),
' ', sprintf($_t['alt_download'], $download, $download);
?>
0)
|| (isset($product['sha1'])) && strlen($product['sha1']) > 0)
&& !$torrent): ?>
$ md5sum ", $product['md5'], "\n"; endif; ?>
$ sha1sum ", $product['sha1'], "\n"; endif; ?>