############################################################################### # EventCalSet.pm # # $Date: 01 Sep 2026 $ # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBBForum 3.2 # # Packaged: 01 Sep 2026 # # Distributed by: https://yabbforum.nz # # =========================================================================== # # Copyright (c) 2000-2026 YaBB (yabbforum.nz) - All Rights Reserved. # # Software by: The YaBB Development Team # # with assistance from the YaBB community. # ############################################################################### use CGI::Carp qw(fatalsToBrowser); our $VERSION = '3.2'; $eventcalsetpmver = 'YaBBForum 3.2'; if ( $action eq 'detailedversion' ) { return 1; } LoadLanguage('EventCal'); $admin_images = "$yyhtml_root/Templates/Admin/default"; ## Calendar Setting ## sub EventCalSet { is_admin_or_gmod(); my ($caleventprivatechecked, $chkDelete_EventsUntil); # figure out what to print if ( !$Scroll_Events ) { $aevt1 = ' selected="selected"'; } elsif ( $Scroll_Events == 1 ) { $aevt2 = ' selected="selected"'; } elsif ( $Scroll_Events == 2 ) { $aevt3 = ' selected="selected"'; } elsif ( $Scroll_Events == 3 ) { $aevt4 = ' selected="selected"'; } if ( !$Show_EventCal ) { $bevt1 = ' selected="selected"'; } elsif ( $Show_EventCal == 1 ) { $bevt2 = ' selected="selected"'; } elsif ( $Show_EventCal == 2 ) { $bevt3 = ' selected="selected"'; } if ( !$Show_EventButton ) { $cevt1 = ' selected="selected"'; } elsif ( $Show_EventButton == 1 ) { $cevt2 = ' selected="selected"'; } elsif ( $Show_EventButton == 2 ) { $cevt3 = ' selected="selected"'; } if ( !$Show_BirthdaysList ) { $devt1 = ' selected="selected"'; } elsif ( $Show_BirthdaysList == 1 ) { $devt2 = ' selected="selected"'; } elsif ( $Show_BirthdaysList == 2 ) { $devt3 = ' selected="selected"'; } if ( !$Show_BirthdayButton ) { $eevt1 = ' selected="selected"'; } elsif ( $Show_BirthdayButton == 1 ) { $eevt2 = ' selected="selected"'; } elsif ( $Show_BirthdayButton == 2 ) { $eevt3 = ' selected="selected"'; } if ( !$Show_BirthdayDate ) { $fevt1 = ' selected="selected"'; } elsif ( $Show_BirthdayDate == 1 ) { $fevt2 = ' selected="selected"'; } elsif ( $Show_BirthdayDate == 2 ) { $fevt3 = ' selected="selected"'; } if ( !$Show_EventBirthdays ) { $gevt1 = ' selected="selected"'; } elsif ( $Show_EventBirthdays == 1 ) { $gevt2 = ' selected="selected"'; } elsif ( $Show_EventBirthdays == 2 ) { $gevt3 = ' selected="selected"'; } if ($Show_caltoday) { $Show_caltodaych = 'checked="checked"'; } if ($Show_BirthdaysList) { $onbirthlistchecked = 'checked="checked"'; } if ($Show_MiniCalIcons) { $onminiiconchecked = 'checked="checked"'; } if ($ShowSunday) { $onsundaychecked = 'checked="checked"'; } if ($CalEventPrivate) { $caleventprivatechecked = 'checked="checked"'; } if ($Delete_EventsUntil) { $chkDelete_EventsUntil = 'checked="checked"'; } if ($DisplayCalEvents) { $dcaleventschecked = 'checked="checked"'; } if ($Show_ColorLinks) { $oncolorlinkschecked = 'checked="checked"'; } if ($No_ShortUbbc) { $onnosubbcchecked = 'checked="checked"'; } if ($Show_BdColorLinks) { $onbdcolorlinkschecked = 'checked="checked"'; } if ($Show_BdStarsign) { $onbdstarchecked = 'checked="checked"'; } $Event_TodayColor = lc $Event_TodayColor; if ( !$CalEventNoName ) { $noname1 = ' selected="selected"'; } elsif ( $CalEventNoName == 1 ) { $noname2 = ' selected="selected"'; } elsif ( $CalEventNoName == 2 ) { $noname3 = ' selected="selected"'; } require Admin::ManageBoards; $CalEventPerms =~ s/,/, /gsm; $CalEventPerms = DrawPerms($CalEventPerms); $yymain .= qq~
~; ## Calendar Event-Icon Setting ## eval { require "$vardir/eventcalIcon.txt"; }; $yymain .= qq~ ~; $yytitle = $event_cal{'1'}; $action_area = 'eventcal_set'; AdminTemplate(); exit; } ## Save Calendar Setting ## sub EventCalSet2 { is_admin_or_gmod(); if ( $FORM{'rebuiltbd'} eq "$event_cal{'54'}" ) { unlink "$vardir/eventcalbday.db"; fopen( FILE, "$memberdir/memberlist.txt" ); @birthmembers =