diff --git a/html/cgi-bin/logs.cgi/firewalllogip.dat b/html/cgi-bin/logs.cgi/firewalllogip.dat index 261645578..6090472d9 100644 --- a/html/cgi-bin/logs.cgi/firewalllogip.dat +++ b/html/cgi-bin/logs.cgi/firewalllogip.dat @@ -375,10 +375,11 @@ else{ my @data = (\@ips,\@numb); use GD::Graph::colour qw( :files ); -my %colours = (); +my $color=0; +my %color = (); my %mainsettings = (); &General::readhash("${General::swroot}/main/settings", \%mainsettings); -&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colours.txt", \%colours); +&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) { my $mygraph = GD::Graph::pie->new(500, 350); @@ -389,7 +390,7 @@ if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) { ) or warn $mygraph->error; $mygraph->set_value_font(GD::gdMediumBoldFont); - $mygraph->set( dclrs => [ "$colours{'colour1'}" , "$colours{'colour2'}" , "$colours{'colour3'}" , "$colours{'colour4'}" , "$colours{'colour5'}" , "$colours{'colour6'}" , "$colours{'colour7'}" , "$colours{'colour8'}" , "$colours{'colour9'}" , "$colours{'colour10'}" ] ); + $mygraph->set( dclrs => [ "$color{'color1'}" , "$color{'color2'}" , "$color{'color3'}" , "$color{'color4'}" , "$color{'color5'}" , "$color{'color6'}" , "$color{'color7'}" , "$color{'color8'}" , "$color{'color9'}" , "$color{'color10'}" ] ); my $myimage = $mygraph->plot(\@data) or die $mygraph->error; my @filenames = glob("/srv/web/ipfire/html/graphs/fwlog-ip*.png"); @@ -428,22 +429,22 @@ for($s=0;$s<$lines;$s++) $percent = $value[$s] * 100 / $linesjc; $percent = sprintf("%.f", $percent); $total = $total + $value[$s]; - if ( ($colour % 10) == 1 ){print "\n";} - if ( ($colour % 10) == 2 ){print "\n";} - if ( ($colour % 10) == 3 ){print "\n";} - if ( ($colour % 10) == 4 ){print "\n";} - if ( ($colour % 10) == 5 ){print "\n";} - if ( ($colour % 10) == 6 ){print "\n";} - if ( ($colour % 10) == 7 ){print "\n";} - if ( ($colour % 10) == 8 ){print "\n";} - if ( ($colour % 10) == 9 ){print "\n";} - if ( ($colour % 10) == 0 ){print "\n";} + if ( ($color % 10) == 1 ){print "\n";} + if ( ($color % 10) == 2 ){print "\n";} + if ( ($color % 10) == 3 ){print "\n";} + if ( ($color % 10) == 4 ){print "\n";} + if ( ($color % 10) == 5 ){print "\n";} + if ( ($color % 10) == 6 ){print "\n";} + if ( ($color % 10) == 7 ){print "\n";} + if ( ($color % 10) == 8 ){print "\n";} + if ( ($color % 10) == 9 ){print "\n";} + if ( ($color % 10) == 0 ){print "\n";} my $gi = Geo::IP::PurePerl->new(); my $ccode = $gi->country_code_by_name($key[$s]); my $fcode = lc($ccode); - $colour++; + $color++; print "
"; print "$key[$s]"; print "$ccode"; @@ -454,16 +455,16 @@ for($s=0;$s<$lines;$s++) if($cgiparams{'otherspie'} == 2 ){} else{ -if ( ($colour % 10) == 1 ){print "\n";} -if ( ($colour % 10) == 2 ){print "\n";} -if ( ($colour % 10) == 3 ){print "\n";} -if ( ($colour % 10) == 4 ){print "\n";} -if ( ($colour % 10) == 5 ){print "\n";} -if ( ($colour % 10) == 6 ){print "\n";} -if ( ($colour % 10) == 7 ){print "\n";} -if ( ($colour % 10) == 8 ){print "\n";} -if ( ($colour % 10) == 9 ){print "\n";} -if ( ($colour % 10) == 0 ){print "\n";} +if ( ($color % 10) == 1 ){print "\n";} +if ( ($color % 10) == 2 ){print "\n";} +if ( ($color % 10) == 3 ){print "\n";} +if ( ($color % 10) == 4 ){print "\n";} +if ( ($color % 10) == 5 ){print "\n";} +if ( ($color % 10) == 6 ){print "\n";} +if ( ($color % 10) == 7 ){print "\n";} +if ( ($color % 10) == 8 ){print "\n";} +if ( ($color % 10) == 9 ){print "\n";} +if ( ($color % 10) == 0 ){print "\n";} my $dif; $dif = $linesjc - $total; diff --git a/html/cgi-bin/logs.cgi/firewalllogport.dat b/html/cgi-bin/logs.cgi/firewalllogport.dat index 21b1ffadc..3ecc26b21 100644 --- a/html/cgi-bin/logs.cgi/firewalllogport.dat +++ b/html/cgi-bin/logs.cgi/firewalllogport.dat @@ -324,7 +324,7 @@ else @tabjc2 = sort { $a <=> $b } keys (%tabjc); } -my $colour=1; +my $color=10; @@ -374,13 +374,11 @@ else{ my @data = (\@ports,\@numb); use GD::Graph::colour qw( :files ); -my %colours = (); + +my %color = (); my %mainsettings = (); &General::readhash("${General::swroot}/main/settings", \%mainsettings); -my %colours = (); -my %mainsettings = (); -&General::readhash("${General::swroot}/main/settings", \%mainsettings); -&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colours.txt", \%colours); +&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) { my $mygraph = GD::Graph::pie->new(500, 350); @@ -391,7 +389,7 @@ if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) { ) or warn $mygraph->error; $mygraph->set_value_font(GD::gdMediumBoldFont); - $mygraph->set( dclrs => [ "$colours{'colour1'}" , "$colours{'colour2'}" , "$colours{'colour3'}" , "$colours{'colour4'}" , "$colours{'colour5'}" , "$colours{'colour6'}" , "$colours{'colour7'}" , "$colours{'colour8'}" , "$colours{'colour9'}" , "$colours{'colour10'}" ] ); + $mygraph->set( dclrs => [ "$color{'color1'}" , "$color{'color2'}" , "$color{'color3'}" , "$color{'color4'}" , "$color{'color5'}" , "$color{'color6'}" , "$color{'color7'}" , "$color{'color8'}" , "$color{'color9'}" , "$color{'color10'}" ] ); my $myimage = $mygraph->plot(\@data) or die $mygraph->error; my @filenames = glob("/srv/web/ipfire/html/graphs/fwlog-port*.png"); @@ -429,18 +427,18 @@ for($s=0;$s<$lines;$s++) $percent = $value[$s] * 100 / $linesjc; $percent = sprintf("%.f", $percent); $total = $total + $value[$s]; - if ( ($colour % 10) == 1 ){print "\n";} - if ( ($colour % 10) == 2 ){print "\n";} - if ( ($colour % 10) == 3 ){print "\n";} - if ( ($colour % 10) == 4 ){print "\n";} - if ( ($colour % 10) == 5 ){print "\n";} - if ( ($colour % 10) == 6 ){print "\n";} - if ( ($colour % 10) == 7 ){print "\n";} - if ( ($colour % 10) == 8 ){print "\n";} - if ( ($colour % 10) == 9 ){print "\n";} - if ( ($colour % 10) == 0 ){print "\n";} + if ( ($color % 10) == 1 ){print "\n";} + if ( ($color % 10) == 2 ){print "\n";} + if ( ($color % 10) == 3 ){print "\n";} + if ( ($color % 10) == 4 ){print "\n";} + if ( ($color % 10) == 5 ){print "\n";} + if ( ($color % 10) == 6 ){print "\n";} + if ( ($color % 10) == 7 ){print "\n";} + if ( ($color % 10) == 8 ){print "\n";} + if ( ($color % 10) == 9 ){print "\n";} + if ( ($color % 10) == 0 ){print "\n";} - $colour++; + $color++; print "
"; print "$key[$s]"; print "$value[$s]"; @@ -450,16 +448,16 @@ for($s=0;$s<$lines;$s++) if($cgiparams{'otherspie'} == 2 ){} else{ -if ( ($colour % 10) == 1 ){print "\n";} -if ( ($colour % 10) == 2 ){print "\n";} -if ( ($colour % 10) == 3 ){print "\n";} -if ( ($colour % 10) == 4 ){print "\n";} -if ( ($colour % 10) == 5 ){print "\n";} -if ( ($colour % 10) == 6 ){print "\n";} -if ( ($colour % 10) == 7 ){print "\n";} -if ( ($colour % 10) == 8 ){print "\n";} -if ( ($colour % 10) == 9 ){print "\n";} -if ( ($colour % 10) == 0 ){print "\n";} +if ( ($color % 10) == 1 ){print "\n";} +if ( ($color % 10) == 2 ){print "\n";} +if ( ($color % 10) == 3 ){print "\n";} +if ( ($color % 10) == 4 ){print "\n";} +if ( ($color % 10) == 5 ){print "\n";} +if ( ($color % 10) == 6 ){print "\n";} +if ( ($color % 10) == 7 ){print "\n";} +if ( ($color % 10) == 8 ){print "\n";} +if ( ($color % 10) == 9 ){print "\n";} +if ( ($color % 10) == 0 ){print "\n";} my $dif; $dif = $linesjc - $total; diff --git a/html/html/images/edit-redo.png b/html/html/images/edit-redo.png new file mode 100644 index 000000000..c3b0df039 Binary files /dev/null and b/html/html/images/edit-redo.png differ diff --git a/html/html/themes/ipfire/include/colors.txt b/html/html/themes/ipfire/include/colors.txt new file mode 100644 index 000000000..bcc0a0c01 --- /dev/null +++ b/html/html/themes/ipfire/include/colors.txt @@ -0,0 +1,25 @@ +colour1=#CD5B45 +colour2=#EE6A50 +colour3=#FF7256 +colour4=#EE9572 +colour5=#FFA07A +colour6=#CDAF95 +colour7=#EECBAD +colour8=#FFDAB9 +colour9=#FFE4C4 +colour10=#FFCCCC +color11=#0000FF +color12=#00FF00 +color13=#FF0000 +color14=#FFD700 +color15=#CCCCCC +color16=#40E0D0 +color17=#90EE90 +color18=#F4A460 +color19=#EAE9EE +color20=#EAE9EE +color21=#EAE9EE +color22=#EAE9EE +color23=#FF00FF +color24=#6464FF +color25=#FF6464 diff --git a/html/html/themes/ipfire/include/colours.txt b/html/html/themes/ipfire/include/colours.txt deleted file mode 100644 index 650b64e7c..000000000 --- a/html/html/themes/ipfire/include/colours.txt +++ /dev/null @@ -1,10 +0,0 @@ -colour1=#CD5B45 -colour2=#EE6A50 -colour3=#FF7256 -colour4=#EE9572 -colour5=#FFA07A -colour6=#CDAF95 -colour7=#EECBAD -colour8=#FFDAB9 -colour9=#FFE4C4 -colour10=#FFCCCC diff --git a/html/html/themes/maniac/images/IPFire.png b/html/html/themes/maniac/images/IPFire.png new file mode 100644 index 000000000..ec56b7af5 Binary files /dev/null and b/html/html/themes/maniac/images/IPFire.png differ diff --git a/html/html/themes/maniac/images/Thumbs.db b/html/html/themes/maniac/images/Thumbs.db new file mode 100644 index 000000000..37ec790fd Binary files /dev/null and b/html/html/themes/maniac/images/Thumbs.db differ diff --git a/html/html/themes/maniac/images/b1.gif b/html/html/themes/maniac/images/b1.gif new file mode 100644 index 000000000..27e005164 Binary files /dev/null and b/html/html/themes/maniac/images/b1.gif differ diff --git a/html/html/themes/maniac/images/b2.gif b/html/html/themes/maniac/images/b2.gif new file mode 100644 index 000000000..2ae47ed34 Binary files /dev/null and b/html/html/themes/maniac/images/b2.gif differ diff --git a/html/html/themes/maniac/images/b3.gif b/html/html/themes/maniac/images/b3.gif new file mode 100644 index 000000000..fd3c7d018 Binary files /dev/null and b/html/html/themes/maniac/images/b3.gif differ diff --git a/html/html/themes/maniac/images/b4.gif b/html/html/themes/maniac/images/b4.gif new file mode 100644 index 000000000..70337c1a1 Binary files /dev/null and b/html/html/themes/maniac/images/b4.gif differ diff --git a/html/html/themes/maniac/images/b5.gif b/html/html/themes/maniac/images/b5.gif new file mode 100644 index 000000000..a03224278 Binary files /dev/null and b/html/html/themes/maniac/images/b5.gif differ diff --git a/html/html/themes/maniac/images/b6.gif b/html/html/themes/maniac/images/b6.gif new file mode 100644 index 000000000..ed1781c5f Binary files /dev/null and b/html/html/themes/maniac/images/b6.gif differ diff --git a/html/html/themes/maniac/images/spacer.gif b/html/html/themes/maniac/images/spacer.gif new file mode 100644 index 000000000..5bfd67a2d Binary files /dev/null and b/html/html/themes/maniac/images/spacer.gif differ diff --git a/html/html/themes/maniac/include/colors.txt b/html/html/themes/maniac/include/colors.txt new file mode 100644 index 000000000..900e210b2 --- /dev/null +++ b/html/html/themes/maniac/include/colors.txt @@ -0,0 +1,25 @@ +color1=#CD3700 +color2=#FF4500 +color3=#CD6600 +color4=#FF7F00 +color5=#CD8500 +color6=#FFA500 +color7=#FF7F24 +color8=#FFA54F +color9=#EEAD0E +color10=#EEC900 +color11=#0000FF +color12=#00FF00 +color13=#FF0000 +color14=#FFD700 +color15=#CCCCCC +color16=#40E0D0 +color17=#90EE90 +color18=#F4A460 +color19=#EAE9EE +color20=#EAE9EE +color21=#CD6600 +color22=#EAE9EE +color23=#FF00FF +color24=#6464FF +color25=#FF6464 diff --git a/html/html/themes/maniac/include/functions.pl b/html/html/themes/maniac/include/functions.pl new file mode 100644 index 000000000..262bdc2ef --- /dev/null +++ b/html/html/themes/maniac/include/functions.pl @@ -0,0 +1,334 @@ +#!/usr/bin/perl + +sub showmenu() { + print < +