$ md5sum $ sha1
$p) { if ($product == sprintf('%s-%s', $glob['prefix'], $k)) { $found = true; break; } } } if (!$found) { header('Location: /downloads/'); die; } $product_iso = $product . '.iso'; $wsd = new Downloads('en', null); $a = $wsd->prepare_download(null, true); if ($torrent) { if (isset($p['torrent'])) { $dl_link = sprintf('%s/%s', $a['mirror_url'], $p['torrent']); } else { header('Location: /downloads/'); die; } } else { if (isset($p['path'])) $dl_link = sprintf('%s/%s', $a['mirror_url'], $p['path']); else $dl_link = sprintf('%s/%s/%s', $a['mirror_url'], 'iso/cauldron', $product_iso); } // @fixme (rda) actually, http-equiv="refresh" is deprecated behaviour now. // @fixme (rda) see http://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element // @fixme (rda) possible alternative: post-load setTimeOut("document.location=url;", 5000); but requires JS $relocation = null; if (!is_null($dl_link)) $relocation = sprintf('', $dl_link); $title = 'Mageia 1 beta1'; $dl_alt_mirrors_table = ''; foreach ($g_mirrors as $country => $cities): foreach ($cities as $city => $mirrors) { $mirs = array(); foreach ($mirrors as $m) { $pm = parse_url($m); $alt_dl_link = sprintf('%s/%s/%s', $m, 'iso/cauldron', $product_iso); $mirs[] = sprintf('%s://%s', $pm['scheme'], $alt_dl_link, $pm['host']); } $dl_alt_mirrors_table .= sprintf('