diff options
author | Remi Collet <remi@remirepo.net> | 2020-09-11 17:34:18 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-09-11 17:34:18 +0200 |
commit | 2daaaa64fd58fc76d048d8aef57ae1b8f59addd8 (patch) | |
tree | f46fd995b29101a94001305fba20bac170f1d5a3 /wizard | |
parent | d6ca716093187a1d82f2dd470d730e95d8c10179 (diff) |
Wizard: more visible warning for EL-6 EOL
Diffstat (limited to 'wizard')
-rw-r--r-- | wizard/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wizard/index.php b/wizard/index.php index 3a817621..9cc36026 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); |