# infoboxes!!!!!!!!!!!! our $BPOD_COLOR_UI_GRADIENT_1 = "0xF8F8D7"; our $BPOD_COLOR_UI_GRADIENT_2 = "0xF0F0E6"; our $BPOD_COLOR_UI_STROKE = "0x000000"; my $DEBUG_FORM_STRING = $DEBUG ? qq() : ''; use RGB; sub alerts { my $newmsg = count_new_messages($USER->{username}); if ($newmsg > 0) { my $s = courtesy_s($newmsg); alert_box("$BUCKY/inbox", "You have $newmsg new message$s!"); } } sub alert_box { my ($url, $msg) = @_; print qq(
\n); print qq(
); print $msg; print qq(

); print qq(
\n); } sub welcome_box { my ($files, $size) = count_user_files($USER->{username}); print qq(
\n); print qq($BUCKY_LOGIN_WELCOME
\n); print qq(you are using ),hushsize($size,2),qq( in $files files); print qq(
\n); } sub search_box { print <<__SEARCH__;
$DEBUG_FORM_STRING
__SEARCH__ } sub bPod_box { my ($color) = @_; $color = get_color_from_time() || "plain"; $color = $COLORS{$color} if exists $COLORS{$color}; my $rgb = RGB->new($color); $rgb->perturb([4,4,8]); my $gradient1 = $rgb->hex(); $rgb->add(nighttime_quotient()); my $background = $rgb->hex(); $gradient1 =~ s/^\#/0x/; $BPOD_COLOR_UI_GRADIENT_1 = $gradient1; # "0xF8F8D7"; print <
bPod } sub radio_box { my $radio = get_radio_info(); if ($radio == -1) { #return; print qq!
\n!; print qq[RADIO: GOING DARK
\n]; print qq!click here for broadcast instructions\n
!; print qq!
\n!; } else { print qq!
\n!; print qq!$radio->{station}
\n!; print qq!$radio->{nowplaying}
\n!; print qq!$radio->{tunein}\n!; print qq!
\n!; } } sub hoot_box { my $hoot = uc( get_random_line("hoots") ); print qq(
\n); print qq(
); print qq(\n) if ($DEBUG); print qq(); print < END #
my $comments = get_comments(1, 15); sideshow_comments({ comments => $comments, thread => -1, keyword => -1, noreply => 1, hootbox => 1, order => "asc", shorturl => 1 }); print "
"; print <<__DUH__;
~>{ GLIMPSE THE PAST }<~ __DUH__ print qq!
!; } sub svn_box { use lib "../../bucky2/lib"; use Bucky::SVN; my $svn = new Bucky::SVN; print $svn->query_list; } 1;