summaryrefslogtreecommitdiffstats
path: root/wizard
diff options
context:
space:
mode:
Diffstat (limited to 'wizard')
-rw-r--r--wizard/index.php25
1 files changed, 17 insertions, 8 deletions
diff --git a/wizard/index.php b/wizard/index.php
index b0f45fcf..1f0b26e4 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -73,13 +73,16 @@ $phpvers = [
'5.4' => 'remi-php54',
];
$phpname = [
- '7.3' => '7.3.0RC6 (Please DO NOT use this version in production, it is an early test version.)',
- '7.2' => '7.2.12 (active support until Nov 2019)',
- '7.1' => '7.1.24 (active support until Dec 2018)',
- '7.0' => '7.0.32 (security only support until Dec 2018)',
- '5.6' => '5.6.38 (security only support until Dec 2018)',
- '5.5' => '5.5.38 (no upstream support since July 2016)',
- '5.4' => '5.4.45 (no upstream support since Sept 2015)',
+ ':stable' => 'Stable versions - usage recommended',
+ '7.3' => '7.3.0 (active support until Dec 2020)',
+ '7.2' => '7.2.13 (active support until Nov 2019)',
+ ':secure' => 'Security only versions',
+ '7.1' => '7.1.25 (security only support until Dec 2019)',
+ '7.0' => '7.0.33 (last security release)',
+ '5.6' => '5.6.39 (last security release)',
+ ':eol' => 'Deprecated versions - usage discouraged',
+ '5.5' => '5.5.38 (no upstream support since July 2016)',
+ '5.4' => '5.4.45 (no upstream support since Sept 2015)',
];
$php = (isset($_POST['php']) && isset($phpvers[$_POST['php']]) ? $_POST['php'] : false);
$os = (isset($_POST['os']) && isset($osvers[$_POST['os']]) ? $_POST['os'] : false);
@@ -123,7 +126,13 @@ $type = (isset($_POST['type']) && isset($types[$_POST['type']]) ? $_POST['type'
<select name='php' onChange='submit()'>
<option value=''>--</option>
<?php
- foreach($phpvers as $phpver => $repo) printf("<option value='%s' %s>%s</option>", $phpver, ($phpver===$php ? 'selected' : ''), $phpname[$phpver]);
+ foreach($phpname as $phpver => $name) {
+ if (is_numeric($phpver)) {
+ printf("<option value='%s' %s>%s</option>", $phpver, ($phpver===$php ? 'selected' : ''), $name);
+ } else {
+ printf("<optgroup label='%s'>", $name);
+ }
+ }
?>
</select>
</p></li>