From d47ef83e1353cddf04f9499e539ddd34d3e0633a Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 5 Apr 2011 13:12:29 +0000 Subject: new downloads page --- en/downloads/dl.php | 155 +++++++++++++++++++++++++++++++++++++++++++++++++ en/downloads/index.php | 53 +++++++++++++++++ 2 files changed, 208 insertions(+) create mode 100644 en/downloads/dl.php create mode 100644 en/downloads/index.php (limited to 'en') diff --git a/en/downloads/dl.php b/en/downloads/dl.php new file mode 100644 index 000000000..4ede811ca --- /dev/null +++ b/en/downloads/dl.php @@ -0,0 +1,155 @@ + $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 (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); + +$relocation = ''; + +// @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 + +if (!is_null($relocation)) + $relocation = sprintf('', $relocation); + +$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('%s%s%s', $country, $city, implode(', ', $mirs)); + } +endforeach; + +$dl2_mirror_alt = sprintf($_t['dl_mirror_loc'], + $a['mirror_url'], $a['mirror_host'], $countries[$a['country']], $a['country']) + . ' ' . $_t['dl_alt_mirrors']; + +?> + + + + <?php echo $title; ?> | Mageia Downloads + + + + + + + +
+ +
+
+

+

+ +
+ +

+
+$ md5sum 
+
+$ sha1 
+
+

+ +

+
+ + + + + +
+
+
+
+

+

+

+ +
+
+
+

', ''); ?>

+

+
+

Test days ⇒ April 8 & 9!

+

To speed up fixes & improvements for beta2, we organize + two test days for beta1 in the coming days.

+

Learn more!

+
+ +

There is a lot of areas where one can contribute to the project. + Be it for advocacy, + prototyping, + communication, + Web design & development, + for software design, + development, + localization, + packaging, + QA & testing, + delivery, + for community support & animation, + for donating money, + hardware, hosting, time, for sharing the fun.

+
+
+
+ + + diff --git a/en/downloads/index.php b/en/downloads/index.php new file mode 100644 index 000000000..86942f89e --- /dev/null +++ b/en/downloads/index.php @@ -0,0 +1,53 @@ + + + + + + <?php echo $_t['page_title']; ?> + + + + + + + + + +
+ +
+
+
+

+ +

+
+

+

+
+ + +
+
+
+

+
    +
  • ...
  • +
+
+
+

+ +

Beta 2 will be released on April, 25th.

+

You can check our roadmap for Mageia 1.

+
+
+
+
+ + -- cgit v1.2.1