summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-15 12:32:40 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-15 12:32:40 +0200
commit44084514e3222815e66ed85ce1911258abdcabfc (patch)
tree10d5627e8228cf82da556916891086b6a4a05753
parentd0dfa5c68b0559a433dcef82410b30d2167c9aa4 (diff)
Wizard: more comments
-rw-r--r--wizard/index.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/wizard/index.php b/wizard/index.php
index a2de71f4..994372c6 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -26,6 +26,23 @@ $osvers = [
'Fedora 23' => '5.6',
'Fedora 22' => '5.6',
];
+$osname = [
+ 'RHEL 7' => 'RHEL-7',
+ 'RHEL 6' => 'RHEL-6',
+ 'RHEL 5' => 'RHEL-5 (maintained until March 2017)',
+ 'CentOS 7' => 'CentOS 7',
+ 'CentOS 6' => 'CentOS 6',
+ 'CentOS 5' => 'CentOS 5 (maintained until March 2017)',
+ 'Fedora 25' => 'Fedora 25 (not yet released)',
+ 'Fedora 24' => 'Fedora 24',
+ 'Fedora 23' => 'Fedora 23',
+ 'Fedora 22' => 'Fedora 22 (no support since July 2016)',
+];
+$grpname = [
+ 'RHEL' => 'Red Hat Enterprise Linux',
+ 'CentOS' => 'CentOS',
+ 'Fedora' => 'Fedora',
+];
$types = [
'base' => 'Single version',
'scl' => 'Multiple versions',
@@ -74,9 +91,9 @@ $type = (isset($_POST['type']) && isset($types[$_POST['type']]) ? $_POST['type'
list($dist, $ver) = explode(' ', $osver, 2);
if ($dist != $prev) {
if ($prev) echo "</optgroup>";
- printf("<optgroup label='%s'>", $prev=$dist);
+ printf("<optgroup label='%s'>", $grpname[$prev=$dist]);
}
- printf("<option value='%s' %s>&nbsp;&nbsp;&nbsp;&nbsp;%s</option>", $osver, ($osver===$os ? 'selected' : ''), $osver);
+ printf("<option value='%s' %s>&nbsp;&nbsp;&nbsp;&nbsp;%s</option>", $osver, ($osver===$os ? 'selected' : ''), $osname[$osver]);
}
?>
</optgroup></select>