X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=a56e0b183b2415e4ff35339201f6e4c684307907;hp=59e27851b0f0376255555c1fb3288f0365decdca;hb=HEAD;hpb=4afceb55388ffa32d18c2b821fda11027540dce5
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 59e27851b..a56e0b183 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,13 +44,20 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
-
+
+
+
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
+% if ( $include_selectize ) {
+
+
+
+% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
@@ -89,11 +96,19 @@ Example:
+% foreach my $top_warning ( @top_warnings ) {
+
+
+
+ <% $top_warning %>
+ |
+
+% }
-
+
% if ( $menu_position eq 'top' ) {
@@ -197,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 %> |
% }
@@ -219,6 +236,7 @@ my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' );
my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 );
my $mobile;
+my $include_selectize;
if ( ref($_[0]) ) {
my $opt = shift;
@@ -231,6 +249,7 @@ if ( ref($_[0]) ) {
$nocss = $opt->{nocss};
$mobile = $opt->{mobile};
$no_jquery = $opt->{no_jquery};
+ $include_selectize = $opt->{include_selectize} ? 1 : 0;
} else {
($title, $menubar) = ( shift, shift );
$etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
@@ -261,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>