summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-11 17:34:18 +0200
committerRemi Collet <remi@remirepo.net>2020-09-11 17:34:18 +0200
commit2daaaa64fd58fc76d048d8aef57ae1b8f59addd8 (patch)
treef46fd995b29101a94001305fba20bac170f1d5a3
parentd6ca716093187a1d82f2dd470d730e95d8c10179 (diff)
Wizard: more visible warning for EL-6 EOL
-rw-r--r--wizard/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizard/index.php b/wizard/index.php
index 3a81762..9cc3602 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -166,7 +166,8 @@ $err = false;
if ($os) {
list($dist, $ver) = explode(' ', $os, 2);
if ($ver == 6) {
- printf("<li><b>%s</b> will reach its <b>end of life</b> in Nov 2020, upgrade is strongly recommended.</li><br />", $os);
+ $days = (int)((mktime(0,0,0,11,30,2020) - time()) / (60 * 60 * 24));
+ printf("<li><b>WARNING: %s</b> will reach its <b>end of life</b> in November 2020, in <b>$days days</b>, upgrade is strongly recommended.</li><br />", $os);
}
if (($dist == 'Fedora' && $ver<=FC_EOL) || ($dist != 'Fedora' && $ver<=EL_EOL)) {
printf("<li><b>%s</b> have reached its <b>end of life</b>, upgrade is strongly recommended.</li><br />", $os);