From a93a1f7dfceeaf6b5d83fd5b735bd61866e96de7 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Mon, 13 Mar 2000 21:14:57 +0000 Subject: [PATCH] added custom toolbar to display_problems_html() --- src/lib/Spong/Host.pm | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/lib/Spong/Host.pm b/src/lib/Spong/Host.pm index 558c909..7d1f050 100755 --- a/src/lib/Spong/Host.pm +++ b/src/lib/Spong/Host.pm @@ -335,11 +335,25 @@ sub display_problem_html { print POSIX::strftime( "%H:%M, %D", localtime($time) ), "
\n"; } - print "$spacer contact: "; - print ""; - print "$human

\n"; -} + if ( $main::WWWCONTACT ) { + print "$spacer contact: "; + print ""; + print "$human\n"; + } + if ( $main::WWW_PROB_ACTIONBAR ) { + my($text) = eval '"' . $main::WWW_ACTIONBAR_CUSTOM . '"'; + if ($@) { + &main::error("add_action_bar: $@"); + &main::error($main::WWW_ACTIONBAR_CUSTOM); + } else { + print "$spacer $text
\n"; + } + } + + + print "

\n"; +} # Returns the name (or a string indicating there are multiple problems), the @@ -416,7 +430,12 @@ sub add_action_bar { if ($main::WWW_ACTIONBAR_CUSTOM) { my($text) = eval '"' . $main::WWW_ACTIONBAR_CUSTOM . '"'; - print " || " . $text; + if ($@) { + &main::error("add_action_bar: $@"); + &main::error($main::WWW_ACTIONBAR_CUSTOM); + } else { + print " || " . $text; + } } print "


\n"; -- 2.30.2