diff --git a/lib/Monitorix.pm b/lib/Monitorix.pm index a61262d..4a396c6 100644 --- a/lib/Monitorix.pm +++ b/lib/Monitorix.pm @@ -25,7 +25,7 @@ use warnings; use Exporter 'import'; use POSIX qw(setuid setgid setsid getgid getuid); use Socket; -our @EXPORT = qw(logger trim min max celsius_to picz_js_link uptime2str setup_riglim httpd_setup get_nvidia_data get_ati_data flush_accounting_rules); +our @EXPORT = qw(logger trim min max celsius_to img_element picz_a_element picz_js_a_element uptime2str setup_riglim httpd_setup get_nvidia_data get_ati_data flush_accounting_rules); sub logger { my ($msg) = @_; @@ -70,7 +70,17 @@ sub celsius_to { return $celsius; } -sub picz_js_link { +sub img_element { + my %params = @_; + return "" +} + +sub picz_a_element { + my %params = @_; + return "{url} . "/" . $params{config}->{imgs_dir} . $params{IMGz} . "\">" . img_element(config => $params{config}, IMG => $params{IMG}) . "" +} + +sub picz_js_a_element { my %params = @_; my $zoom = (uc($params{config}->{image_format}) eq "SVG") ? (4 / 3) : 1; @@ -78,7 +88,7 @@ sub picz_js_link { my $picz_width = POSIX::ceil($params{width} * $zoom); my $picz_height = POSIX::ceil($params{height} * $zoom + 0.5); - return " {url} . "/" . $params{config}->{imgs_dir} . $params{IMGz} . "','','width=" . $picz_width . ",height=" . $picz_height . ",scrollbars=0,resizable=0'))\">\n"; + return "{url} . "/" . $params{config}->{imgs_dir} . $params{IMGz} . "','','width=" . $picz_width . ",height=" . $picz_height . ",scrollbars=0,resizable=0'))\">" . img_element(config => $params{config}, IMG => $params{IMG}) . ""; } sub uptime2str { diff --git a/lib/ambsens.pm b/lib/ambsens.pm index 1cd64c1..034e224 100644 --- a/lib/ambsens.pm +++ b/lib/ambsens.pm @@ -502,7 +502,7 @@ sub ambsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ambsens$n/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -511,10 +511,10 @@ sub ambsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } } if($title) { diff --git a/lib/amdgpu.pm b/lib/amdgpu.pm index e70fe28..1133dcf 100644 --- a/lib/amdgpu.pm +++ b/lib/amdgpu.pm @@ -723,7 +723,7 @@ sub amdgpu_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /amdgpu$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + $n_plot] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -732,10 +732,10 @@ sub amdgpu_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } } } diff --git a/lib/apache.pm b/lib/apache.pm index 4ec96ef..4390b71 100644 --- a/lib/apache.pm +++ b/lib/apache.pm @@ -943,7 +943,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -952,10 +952,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -1078,7 +1078,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1087,10 +1087,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -1167,7 +1167,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1176,10 +1176,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -1252,7 +1252,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1261,10 +1261,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -1350,7 +1350,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1359,10 +1359,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1435,7 +1435,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1444,10 +1444,10 @@ sub apache_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/apcupsd.pm b/lib/apcupsd.pm index c295af1..a02a76f 100644 --- a/lib/apcupsd.pm +++ b/lib/apcupsd.pm @@ -542,7 +542,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -551,10 +551,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -646,7 +646,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -655,10 +655,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -749,7 +749,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -758,10 +758,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -837,7 +837,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -846,10 +846,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -925,7 +925,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -934,10 +934,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1008,7 +1008,7 @@ sub apcupsd_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /apcupsd$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1017,10 +1017,10 @@ sub apcupsd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/bind.pm b/lib/bind.pm index 2fc687d..394ee4e 100644 --- a/lib/bind.pm +++ b/lib/bind.pm @@ -935,7 +935,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -944,10 +944,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7]) . "\n"); } } if($title) { @@ -1062,7 +1062,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1071,10 +1071,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 1]) . "\n"); } } @@ -1187,7 +1187,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1196,10 +1196,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 2]) . "\n"); } } if($title) { @@ -1314,7 +1314,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1323,10 +1323,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 3]) . "\n"); } } @@ -1439,7 +1439,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1448,10 +1448,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 4]) . "\n"); } } if($title) { @@ -1544,7 +1544,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1553,10 +1553,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 5]) . "\n"); } } @@ -1628,7 +1628,7 @@ sub bind_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /bind7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1637,10 +1637,10 @@ sub bind_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 6]) . "\n"); } } diff --git a/lib/chrony.pm b/lib/chrony.pm index 69122a8..5d41ff9 100644 --- a/lib/chrony.pm +++ b/lib/chrony.pm @@ -474,7 +474,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -483,10 +483,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5]) . "\n"); } } @@ -568,7 +568,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -577,10 +577,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -656,7 +656,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -665,10 +665,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -742,7 +742,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -751,10 +751,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -825,7 +825,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -834,10 +834,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -908,7 +908,7 @@ sub chrony_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /chrony$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -917,10 +917,10 @@ sub chrony_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/disk.pm b/lib/disk.pm index 8969e88..92f18e6 100644 --- a/lib/disk.pm +++ b/lib/disk.pm @@ -607,7 +607,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -616,10 +616,10 @@ sub disk_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3]) . "\n"); } } @@ -760,7 +760,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -769,10 +769,10 @@ sub disk_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 1]) . "\n"); } } @@ -909,7 +909,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -918,10 +918,10 @@ sub disk_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 2]) . "\n"); } } diff --git a/lib/du.pm b/lib/du.pm index e3023de..fa5b9f6 100644 --- a/lib/du.pm +++ b/lib/du.pm @@ -512,7 +512,7 @@ sub du_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /du$n/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -521,10 +521,10 @@ sub du_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } } if($title) { diff --git a/lib/fail2ban.pm b/lib/fail2ban.pm index 7170633..e6630c4 100644 --- a/lib/fail2ban.pm +++ b/lib/fail2ban.pm @@ -477,7 +477,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -486,10 +486,10 @@ sub fail2ban_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } } if($title) { diff --git a/lib/fs.pm b/lib/fs.pm index 2893130..11d8fd7 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -1064,7 +1064,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1073,10 +1073,10 @@ sub fs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4]) . "\n"); } } @@ -1183,7 +1183,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1192,10 +1192,10 @@ sub fs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 1]) . "\n"); } } @@ -1299,7 +1299,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1308,10 +1308,10 @@ sub fs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 2]) . "\n"); } } @@ -1469,7 +1469,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1478,10 +1478,10 @@ sub fs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 3]) . "\n"); } } diff --git a/lib/ftp.pm b/lib/ftp.pm index ffdd47f..8b18c0e 100644 --- a/lib/ftp.pm +++ b/lib/ftp.pm @@ -531,7 +531,7 @@ sub ftp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ftp1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -540,10 +540,10 @@ sub ftp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -635,7 +635,7 @@ sub ftp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ftp2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -644,10 +644,10 @@ sub ftp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -734,7 +734,7 @@ sub ftp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ftp3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -743,10 +743,10 @@ sub ftp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/gensens.pm b/lib/gensens.pm index bb222dc..5f7729e 100644 --- a/lib/gensens.pm +++ b/lib/gensens.pm @@ -572,7 +572,7 @@ sub gensens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /gensens0/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -581,10 +581,10 @@ sub gensens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e]) . "\n"); } } diff --git a/lib/hptemp.pm b/lib/hptemp.pm index c0d2895..f26982a 100644 --- a/lib/hptemp.pm +++ b/lib/hptemp.pm @@ -534,7 +534,7 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -543,10 +543,10 @@ sub hptemp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } } @@ -664,7 +664,7 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -673,10 +673,10 @@ sub hptemp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } } @@ -790,7 +790,7 @@ sub hptemp_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /hptemp3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -799,10 +799,10 @@ sub hptemp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } } diff --git a/lib/icecast.pm b/lib/icecast.pm index cd99c33..7f93f3a 100644 --- a/lib/icecast.pm +++ b/lib/icecast.pm @@ -505,7 +505,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 2], IMG => $IMG[$e * 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -514,10 +514,10 @@ sub icecast_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 2], IMG => $IMG[$e * 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 2], IMG => $IMG[$e * 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 2]) . "\n"); } } if($title) { @@ -609,7 +609,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 2 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 2 + 1], IMG => $IMG[$e * 2 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -618,10 +618,10 @@ sub icecast_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 2 + 1], IMG => $IMG[$e * 2 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 2 + 1], IMG => $IMG[$e * 2 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 2 + 1]) . "\n"); } } if($title) { diff --git a/lib/int.pm b/lib/int.pm index 7c72653..9a90358 100644 --- a/lib/int.pm +++ b/lib/int.pm @@ -1102,7 +1102,7 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1111,10 +1111,10 @@ sub int_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -1182,7 +1182,7 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1191,10 +1191,10 @@ sub int_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -1258,7 +1258,7 @@ sub int_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /int3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1267,10 +1267,10 @@ sub int_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } } diff --git a/lib/ipmi.pm b/lib/ipmi.pm index 9bd140b..5dddc9c 100644 --- a/lib/ipmi.pm +++ b/lib/ipmi.pm @@ -461,7 +461,7 @@ sub ipmi_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /ipmi$n/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -470,10 +470,10 @@ sub ipmi_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } } if($title) { diff --git a/lib/kern.pm b/lib/kern.pm index 171dc44..3751d93 100644 --- a/lib/kern.pm +++ b/lib/kern.pm @@ -759,7 +759,7 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -768,10 +768,10 @@ sub kern_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -864,7 +864,7 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -873,10 +873,10 @@ sub kern_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -966,7 +966,7 @@ sub kern_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /kern3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -975,10 +975,10 @@ sub kern_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/libvirt.pm b/lib/libvirt.pm index 4325510..a95e64a 100644 --- a/lib/libvirt.pm +++ b/lib/libvirt.pm @@ -572,7 +572,7 @@ sub libvirt_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /libvirt$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -581,10 +581,10 @@ sub libvirt_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4]) . "\n"); } } @@ -702,7 +702,7 @@ sub libvirt_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /libvirt$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -711,10 +711,10 @@ sub libvirt_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 1]) . "\n"); } } @@ -829,7 +829,7 @@ sub libvirt_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /libvirt$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -838,10 +838,10 @@ sub libvirt_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 2]) . "\n"); } } @@ -962,7 +962,7 @@ sub libvirt_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /libvirt$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -971,10 +971,10 @@ sub libvirt_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 3]) . "\n"); } } diff --git a/lib/lighttpd.pm b/lib/lighttpd.pm index f2cf334..5a3f640 100644 --- a/lib/lighttpd.pm +++ b/lib/lighttpd.pm @@ -437,7 +437,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -446,10 +446,10 @@ sub lighttpd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3]) . "\n"); } } @@ -531,7 +531,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -540,10 +540,10 @@ sub lighttpd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 1]) . "\n"); } } @@ -616,7 +616,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -625,10 +625,10 @@ sub lighttpd_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 2]) . "\n"); } } diff --git a/lib/lmsens.pm b/lib/lmsens.pm index 745eaf0..7143018 100644 --- a/lib/lmsens.pm +++ b/lib/lmsens.pm @@ -816,7 +816,7 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -825,10 +825,10 @@ sub lmsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -1004,7 +1004,7 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1013,10 +1013,10 @@ sub lmsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -1139,7 +1139,7 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1148,10 +1148,10 @@ sub lmsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -1284,7 +1284,7 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1293,10 +1293,10 @@ sub lmsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1442,7 +1442,7 @@ sub lmsens_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /lmsens5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1451,10 +1451,10 @@ sub lmsens_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } diff --git a/lib/mail.pm b/lib/mail.pm index 54f8a02..52ccc7c 100644 --- a/lib/mail.pm +++ b/lib/mail.pm @@ -1153,7 +1153,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1162,10 +1162,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -1272,7 +1272,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1281,10 +1281,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -1360,7 +1360,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1369,10 +1369,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -1445,7 +1445,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1454,10 +1454,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1542,7 +1542,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1551,10 +1551,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } @@ -1656,7 +1656,7 @@ sub mail_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mail6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1665,10 +1665,10 @@ sub mail_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } diff --git a/lib/memcached.pm b/lib/memcached.pm index c0f52d9..1aa1557 100644 --- a/lib/memcached.pm +++ b/lib/memcached.pm @@ -704,7 +704,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -713,10 +713,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7], IMG => $IMG[$e * 7]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7]) . "\n"); } } @@ -840,7 +840,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -849,10 +849,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 1], IMG => $IMG[$e * 7 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 1]) . "\n"); } } @@ -934,7 +934,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -943,10 +943,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 2], IMG => $IMG[$e * 7 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 2]) . "\n"); } } @@ -1017,7 +1017,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1026,10 +1026,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 3], IMG => $IMG[$e * 7 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 3]) . "\n"); } } @@ -1110,7 +1110,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1119,10 +1119,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 4], IMG => $IMG[$e * 7 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 4]) . "\n"); } } @@ -1203,7 +1203,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1212,10 +1212,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 5], IMG => $IMG[$e * 7 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 5]) . "\n"); } } @@ -1297,7 +1297,7 @@ sub memcached_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /memcached$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 7 + 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1306,10 +1306,10 @@ sub memcached_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 7 + 6], IMG => $IMG[$e * 7 + 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 7 + 6]) . "\n"); } } diff --git a/lib/mongodb.pm b/lib/mongodb.pm index 70920dd..a6ec67a 100644 --- a/lib/mongodb.pm +++ b/lib/mongodb.pm @@ -884,7 +884,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -893,10 +893,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -990,7 +990,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -999,10 +999,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -1082,7 +1082,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1091,10 +1091,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -1170,7 +1170,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1179,10 +1179,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -1258,7 +1258,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1267,10 +1267,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1367,7 +1367,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1376,10 +1376,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } @@ -1486,7 +1486,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1495,10 +1495,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } @@ -1584,7 +1584,7 @@ sub mongodb_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /mongodb/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1593,10 +1593,10 @@ sub mongodb_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } if($title) { diff --git a/lib/mysql.pm b/lib/mysql.pm index 337e630..ad394d2 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -790,7 +790,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -799,10 +799,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -921,7 +921,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -930,10 +930,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -1018,7 +1018,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1027,10 +1027,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -1111,7 +1111,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1120,10 +1120,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -1211,7 +1211,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1220,10 +1220,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1320,7 +1320,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1329,10 +1329,10 @@ sub mysql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/net.pm b/lib/net.pm index 19ca0be..e86abd3 100644 --- a/lib/net.pm +++ b/lib/net.pm @@ -520,7 +520,7 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -529,10 +529,10 @@ sub net_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -624,7 +624,7 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -633,10 +633,10 @@ sub net_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -724,7 +724,7 @@ sub net_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /$netname/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -733,10 +733,10 @@ sub net_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/netstat.pm b/lib/netstat.pm index b0bab42..ea1bc3e 100644 --- a/lib/netstat.pm +++ b/lib/netstat.pm @@ -584,7 +584,7 @@ sub netstat_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /netstat1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -593,10 +593,10 @@ sub netstat_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -712,7 +712,7 @@ sub netstat_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /netstat2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -721,10 +721,10 @@ sub netstat_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -816,7 +816,7 @@ sub netstat_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /netstat3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -825,10 +825,10 @@ sub netstat_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -926,7 +926,7 @@ sub netstat_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /netstat4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -935,10 +935,10 @@ sub netstat_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1014,7 +1014,7 @@ sub netstat_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /netstat5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1023,10 +1023,10 @@ sub netstat_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } diff --git a/lib/nfsc.pm b/lib/nfsc.pm index 8c72ce4..1bc35a3 100644 --- a/lib/nfsc.pm +++ b/lib/nfsc.pm @@ -484,7 +484,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -493,10 +493,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -580,7 +580,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -589,10 +589,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -688,7 +688,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -697,10 +697,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -792,7 +792,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -801,10 +801,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -896,7 +896,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -905,10 +905,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } @@ -994,7 +994,7 @@ sub nfsc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfsc6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1003,10 +1003,10 @@ sub nfsc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } diff --git a/lib/nfss.pm b/lib/nfss.pm index d8ebf6d..b228e10 100644 --- a/lib/nfss.pm +++ b/lib/nfss.pm @@ -646,7 +646,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -655,10 +655,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -742,7 +742,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -751,10 +751,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -838,7 +838,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -847,10 +847,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -935,7 +935,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -944,10 +944,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1035,7 +1035,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1044,10 +1044,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } @@ -1137,7 +1137,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1146,10 +1146,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } @@ -1269,7 +1269,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG7z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1278,10 +1278,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG7) . "\n"); } } @@ -1367,7 +1367,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss8/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG8z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1376,10 +1376,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG8) . "\n"); } } @@ -1469,7 +1469,7 @@ sub nfss_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nfss9/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG9z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1478,10 +1478,10 @@ sub nfss_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG9) . "\n"); } } diff --git a/lib/nginx.pm b/lib/nginx.pm index 82df9ce..19b4bd0 100644 --- a/lib/nginx.pm +++ b/lib/nginx.pm @@ -474,7 +474,7 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -483,10 +483,10 @@ sub nginx_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -562,7 +562,7 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -571,10 +571,10 @@ sub nginx_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -722,7 +722,7 @@ sub nginx_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nginx3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -731,10 +731,10 @@ sub nginx_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/ntp.pm b/lib/ntp.pm index 19266be..01e3789 100644 --- a/lib/ntp.pm +++ b/lib/ntp.pm @@ -455,7 +455,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -464,10 +464,10 @@ sub ntp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3]) . "\n"); } } @@ -539,7 +539,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -548,10 +548,10 @@ sub ntp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 1]) . "\n"); } } @@ -646,7 +646,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -655,10 +655,10 @@ sub ntp_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 2]) . "\n"); } } diff --git a/lib/nut.pm b/lib/nut.pm index aabe2e8..2c69e3a 100644 --- a/lib/nut.pm +++ b/lib/nut.pm @@ -530,7 +530,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -539,10 +539,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -634,7 +634,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -643,10 +643,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -737,7 +737,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -746,10 +746,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -825,7 +825,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -834,10 +834,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -917,7 +917,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -926,10 +926,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1000,7 +1000,7 @@ sub nut_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nut$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1009,10 +1009,10 @@ sub nut_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/nvidia.pm b/lib/nvidia.pm index c1efcd4..596793a 100644 --- a/lib/nvidia.pm +++ b/lib/nvidia.pm @@ -535,7 +535,7 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -544,10 +544,10 @@ sub nvidia_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -646,7 +646,7 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -655,10 +655,10 @@ sub nvidia_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -753,7 +753,7 @@ sub nvidia_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidia3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -762,10 +762,10 @@ sub nvidia_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/nvidiagpu.pm b/lib/nvidiagpu.pm index 4f57955..5b749a8 100644 --- a/lib/nvidiagpu.pm +++ b/lib/nvidiagpu.pm @@ -676,7 +676,7 @@ sub nvidiagpu_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvidiagpu$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + $n_plot] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -685,10 +685,10 @@ sub nvidiagpu_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_plot], IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + $n_plot]) . "\n"); } } } diff --git a/lib/nvme.pm b/lib/nvme.pm index 2b9ae2a..0504a73 100644 --- a/lib/nvme.pm +++ b/lib/nvme.pm @@ -677,7 +677,7 @@ sub nvme_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /nvme$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + $n_smart] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + $n_smart], IMG => $IMG[$e * 3 + $n_smart]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -686,10 +686,10 @@ sub nvme_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_smart], IMG => $IMG[$e * 3 + $n_smart])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + $n_smart], IMG => $IMG[$e * 3 + $n_smart]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + $n_smart]) . "\n"); } } } diff --git a/lib/pagespeed.pm b/lib/pagespeed.pm index f7b75b2..d6b1c5b 100644 --- a/lib/pagespeed.pm +++ b/lib/pagespeed.pm @@ -926,7 +926,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8], IMG => $IMG[$e * 8]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -935,10 +935,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8], IMG => $IMG[$e * 8])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8], IMG => $IMG[$e * 8]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8]) . "\n"); } } @@ -1056,7 +1056,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 1], IMG => $IMG[$e * 8 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1065,10 +1065,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 1], IMG => $IMG[$e * 8 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 1], IMG => $IMG[$e * 8 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 1]) . "\n"); } } @@ -1169,7 +1169,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 2], IMG => $IMG[$e * 8 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1178,10 +1178,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 2], IMG => $IMG[$e * 8 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 2], IMG => $IMG[$e * 8 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 2]) . "\n"); } } if($title) { @@ -1273,7 +1273,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 3], IMG => $IMG[$e * 8 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1282,10 +1282,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 3], IMG => $IMG[$e * 8 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 3], IMG => $IMG[$e * 8 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 3]) . "\n"); } } @@ -1373,7 +1373,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 4], IMG => $IMG[$e * 8 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1382,10 +1382,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 4], IMG => $IMG[$e * 8 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 4], IMG => $IMG[$e * 8 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 4]) . "\n"); } } @@ -1468,7 +1468,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 5], IMG => $IMG[$e * 8 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1477,10 +1477,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 5], IMG => $IMG[$e * 8 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 5], IMG => $IMG[$e * 8 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 5]) . "\n"); } } @@ -1568,7 +1568,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 6], IMG => $IMG[$e * 8 + 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1577,10 +1577,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 6], IMG => $IMG[$e * 8 + 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 6], IMG => $IMG[$e * 8 + 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 6]) . "\n"); } } @@ -1643,7 +1643,7 @@ sub pagespeed_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pagespeed$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 8 + 7] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 8 + 7], IMG => $IMG[$e * 8 + 7]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1652,10 +1652,10 @@ sub pagespeed_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 7], IMG => $IMG[$e * 8 + 7])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 8 + 7], IMG => $IMG[$e * 8 + 7]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 8 + 7]) . "\n"); } } diff --git a/lib/pgsql.pm b/lib/pgsql.pm index 1a25f0c..da37862 100644 --- a/lib/pgsql.pm +++ b/lib/pgsql.pm @@ -931,7 +931,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -940,10 +940,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -1062,7 +1062,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1071,10 +1071,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -1149,7 +1149,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1158,10 +1158,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -1252,7 +1252,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1261,10 +1261,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -1344,7 +1344,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1353,10 +1353,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1436,7 +1436,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1445,10 +1445,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } @@ -1570,7 +1570,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1579,10 +1579,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } @@ -1683,7 +1683,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1692,10 +1692,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } @@ -1773,7 +1773,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1782,10 +1782,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } @@ -1870,7 +1870,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1879,10 +1879,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } @@ -1967,7 +1967,7 @@ sub pgsql_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /pgsql/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + $e2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1976,10 +1976,10 @@ sub pgsql_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + $e2], IMG => $IMG[$e * 6 + $e2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + $e2]) . "\n"); } } $e2++; diff --git a/lib/phpapc.pm b/lib/phpapc.pm index e122f00..1e335ba 100644 --- a/lib/phpapc.pm +++ b/lib/phpapc.pm @@ -458,7 +458,7 @@ sub phpapc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpapc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -467,10 +467,10 @@ sub phpapc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3]) . "\n"); } } @@ -554,7 +554,7 @@ sub phpapc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpapc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -563,10 +563,10 @@ sub phpapc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 1]) . "\n"); } } @@ -643,7 +643,7 @@ sub phpapc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpapc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -652,10 +652,10 @@ sub phpapc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 2]) . "\n"); } } diff --git a/lib/phpfpm.pm b/lib/phpfpm.pm index 623a016..1c60d0d 100644 --- a/lib/phpfpm.pm +++ b/lib/phpfpm.pm @@ -518,7 +518,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -527,10 +527,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -614,7 +614,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -623,10 +623,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -712,7 +712,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -721,10 +721,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -837,7 +837,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -846,10 +846,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -930,7 +930,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -939,10 +939,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1023,7 +1023,7 @@ sub phpfpm_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /phpfpm$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1032,10 +1032,10 @@ sub phpfpm_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/port.pm b/lib/port.pm index 5a55939..c741755 100644 --- a/lib/port.pm +++ b/lib/port.pm @@ -704,7 +704,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n3], IMG => $IMG[$n3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -713,10 +713,10 @@ sub port_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n3], IMG => $IMG[$n3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n3], IMG => $IMG[$n3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n3]) . "\n"); } } if($title) { diff --git a/lib/proc.pm b/lib/proc.pm index 1703a05..c488b42 100644 --- a/lib/proc.pm +++ b/lib/proc.pm @@ -676,7 +676,7 @@ 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") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -685,10 +685,10 @@ sub proc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } } if($title) { diff --git a/lib/process.pm b/lib/process.pm index fd5db4a..9a9349c 100644 --- a/lib/process.pm +++ b/lib/process.pm @@ -606,7 +606,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10], IMG => $IMG[$e * 10]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -615,10 +615,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10], IMG => $IMG[$e * 10])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10], IMG => $IMG[$e * 10]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10]) . "\n"); } } @@ -740,7 +740,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 1], IMG => $IMG[$e * 10 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -749,10 +749,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 1], IMG => $IMG[$e * 10 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 1], IMG => $IMG[$e * 10 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 1]) . "\n"); } } @@ -871,7 +871,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 2], IMG => $IMG[$e * 10 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -880,10 +880,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 2], IMG => $IMG[$e * 10 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 2], IMG => $IMG[$e * 10 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 2]) . "\n"); } } @@ -1008,7 +1008,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 3], IMG => $IMG[$e * 10 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1017,10 +1017,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 3], IMG => $IMG[$e * 10 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 3], IMG => $IMG[$e * 10 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 3]) . "\n"); } } @@ -1119,7 +1119,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 4], IMG => $IMG[$e * 10 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1128,10 +1128,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 4], IMG => $IMG[$e * 10 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 4], IMG => $IMG[$e * 10 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 4]) . "\n"); } } @@ -1233,7 +1233,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 5], IMG => $IMG[$e * 10 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1242,10 +1242,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 5], IMG => $IMG[$e * 10 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 5], IMG => $IMG[$e * 10 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 5]) . "\n"); } } @@ -1411,7 +1411,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 6], IMG => $IMG[$e * 10 + 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1420,10 +1420,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 6], IMG => $IMG[$e * 10 + 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 6], IMG => $IMG[$e * 10 + 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 6]) . "\n"); } } @@ -1525,7 +1525,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 7] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 7], IMG => $IMG[$e * 10 + 7]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1534,10 +1534,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 7], IMG => $IMG[$e * 10 + 7])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 7], IMG => $IMG[$e * 10 + 7]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 7]) . "\n"); } } @@ -1672,7 +1672,7 @@ sub process_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 8] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 8], IMG => $IMG[$e * 10 + 8]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1681,10 +1681,10 @@ sub process_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 8], IMG => $IMG[$e * 10 + 8])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 8], IMG => $IMG[$e * 10 + 8]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 8]) . "\n"); } } @@ -1785,7 +1785,7 @@ sub process_cgi { # if($title || ($silent =~ /imagetag/ && $graph =~ /process$e2/)) { # if(lc($config->{enable_zoom}) eq "y") { # if(lc($config->{disable_javascript_void}) eq "y") { -# push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 10 + 9] . "\">\n"); +# push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 10 + 9], IMG => $IMG[$e * 10 + 9]) . "\n"); # } else { # if($version eq "new") { # $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1794,10 +1794,10 @@ sub process_cgi { # $picz_width = $width + 115; # $picz_height = $height + 100; # } -# push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 9], IMG => $IMG[$e * 10 + 9])); +# push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 10 + 9], IMG => $IMG[$e * 10 + 9]) . "\n"); # } # } else { -# push(@output, " \n"); +# push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 10 + 9]) . "\n"); # } # } diff --git a/lib/raspberrypi.pm b/lib/raspberrypi.pm index 7d70f01..f134614 100644 --- a/lib/raspberrypi.pm +++ b/lib/raspberrypi.pm @@ -467,7 +467,7 @@ sub raspberrypi_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /raspberrypi1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -476,10 +476,10 @@ sub raspberrypi_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -559,7 +559,7 @@ sub raspberrypi_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /raspberrypi2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -568,10 +568,10 @@ sub raspberrypi_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -656,7 +656,7 @@ sub raspberrypi_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /raspberrypi3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -665,10 +665,10 @@ sub raspberrypi_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/redis.pm b/lib/redis.pm index d0cec60..75dfa5e 100644 --- a/lib/redis.pm +++ b/lib/redis.pm @@ -592,7 +592,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -601,10 +601,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6], IMG => $IMG[$e * 6]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6]) . "\n"); } } @@ -701,7 +701,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -710,10 +710,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 1], IMG => $IMG[$e * 6 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 1]) . "\n"); } } @@ -799,7 +799,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -808,10 +808,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 2], IMG => $IMG[$e * 6 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 2]) . "\n"); } } @@ -887,7 +887,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -896,10 +896,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 3], IMG => $IMG[$e * 6 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 3]) . "\n"); } } @@ -980,7 +980,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -989,10 +989,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 4], IMG => $IMG[$e * 6 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 4]) . "\n"); } } @@ -1089,7 +1089,7 @@ sub redis_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /redis$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 6 + 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1098,10 +1098,10 @@ sub redis_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 6 + 5], IMG => $IMG[$e * 6 + 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 6 + 5]) . "\n"); } } diff --git a/lib/serv.pm b/lib/serv.pm index 5b1ebd2..6e59da4 100644 --- a/lib/serv.pm +++ b/lib/serv.pm @@ -969,7 +969,7 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -978,10 +978,10 @@ sub serv_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -1083,7 +1083,7 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1092,10 +1092,10 @@ sub serv_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -1210,7 +1210,7 @@ sub serv_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /serv3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1219,10 +1219,10 @@ sub serv_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/squid.pm b/lib/squid.pm index 92c4ef9..c7c3979 100644 --- a/lib/squid.pm +++ b/lib/squid.pm @@ -810,7 +810,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -819,10 +819,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -907,7 +907,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -916,10 +916,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -1047,7 +1047,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1056,10 +1056,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -1147,7 +1147,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1156,10 +1156,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1243,7 +1243,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1252,10 +1252,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } @@ -1341,7 +1341,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1350,10 +1350,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } @@ -1446,7 +1446,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG7z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1455,10 +1455,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG7) . "\n"); } } @@ -1554,7 +1554,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid8/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG8z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1563,10 +1563,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG8) . "\n"); } } @@ -1662,7 +1662,7 @@ sub squid_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /squid9/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG9z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1671,10 +1671,10 @@ sub squid_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG9) . "\n"); } } diff --git a/lib/system.pm b/lib/system.pm index d3403f6..144a2e0 100644 --- a/lib/system.pm +++ b/lib/system.pm @@ -660,7 +660,7 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -669,10 +669,10 @@ sub system_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -779,7 +779,7 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -788,10 +788,10 @@ sub system_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -908,7 +908,7 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -917,10 +917,10 @@ sub system_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -988,7 +988,7 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -997,10 +997,10 @@ sub system_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1086,7 +1086,7 @@ sub system_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /system5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1095,10 +1095,10 @@ sub system_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } diff --git a/lib/tc.pm b/lib/tc.pm index d15a4cd..917400a 100644 --- a/lib/tc.pm +++ b/lib/tc.pm @@ -584,7 +584,7 @@ sub tc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -593,10 +593,10 @@ sub tc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4], IMG => $IMG[$e * 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4]) . "\n"); } } @@ -697,7 +697,7 @@ sub tc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -706,10 +706,10 @@ sub tc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 1], IMG => $IMG[$e * 4 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 1]) . "\n"); } } @@ -806,7 +806,7 @@ sub tc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -815,10 +815,10 @@ sub tc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 2], IMG => $IMG[$e * 4 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 2]) . "\n"); } } @@ -919,7 +919,7 @@ sub tc_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tc$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 4 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -928,10 +928,10 @@ sub tc_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 4 + 3], IMG => $IMG[$e * 4 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 4 + 3]) . "\n"); } } diff --git a/lib/tinyproxy.pm b/lib/tinyproxy.pm index 0d6b332..d8e8724 100644 --- a/lib/tinyproxy.pm +++ b/lib/tinyproxy.pm @@ -463,7 +463,7 @@ sub tinyproxy_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tinyproxy$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -472,10 +472,10 @@ sub tinyproxy_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3], IMG => $IMG[$e * 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3]) . "\n"); } } @@ -550,7 +550,7 @@ sub tinyproxy_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tinyproxy$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -559,10 +559,10 @@ sub tinyproxy_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 1], IMG => $IMG[$e * 3 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 1]) . "\n"); } } @@ -643,7 +643,7 @@ sub tinyproxy_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /tinyproxy$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 3 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -652,10 +652,10 @@ sub tinyproxy_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 3 + 2], IMG => $IMG[$e * 3 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 3 + 2]) . "\n"); } } diff --git a/lib/traffacct.pm b/lib/traffacct.pm index 9368fdb..2c0dbcf 100644 --- a/lib/traffacct.pm +++ b/lib/traffacct.pm @@ -659,7 +659,7 @@ sub traffacct_cgi { } if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . "/" . $config->{imgs_dir} . $IMGz[$n] . "\">\n"); + print(" " . picz_a_element(config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -668,10 +668,10 @@ sub traffacct_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - print(picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n])); + print(" " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$n], IMG => $IMG[$n]) . "\n"); } } else { - print(" \n"); + print(" " . img_element(config => $config, IMG => $IMG[$n]) . "\n"); } print(" \n"); $n++; @@ -777,7 +777,7 @@ sub traffacct_cgi { } if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - print(" {url} . "/" . $config->{imgs_dir} . $IMGz[$cgi->{val}] . "\">\n"); + print(" " . picz_a_element(config => $config, IMGz => $IMGz[$cgi->{val}], IMG => $IMG[$cgi->{val}]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -786,10 +786,10 @@ sub traffacct_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - print(picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$cgi->{val}], IMG => $IMG[$cgi->{val}])); + print(" " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$cgi->{val}], IMG => $IMG[$cgi->{val}]) . "\n"); } } else { - print(" \n"); + print(" " . img_element(config => $config, IMG => $IMG[$cgi->{val}]) . "\n"); } if(!$silent) { print(" \n"); diff --git a/lib/unbound.pm b/lib/unbound.pm index 3525535..f9f38a6 100644 --- a/lib/unbound.pm +++ b/lib/unbound.pm @@ -1143,7 +1143,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1152,10 +1152,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } if($title) { @@ -1270,7 +1270,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1279,10 +1279,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } if($title) { @@ -1361,7 +1361,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1370,10 +1370,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } if($title) { @@ -1446,7 +1446,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1455,10 +1455,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } if($title) { @@ -1561,7 +1561,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1570,10 +1570,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } if($title) { @@ -1668,7 +1668,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1677,10 +1677,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } if($title) { @@ -1822,7 +1822,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound7/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG7z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1831,10 +1831,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG7z, IMG => $IMG7) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG7) . "\n"); } } if($title) { @@ -1975,7 +1975,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound8/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG8z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1984,10 +1984,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG8z, IMG => $IMG8) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG8) . "\n"); } } if($title) { @@ -2129,7 +2129,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound9/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG9z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -2138,10 +2138,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG9z, IMG => $IMG9) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG9) . "\n"); } } if($title) { @@ -2282,7 +2282,7 @@ sub unbound_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /unbound10/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG10z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG10z, IMG => $IMG10) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -2291,10 +2291,10 @@ sub unbound_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG10z, IMG => $IMG10)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG10z, IMG => $IMG10) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG10) . "\n"); } } diff --git a/lib/user.pm b/lib/user.pm index 5cfcfe4..2e552d0 100644 --- a/lib/user.pm +++ b/lib/user.pm @@ -343,7 +343,7 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -352,10 +352,10 @@ sub user_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -431,7 +431,7 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -440,10 +440,10 @@ sub user_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -515,7 +515,7 @@ sub user_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /user3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -524,10 +524,10 @@ sub user_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/varnish.pm b/lib/varnish.pm index 4675f89..095401a 100644 --- a/lib/varnish.pm +++ b/lib/varnish.pm @@ -632,7 +632,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -641,10 +641,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -768,7 +768,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -777,10 +777,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -865,7 +865,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -874,10 +874,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -957,7 +957,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG4z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -966,10 +966,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG4z, IMG => $IMG4) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG4) . "\n"); } } @@ -1054,7 +1054,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG5z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1063,10 +1063,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG5z, IMG => $IMG5) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG5) . "\n"); } } @@ -1147,7 +1147,7 @@ sub varnish_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /varnish6/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG6z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1156,10 +1156,10 @@ sub varnish_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG6z, IMG => $IMG6) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG6) . "\n"); } } diff --git a/lib/verlihub.pm b/lib/verlihub.pm index ceccdfc..b78956b 100644 --- a/lib/verlihub.pm +++ b/lib/verlihub.pm @@ -345,7 +345,7 @@ sub verlihub_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /_verlihub1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -354,10 +354,10 @@ sub verlihub_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -437,7 +437,7 @@ sub verlihub_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /_verlihub2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -446,10 +446,10 @@ sub verlihub_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -523,7 +523,7 @@ sub verlihub_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /_verlihub3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -532,10 +532,10 @@ sub verlihub_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } diff --git a/lib/wowza.pm b/lib/wowza.pm index adf0686..8c4becd 100644 --- a/lib/wowza.pm +++ b/lib/wowza.pm @@ -677,7 +677,7 @@ sub wowza_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /wowza$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -686,10 +686,10 @@ sub wowza_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5], IMG => $IMG[$e * 5]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5]) . "\n"); } } @@ -797,7 +797,7 @@ sub wowza_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /wowza$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5 + 1] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5 + 1], IMG => $IMG[$e * 5 + 1]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -806,10 +806,10 @@ sub wowza_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 1], IMG => $IMG[$e * 5 + 1])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 1], IMG => $IMG[$e * 5 + 1]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5 + 1]) . "\n"); } } @@ -897,7 +897,7 @@ sub wowza_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /wowza$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5 + 2] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5 + 2], IMG => $IMG[$e * 5 + 2]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -906,10 +906,10 @@ sub wowza_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 2], IMG => $IMG[$e * 5 + 2])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 2], IMG => $IMG[$e * 5 + 2]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5 + 2]) . "\n"); } } @@ -992,7 +992,7 @@ sub wowza_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /wowza$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5 + 3] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5 + 3], IMG => $IMG[$e * 5 + 3]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1001,10 +1001,10 @@ sub wowza_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 3], IMG => $IMG[$e * 5 + 3])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 3], IMG => $IMG[$e * 5 + 3]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5 + 3]) . "\n"); } } @@ -1087,7 +1087,7 @@ sub wowza_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /wowza$e2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e * 5 + 4] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e * 5 + 4], IMG => $IMG[$e * 5 + 4]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1096,10 +1096,10 @@ sub wowza_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 4], IMG => $IMG[$e * 5 + 4])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e * 5 + 4], IMG => $IMG[$e * 5 + 4]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e * 5 + 4]) . "\n"); } } diff --git a/lib/zfs.pm b/lib/zfs.pm index 2642e15..ccc8800 100644 --- a/lib/zfs.pm +++ b/lib/zfs.pm @@ -663,7 +663,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs1/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG1z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -672,10 +672,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG1z, IMG => $IMG1) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG1) . "\n"); } } @@ -759,7 +759,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG2z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -768,10 +768,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG2z, IMG => $IMG2) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG2) . "\n"); } } @@ -846,7 +846,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMG3z . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -855,10 +855,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3)); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMG3z, IMG => $IMG3) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG3) . "\n"); } } @@ -948,7 +948,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs2/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -957,10 +957,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e]) . "\n"); } } $e++; @@ -1036,7 +1036,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs3/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1045,10 +1045,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e]) . "\n"); } } $e++; @@ -1130,7 +1130,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs4/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1139,10 +1139,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e]) . "\n"); } } $e++; @@ -1224,7 +1224,7 @@ sub zfs_cgi { if($title || ($silent =~ /imagetag/ && $graph =~ /zfs5/)) { if(lc($config->{enable_zoom}) eq "y") { if(lc($config->{disable_javascript_void}) eq "y") { - push(@output, " {url} . "/" . $config->{imgs_dir} . $IMGz[$e] . "\">\n"); + push(@output, " " . picz_a_element(config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } else { if($version eq "new") { $picz_width = $picz->{image_width} * $config->{global_zoom}; @@ -1233,10 +1233,10 @@ sub zfs_cgi { $picz_width = $width + 115; $picz_height = $height + 100; } - push(@output, picz_js_link(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e])); + push(@output, " " . picz_js_a_element(width => $picz_width, height => $picz_height, config => $config, IMGz => $IMGz[$e], IMG => $IMG[$e]) . "\n"); } } else { - push(@output, " \n"); + push(@output, " " . img_element(config => $config, IMG => $IMG[$e]) . "\n"); } } $e++;