$ md5sum $ sha1sum
$p) { if ($product == sprintf('%s-%s', $glob['prefix'], $k)) { $found = true; break; } } } if (!$found) { header('Location: /downloads/'); die; } $g_mirrors = Downloads::get_all_mirrors(); $product_iso = $product . '.iso'; $wsd = new Downloads('en', null); $a = $wsd->prepare_download(null, true); $product_dl_link = null; if ($torrent) { if (isset($p['torrent'])) { $product_dl_link = $p['torrent']; $dl_link = sprintf('%s/%s', $a['mirror_url'], $p['torrent']); } else { header('Location: /downloads/'); die; } } else { $product_dl_link = isset($p['path']) ? $p['path'] : sprintf('iso/cauldron/%s', $product_iso); $dl_link = sprintf('%s/%s', $a['mirror_url'], $product_dl_link); } $title = 'Mageia 1 beta1'; $dl_alt_mirrors_table = ''; $g_mirs2 = array(); foreach ($g_mirrors as $country => $mirs): foreach ($mirs as $mir): $g_mirs2[$countries[$country]][$mir['city']][] = $mir['url']; endforeach; endforeach; $g_mirrors = $g_mirs2; ksort($g_mirrors); 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', $m, $product_dl_link); $mirs[] = sprintf('%s://%s', $pm['scheme'], $alt_dl_link, $pm['host']); } $dl_alt_mirrors_table .= sprintf('