[freeside-commits] branch FREESIDE_3_BRANCH updated. 8613cd33f3985674611525c5f0c96c39f3d77328

Ivan Kohler ivan at freeside.biz
Thu Mar 3 18:00:22 PST 2022


The branch, FREESIDE_3_BRANCH has been updated
       via  8613cd33f3985674611525c5f0c96c39f3d77328 (commit)
      from  8998e26614828e2a498781e9c8912e412c856857 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8613cd33f3985674611525c5f0c96c39f3d77328
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Mar 3 18:00:21 2022 -0800

    show a warning when the OS goes EOL

diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index cdcb0afa4..26eab3146 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -90,6 +90,14 @@ Example:
           <BR></FONT>
         </td>
       </tr>
+%     foreach my $top_warning ( @top_warnings ) {
+        <TR>
+          <TD COLSPAN=4>
+            <IMG SRC="<% $fsurl %>images/error.png">
+            <FONT COLOR="#FF0000" SIZE="+1"><% $top_warning %></FONT>
+          </TD>
+        </TR>
+%     }
     </table>
 
     <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0>
@@ -246,4 +254,23 @@ if ( scalar(@agentnums) == 1 ) {
   $company_url  = $conf->config('company_url');
 }
 
-</%init>
\ No newline at end of file
+my @top_warnings = ();
+my $deb_version = int(slurp('/etc/debian_version'));
+#per wiki.debian.org/LTS
+push @top_warnings, deb_warning($deb_version)
+  if ( $deb_version <= 8 )
+  or ( $deb_version == 9  && time > 1656658800 ) #7/1/2022
+  or ( $deb_version == 10 && time > 1719817200 ) #7/1/2024
+  or ( $deb_version == 11 && time > 1782889200 ) #7/1/2026
+;
+
+sub deb_warning {
+  my $ver = shift;
+  <<"END";
+WARNING: Your operating system (Debian v$ver) is EOL and no longer supported.
+This is insecure and a violation of PCI data security standard.
+Contact <a href="mailto:sales\@freeside.biz?subject=Debian OS upgrade">sales\@freeside.biz</a> to schedule an upgrade ASAP.
+END
+}
+
+</%init>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/elements/header-full.html | 29 ++++++++++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list