From 8a7b0660b9d763381b562e0e462939e1c99da55c Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 28 Jun 2016 18:18:53 +0200 Subject: housekeeping: consolidate mga1 parts a bit --- en/downloads/lib.php | 108 --------------------------------------------------- 1 file changed, 108 deletions(-) delete mode 100644 en/downloads/lib.php (limited to 'en/downloads/lib.php') diff --git a/en/downloads/lib.php b/en/downloads/lib.php deleted file mode 100644 index 39a2ff8f9..000000000 --- a/en/downloads/lib.php +++ /dev/null @@ -1,108 +0,0 @@ - -%s -%s -%s -%s -%s -%s - -T; - -$s = ''; -$glob = array_shift($prods); -$popularity = array_shift($prods); -$i = 0; - -$prods2 = array(); -foreach ($prods as $k => $p) { - if (isset($p['hidden'])) { - continue; - } - $prods2[$p['flavour']][$k] = $p; -} - -$s1 = null; -$s2 = null; -$s3 = null; -foreach ($prods2 as $flavour => $prods3) { - - $flavour = sprintf('%s', count($prods3), $flavour); - foreach ($prods3 as $k => $p) { - $iso = sprintf('%s-%s', $glob['prefix'], $k); - - $dl_link = sprintf('/%s/downloads/get/?q=%s', $locale, $iso); - $bt_link = isset($p['torrent']) ? - sprintf('/%s/downloads/get/?q=%s&torrent=1', $locale, $iso) : - null; - - $pop = array_key_exists($k, $popularity) ? $popularity[$k] : 0; - - $s = sprintf($tmpl, - '', - $p['name'], $_t[$p['lang']], $p['size'], - $pop, $pop, - $dl_link, $_t['download'], - $bt_link, - !is_null($bt_link) ? $_t['download'] : '' - ); - $flavour = null; - $i++; - - if ($p['flavour'] == 'LiveCD 32-bit') - $s2 .= $s; - elseif ($p['flavour'] == 'DVD' - || $p['flavour'] == 'CD') - $s1 .= $s; - else - $s3 .= $s; - } -} - -$table_tmpl = <<%s -%s - - - - - - - - - - - - %s -
{$_t['flavour']}{$_t['language']}{$_t['size']}{$_t['popularity']}{$_t['link']}BitTorrent
-T; - -$dl_table - = sprintf($table_tmpl, $_t['for_test_live'], null, $s2) - . "

{$_t['def-Europa set 1']}

-

{$_t['def-Europa set 2']}

-

{$_t['def-Asia set']}

-

{$_t['def-Africa/India set']}


" - - . '
' - . sprintf($table_tmpl, - $_t['for_full_install'], - '

' . $_t['warn-free'] . '

', $s1) - . "

{$_t['all_languages']}

-

{$_t['limited_languages']}


" - . '
' - . sprintf($table_tmpl, $_t['for_network'], '', $s3); - -$dl_table .= << -
-

{$_t['not_sure_what_iso']}

-T; - - -- cgit v1.2.1