From a3e3a8bb49c327b321ae2901c1be9e6cdef3b240 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 30 Aug 2022 08:36:42 +0200 Subject: Wizard: enable EL-7 EOL warning --- wizard/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wizard') diff --git a/wizard/index.php b/wizard/index.php index 960651a4..255abfc1 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -199,16 +199,16 @@ $counter = intval(@file_get_contents(COUNTER)); $err = false; if ($os) { list($dist, $ver) = explode(' ', $os, 2); - if ($ver == 6) { + if ($ver == 7) { $days = (int)((mktime(0,0,0,6,30,2024) - time()) / (60 * 60 * 24)); $weeks = round($days/7); $months = round($days/30); if ($months >= 6) { - printf("
  • WARNING: %s will reach its end of life in November 2020, in $months months, upgrade is heartily recommended.

  • ", $os); + printf("
  • WARNING: %s will reach its end of life in June 2024, in $months months, upgrade is heartily recommended.

  • ", $os); } else if ($weeks >= 8) { - printf("
  • WARNING: %s will reach its end of life in November 2020, in $weeks weeks, upgrade is strongly recommended.

  • ", $os); + printf("
  • WARNING: %s will reach its end of life in June 2024, in $weeks weeks, upgrade is strongly recommended.

  • ", $os); } else { - printf("
  • WARNING: %s will reach its end of life in November 2020, in $days days, upgrade is urgently recommended.

  • ", $os); + printf("
  • WARNING: %s will reach its end of life in June 2024, in $days days, upgrade is urgently recommended.

  • ", $os); } } if (($dist == 'Fedora' && $ver<=FC_EOL) || ($dist != 'Fedora' && $ver<=EL_EOL)) { -- cgit