############################################################################### # EventCalSet.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 2.3 # # Packaged: October 12, 2008 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2008 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. # ############################################################################### $eventcalsetplver = 'YaBB 2.5 $Revision$'; if ($GLOBAL::ACTION eq 'detailedversion') { return 1; } &LoadLanguage('EventCal'); if ($Show_EventCal eq '') { &EventCalSet2; } ## Calendar Setting ## sub EventCalSet { &is_admin_or_gmod; my ($caleventprivatechecked); # figure out what to print my $status_calendar = "red1.gif"; my $status_bdlist = "red1.gif"; 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"'; $status_calendar = "green1.gif"; } elsif ($Show_EventCal == 2) { $bevt3 = ' selected="selected"'; $status_calendar = "green1.gif"; } 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"'; $status_bdlist = "green1.gif"; } elsif ($Show_BirthdaysList == 2) { $devt3 = ' selected="selected"'; $status_bdlist = "green1.gif"; } 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_BirthdaysList) { $onbirthlistchecked = "checked='checked'" } if ($Show_MiniCalIcons) { $onminiiconchecked = "checked='checked'" } if ($ShowSunday) { $onsundaychecked = "checked='checked'" } if ($CalEventPrivate) { $caleventprivatechecked = "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 (!$Event_TodayColor) { $Event_TodayColor = "#ff0000"; } else { $Event_TodayColor = lc($Event_TodayColor); } if (!$Delete_EventsUntil) { $Delete_EventsUntil = "0"; } if (!$CalEventNoName) { $noname1 = ' selected="selected"'; } elsif ($CalEventNoName == 1) { $noname2 = ' selected="selected"'; } elsif ($CalEventNoName == 2) { $noname3 = ' selected="selected"'; } require "$admindir/ManageBoards.pl"; $CalEventPerms =~ s/,/, /g; $CalEventPerms = &DrawPerms($CalEventPerms); $yymain .= qq~