' . $p['name'] . '' . ($torrent ? ' (torrent)' : '')), ' ', sprintf($_t['dl_size'], $p['size']), ' ', sprintf($_t['alt_download'], $dl_link, $dl_link); ?>
$ md5sum $ sha1sum
$p) { if ($product == sprintf('%s-%s', $glob['prefix'], $k) || $product == $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/1/%s', $product_iso); $dl_link = sprintf('%s/%s', $a['mirror_url'], $product_dl_link); } $title = 'Mageia 1'; if (isset($p['page_title'])) $title = $p['page_title']; $_t['page_h1'] = sprintf($_t['page_h1'], '' . $title . ''); $_t['page_title'] = sprintf($_t['page_title'], '' . $title . ''); $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('