From 24bd43b5069e9bb07737e5dc488c01394b709d69 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 11 Feb 2013 11:36:17 +0100 Subject: [PATCH] fixed the URL of the images --- lib/apache.pm | 18 ++++++++-------- lib/bind.pm | 42 ++++++++++++++++++------------------- lib/disk.pm | 18 ++++++++-------- lib/fail2ban.pm | 6 +++--- lib/fs.pm | 18 ++++++++-------- lib/hptemp.pm | 18 ++++++++-------- lib/icecast.pm | 12 +++++------ lib/int.pm | 18 ++++++++-------- lib/kern.pm | 18 ++++++++-------- lib/lighttpd.pm | 18 ++++++++-------- lib/lmsens.pm | 30 +++++++++++++-------------- lib/mail.pm | 30 +++++++++++++-------------- lib/mysql.pm | 36 ++++++++++++++++---------------- lib/net.pm | 18 ++++++++-------- lib/nfsc.pm | 36 ++++++++++++++++---------------- lib/nfss.pm | 54 ++++++++++++++++++++++++------------------------ lib/nginx.pm | 18 ++++++++-------- lib/ntp.pm | 18 ++++++++-------- lib/nvidia.pm | 18 ++++++++-------- lib/port.pm | 6 +++--- lib/proc.pm | 6 +++--- lib/serv.pm | 18 ++++++++-------- lib/squid.pm | 54 ++++++++++++++++++++++++------------------------ lib/system.pm | 18 ++++++++-------- lib/traffacct.pm | 12 +++++------ lib/user.pm | 18 ++++++++-------- 26 files changed, 288 insertions(+), 288 deletions(-) diff --git a/lib/apache.pm b/lib/apache.pm index a103b74..0b62521 100644 --- a/lib/apache.pm +++ b/lib/apache.pm @@ -377,13 +377,13 @@ sub apache_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apache$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -455,13 +455,13 @@ sub apache_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apache$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -529,13 +529,13 @@ sub apache_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apache$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/bind.pm b/lib/bind.pm index 1bafd6a..fb6fb0e 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -737,13 +737,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {URL} . $config->{imgs_dir} . $PNGz[$e * 7] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { @@ -855,13 +855,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -971,13 +971,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { @@ -1089,13 +1089,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1205,13 +1205,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 4] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 4] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 4] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 4] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { @@ -1299,13 +1299,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 5] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 5] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 5] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 5] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1371,13 +1371,13 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 6] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 6] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 7 + 6] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 7 + 6] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/disk.pm b/lib/disk.pm index e83b735..aad8615 100644 --- a/lib/disk.pm +++ b/lib/disk.pm @@ -402,13 +402,13 @@ sub disk_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /disk$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -490,13 +490,13 @@ sub disk_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /disk$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -574,13 +574,13 @@ sub disk_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /disk$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/fail2ban.pm b/lib/fail2ban.pm index d167647..b88203d 100644 --- a/lib/fail2ban.pm +++ b/lib/fail2ban.pm @@ -408,13 +408,13 @@ sub fail2ban_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /fail2ban$n/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { diff --git a/lib/fs.pm b/lib/fs.pm index d64ef6d..3acf37d 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -724,13 +724,13 @@ sub fs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /fs$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -846,13 +846,13 @@ sub fs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /fs$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1013,13 +1013,13 @@ sub fs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /fs$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/hptemp.pm b/lib/hptemp.pm index 810c781..846449f 100644 --- a/lib/hptemp.pm +++ b/lib/hptemp.pm @@ -398,13 +398,13 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } } @@ -491,13 +491,13 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } } @@ -580,13 +580,13 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } } diff --git a/lib/icecast.pm b/lib/icecast.pm index 81e7f0e..dd45164 100644 --- a/lib/icecast.pm +++ b/lib/icecast.pm @@ -441,13 +441,13 @@ sub icecast_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /icecast$e/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { @@ -534,13 +534,13 @@ sub icecast_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /icecast$e/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 2 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 2 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 2 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 2 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { diff --git a/lib/int.pm b/lib/int.pm index c21bc19..c94a3fd 100644 --- a/lib/int.pm +++ b/lib/int.pm @@ -1038,13 +1038,13 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1106,13 +1106,13 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1171,13 +1171,13 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } } diff --git a/lib/kern.pm b/lib/kern.pm index 5de544e..1d1c53c 100644 --- a/lib/kern.pm +++ b/lib/kern.pm @@ -704,13 +704,13 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -787,13 +787,13 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -870,13 +870,13 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/lighttpd.pm b/lib/lighttpd.pm index e7a75e1..4009a98 100644 --- a/lib/lighttpd.pm +++ b/lib/lighttpd.pm @@ -382,13 +382,13 @@ sub lighttpd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lighttpd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -468,13 +468,13 @@ sub lighttpd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lighttpd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -542,13 +542,13 @@ sub lighttpd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lighttpd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/lmsens.pm b/lib/lmsens.pm index 40f98dc..c520d61 100644 --- a/lib/lmsens.pm +++ b/lib/lmsens.pm @@ -602,13 +602,13 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -742,13 +742,13 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -827,13 +827,13 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -921,13 +921,13 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG4z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1017,13 +1017,13 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG5z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/mail.pm b/lib/mail.pm index 5a1ad3b..3386b35 100644 --- a/lib/mail.pm +++ b/lib/mail.pm @@ -821,13 +821,13 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -921,13 +921,13 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1001,13 +1001,13 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1078,13 +1078,13 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG4z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1169,13 +1169,13 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG5z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/mysql.pm b/lib/mysql.pm index a2345a6..f11fb03 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -745,13 +745,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -865,13 +865,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -951,13 +951,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1033,13 +1033,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1122,13 +1122,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 4] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 4] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 4] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 4] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1215,13 +1215,13 @@ sub mysql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mysql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 5] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 5] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 6 + 5] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 6 + 5] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/net.pm b/lib/net.pm index d06c621..c6e8719 100644 --- a/lib/net.pm +++ b/lib/net.pm @@ -456,13 +456,13 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -543,13 +543,13 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -626,13 +626,13 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/nfsc.pm b/lib/nfsc.pm index 6744727..b428653 100644 --- a/lib/nfsc.pm +++ b/lib/nfsc.pm @@ -418,13 +418,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -499,13 +499,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -592,13 +592,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -681,13 +681,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG4z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -770,13 +770,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG5z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -857,13 +857,13 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG6z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/nfss.pm b/lib/nfss.pm index ab54272..9f4428a 100644 --- a/lib/nfss.pm +++ b/lib/nfss.pm @@ -502,13 +502,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -583,13 +583,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -664,13 +664,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -750,13 +750,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG4z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -839,13 +839,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG5z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -930,13 +930,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG6z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1051,13 +1051,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG7z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG7z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG7z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG7z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1138,13 +1138,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss8/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG8z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG8z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG8z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG8z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1229,13 +1229,13 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss9/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG9z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG9z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG9z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG9z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/nginx.pm b/lib/nginx.pm index 45116f5..1dbbbd1 100644 --- a/lib/nginx.pm +++ b/lib/nginx.pm @@ -397,13 +397,13 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -474,13 +474,13 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -603,13 +603,13 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/ntp.pm b/lib/ntp.pm index 05c086f..709cd1c 100644 --- a/lib/ntp.pm +++ b/lib/ntp.pm @@ -399,13 +399,13 @@ sub ntp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ntp$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -472,13 +472,13 @@ sub ntp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ntp$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 1] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -568,13 +568,13 @@ sub ntp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ntp$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$e * 3 + 2] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/nvidia.pm b/lib/nvidia.pm index ac8f575..6c41536 100644 --- a/lib/nvidia.pm +++ b/lib/nvidia.pm @@ -394,13 +394,13 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -501,13 +501,13 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -604,13 +604,13 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/port.pm b/lib/port.pm index 3ee33f8..ef2321d 100644 --- a/lib/port.pm +++ b/lib/port.pm @@ -557,13 +557,13 @@ sub port_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /port$n3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$n3] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n3] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$n3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n3] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { diff --git a/lib/proc.pm b/lib/proc.pm index 552bd81..ccbc2d9 100644 --- a/lib/proc.pm +++ b/lib/proc.pm @@ -630,13 +630,13 @@ sub proc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /proc$n/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } if($title) { diff --git a/lib/serv.pm b/lib/serv.pm index ea14323..0bf5f25 100644 --- a/lib/serv.pm +++ b/lib/serv.pm @@ -752,13 +752,13 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -855,13 +855,13 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -971,13 +971,13 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/squid.pm b/lib/squid.pm index 54ee7e2..4ca9ad2 100644 --- a/lib/squid.pm +++ b/lib/squid.pm @@ -710,13 +710,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -792,13 +792,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -922,13 +922,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1011,13 +1011,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG4z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG4z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1096,13 +1096,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG5z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG5z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1183,13 +1183,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG6z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG6z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1277,13 +1277,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG7z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG7z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG7z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG7z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1359,13 +1359,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid8/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG8z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG8z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG8z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG8z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -1441,13 +1441,13 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid9/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG9z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG9z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG9z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG9z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/system.pm b/lib/system.pm index 0d8ff29..369a181 100644 --- a/lib/system.pm +++ b/lib/system.pm @@ -507,13 +507,13 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -587,13 +587,13 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -693,13 +693,13 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } diff --git a/lib/traffacct.pm b/lib/traffacct.pm index e481389..704f8df 100644 --- a/lib/traffacct.pm +++ b/lib/traffacct.pm @@ -523,13 +523,13 @@ sub traffacct_cgi { } if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$n] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } print(" \n"); $n++; @@ -625,13 +625,13 @@ sub traffacct_cgi { } if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNGz[$cgi->{val}] . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$cgi->{val}] . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNGz[$cgi->{val}] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNGz[$cgi->{val}] . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } if(!$silent) { print(" \n"); diff --git a/lib/user.pm b/lib/user.pm index 25b1771..0cbbdc9 100644 --- a/lib/user.pm +++ b/lib/user.pm @@ -288,13 +288,13 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG1z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG1z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -365,13 +365,13 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG2z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG2z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } } @@ -438,13 +438,13 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . $config->{imgs_dir} . $PNG3z . "\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "\">\n"); } else { - print(" {url} . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); + print(" {url} . "/" . $config->{imgs_dir} . $PNG3z . "','','width=" . ($width + 115) . ",height=" . ($height + 100) . ",scrollbars=0,resizable=0'))\">\n"); } } else { - print(" \n"); + print(" \n"); } }