X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=5a5db962083552f70c996498cddcdf252aa7c1e4;hb=HEAD;hp=08e20c87504ba9b13805ce47775c7af96def2da5;hpb=219c811aa5ee634bb17e1fa19a2d75351949b8d4;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 08e20c875..a56e0b183 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,19 +44,19 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
+
+
-
-
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
% if ( $include_selectize ) {
-
-
-
+
+
+
% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
@@ -96,11 +96,19 @@ Example:
+% foreach my $top_warning ( @top_warnings ) {
+
+
+
+ <% $top_warning %>
+ |
+
+% }
-
+
% if ( $menu_position eq 'top' ) {
@@ -204,8 +212,10 @@ Example:
% if ( $cookies{freeside_status} ) {
% foreach my $status_msg ( $cookies{freeside_status}->value ) {
-
- <% $status_msg |h %> |
+% my ($message, $type) = split /=/, $status_msg;
+% $type ||= 'status';
+
+ <% $message |h %> |
% }
@@ -270,4 +280,27 @@ if ( scalar(@agentnums) == 1 ) {
$company_url = $conf->config('company_url');
}
+## status->green(#eeffee), warning->yellow(#fdfd96), error->red(#f97c7c)
+my %status_color = ( 'status' => '#eeffee', 'warning' => '#fefbd0', 'error' => '#f97c7c', );
+my %status_image = ( 'status' => 'images/tick.png', 'warning' => 'images/tick.png', 'error' => 'images/error.png', );
+
+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 sales\@freeside.biz to schedule an upgrade ASAP.
+END
+}
+
%init>