From 2daaaa64fd58fc76d048d8aef57ae1b8f59addd8 Mon Sep 17 00:00:00 2001 From: Remi Collet <remi@remirepo.net> Date: Fri, 11 Sep 2020 17:34:18 +0200 Subject: Wizard: more visible warning for EL-6 EOL --- wizard/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wizard') 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); -- cgit