############################################################################### # Palette.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 3.0 Beta # # Packaged: October 05, 2010 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2010 YaBB (www.yabbforum.com) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # ############################################################################### $paletteplver = 'YaBB 3.0 Beta $Revision: 328 $'; if ($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~