diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-07-18 21:47:51 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-07-18 21:47:51 +0000 |
commit | c8cfd9d7d35ccd431096d992e86a3ad2ec07b248 (patch) | |
tree | 8763b48014136f3c01258426a998ec09eeb984e8 /en/downloads/dl.php | |
parent | 32c0fbfde89524f945d57e4fb86c60e6f7fd3952 (diff) | |
download | www-c8cfd9d7d35ccd431096d992e86a3ad2ec07b248.tar www-c8cfd9d7d35ccd431096d992e86a3ad2ec07b248.tar.gz www-c8cfd9d7d35ccd431096d992e86a3ad2ec07b248.tar.bz2 www-c8cfd9d7d35ccd431096d992e86a3ad2ec07b248.tar.xz www-c8cfd9d7d35ccd431096d992e86a3ad2ec07b248.zip |
reorganize downloads code
Diffstat (limited to 'en/downloads/dl.php')
-rw-r--r-- | en/downloads/dl.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/en/downloads/dl.php b/en/downloads/dl.php index 23c24596b..9827d46db 100644 --- a/en/downloads/dl.php +++ b/en/downloads/dl.php @@ -6,8 +6,13 @@ $product = isset($_GET['product']) ? trim(strtolower($_GET['product'])) : null; $torrent = isset($_GET['torrent']) ? true : false; $mirror = isset($_GET['mirror']) ? trim(strtolower($_GET['mirror'])) : null; -include '../../downloads.php'; -include '../../lib/Downloads.php'; +define('HLANG', true); +require '../../langs.php'; +require 'locales.php'; + +$_t = i18n::get_strings($_t, $locale, $i18n_fallback_rules); + +require 'lib.php'; session_start(); @@ -26,11 +31,12 @@ if (!$found) { header('Location: /downloads/'); die; } +include '../../lib/Downloads.php'; $g_mirrors = Downloads::get_all_mirrors(); $product_iso = $product . '.iso'; -$wsd = new Downloads('en', null); +$wsd = new Downloads($locale, null); $a = $wsd->prepare_download(null, true); $product_dl_link = null; @@ -101,8 +107,7 @@ $dl2_mirror_alt = sprintf($_t['dl_mirror_loc'], <?php endif; ?> </head> <body> - <?php include '../../langs.php'; ?> - + <?php echo $hsnav; ?> <div id="doc" class="yui-t7"> <div id="hd" role="banner"><h1><a id="logo" href="/"><span>Mageia</span></a> <span class="lsep"> </span> <span class="subh"><?php echo $_t['page_h1']; ?></span></h1></div> <div id="bd" role="main"> |