1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<?php
$stableVersion = '6';
$cauldron = '7';
define('HLANG', true);
require '../../langs.php';
$dictionary = read_translation_file($locale, array('cauldron', 'common_footer'));
?>
<!DOCTYPE html>
<html dir="ltr" lang="<?php echo $locale; ?>">
<head>
<meta charset="utf-8">
<title><?php echo sprintf(_g('Download').' '. ' Mageia')?></title>
<meta name="robots" content="index,nofollow,nosnippet">
<?php echo common_header(); ?>
<?php include '../../analytics.php'; ?>
</head>
<body class="release downloads">
<?php echo $hsnav; ?>
<h1 id="mgnavt"><?php echo sprintf(_g('Download') . ' Mageia');?></h1>
<div id="doc">
<div class="para">
<p>
<?php _g('Mageia is provided as ISO image files that have to be written to blank <a href="%s">CD or DVD discs</a>.', array(_r('https://wiki.mageia.org/en/Writing_CD_and_DVD_images')), ' '); ?>
<br>
<?php _g('All ISOs can also be launched from a <a %s>USB drive</a>.', array('href="' . _r('https://wiki.mageia.org/en/Installation_Media#Dump_Mageia_ISO_on_a_USB_flash_drive') . '"'));
echo '</p>';
_g('To <a %s>dump</a> a Mageia installation ISO on a USB stick, you may try one of several tools:', array(''),'p');
echo '<ul><li>';
_g('For Linux, IsoDumper, available inside repo. Or any tools based on %sdd%s.', array('<span class="italic" >', '</span>'), ' ');
_g('Unetbootin is not supported.', null, 'span class="warn"'); ?>
</li>
<?php _g('For Windows please have a look on our <a href="%s">wiki</a> for your options.', array(_r('https://wiki.mageia.org/en/Dump_Mageia_ISO_on_a_USB_flash_drive_-_Alternative_tools')), 'li'); ?>
</ul>
<div id="iso2usbEx" class="popover-content"><p>
<?php _g('"Dumping" an image onto a flash device destroys any prior file-system in the partition; access to any data not destroyed will be lost, and partition capacity will be reduced to the image size. In other words, all prior data on the device is at risk.'); ?>
</p></div>
<p>
<?php _g('If you have <a href="%s">UEFI</a>, a procedure is available in the <a href="%s">wiki</a>.', array(_r('http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface'),_r('https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware' /*this will be changed to tooltip, so no more url*/))) ;?>
</p>
</div>
<?php
$ini = parse_ini_file('get/definitions.ini', true);
$ini = array_reverse($ini);
function doTheTable($url, $name, $torrent, $magnet, $size){
$table = sprintf('<tr scope="row"><td><a href="get/?q=%s">%s</a></td>',$url, $name);
$table .= sprintf('<td><a href="./get/?q=%s&torrent=1">%s</a></td>',$url , $torrent ? 'torrent': '');
$table .= sprintf('<td><a href="%s">%s</a></td>',$magnet , $magnet ? 'magnet': '');
$table .= sprintf('<td>%s</td></tr>'. PHP_EOL, $size);
return $table;
};
foreach ($ini as $section => $values) {
$version = $values['name'][7];
$name = $values['name'];
$torrent = $values['torrent'];
$magnet = $values['magnet'];
$size = $values['size'];
if ($version == $stableVersion){
$tables .= doTheTable($section, $name, $torrent, $magnet, $size);
}elseif ($version == $cauldron){
$tablec .= doTheTable($section, $name, $torrent, $magnet, $size);
}else{
$tablea .= doTheTable($section, $name, $torrent, $magnet, $size);
}
};
function allDiv($version, $table, $show){
$div = sprintf('<div class="card"><div class="card-header" id="heading%s">', $version);
$div .= sprintf('<button class="btn btn-outline-secondary" data-toggle="collapse" data-target="#collapse%s" aria-expanded="true" aria-controls="collapse%s">%s</button></div>'. PHP_EOL,$version, $version, $version);
$div .= sprintf('<div id="collapse%s" class="collapse %s" aria-labelledby="heading%s" data-parent="#accordion"><div class="card-body">' . PHP_EOL, $version, $show, $version);
$div .= '<table class="table table-hover table-sm">';
$div .= sprintf('<thead><tr><th scope="col">iso</th><th>torrent</th><th>magnet</th><th>size</th></tr></thead>' . PHP_EOL);
$div .= sprintf('<tbody>%s</tbody></table>' . PHP_EOL, $table);
echo $div . '</div></div></div>'. PHP_EOL;
}
echo '<div id="accordion">';
allDiv('Stable', $tables, 'show');
allDiv('Unstable', $tablec);
allDiv('Archives', $tablea);
?>
</div>
</div>
<?php echo common_footer($locale); ?>
</body>
</html>
|