############################################################################### # Palette.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 2.4 # # Packaged: April 12, 2009 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2009 YaBB (www.yabbforum.com) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # # Sponsored by: Xnull Internet Media, Inc. - http://www.ximinc.com # # Your source for web hosting, web design, and domains. # ############################################################################### $paletteplver = 'YaBB 2.4 $Revision$'; if ($GLOBAL::ACTION eq 'detailedversion') { return 1; } sub ColorPicker { my $picktask = $INFO{'task'}; if ($INFO{'palnr'} && $iamadmin) { my @new_pal; for (my $i = 0; $i < @pallist; $i++) { if ($i == ($INFO{'palnr'} - 1) && $INFO{'palcolor'}) { push(@new_pal, "#$INFO{'palcolor'}"); } else { push(@new_pal, "$pallist[$i]"); } } @pallist = @new_pal; require "$admindir/NewSettings.pl"; &SaveSettingsTo('Settings.pl'); } $gzcomp = 0; &print_output_header; print qq~ Palette
~; for (my $z = 0; $z < 256; $z += 51) { my $c1 = sprintf("%02x", $z); for (my $y = 0; $y < 256; $y += 51) { my $c2 = sprintf("%02x", $y); for (my $x = 0; $x < 256; $x += 51) { my $c3 = sprintf("%02x", $x); print qq~\n  ~; } } } print qq~                        
~; if ($iamadmin && $picktask eq "post") { print qq~ ~; } else { print qq~ ~; } print qq~
 
~; } 1;