summaryrefslogtreecommitdiffstats
path: root/wizard/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'wizard/index.php')
-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>