############################################################################### # Settings_Main.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. # ############################################################################### $settings_mainplver = 'YaBB 3.0 Beta $Revision: 353 $'; if ($action eq 'detailedversion') { return 1; } # Language requirements &LoadLanguage('Register'); # Date/Time selector my ($forumstart_month, $forumstart_day, $forumstart_year, $forumstart_hour, $forumstart_minute, $forumstart_secund) = $forumstart =~ m~(\d{2})\/(\d{2})\/(\d{2,4}).*?(\d{2})\:(\d{2})\:(\d{2})~s; if ($forumstart_month > 12) { $forumstart_month = 12; } if ($forumstart_month < 1) { $forumstart_month = 1; } if ($forumstart_day > 31) { $forumstart_day = 31; } if ($forumstart_day < 1) { $forumstart_day = 1; } if (length($forumstart_year) > 2) { $forumstart_year = substr($forumstart_year , length($forumstart_year) - 2, 2); } if ($forumstart_year < 90 && $forumstart_year > 20) { $forumstart_year = 90; } if ($forumstart_year > 20 && $forumstart_year < 90) { $forumstart_year = 20; } if ($forumstart_hour > 23) { $forumstart_hour = 23; } if ($forumstart_minute > 59) { $forumstart_minute = 59; } if ($forumstart_secund > 59) { $forumstart_secund = 59; } my $sel_day = qq~ \n~; my $sel_month = qq~ \n~; my $sel_year = qq~ \n~; if ($timeselected == 1 || $timeselected == 4 || $timeselected == 5) { $all_date = qq~$sel_month $sel_day $sel_year~; } else { $all_date = qq~$sel_day $sel_month $sel_year~; } my $sel_hour = qq~ \n~; my $sel_minute = qq~ \n~; my $sel_secund = qq~~; my $all_time = qq~$sel_hour $sel_minute $sel_secund~; # End time # Timezone selector my @usertimeoffset = split(/\./, $timeoffset); my $timeoffsetselect = qq~

: ~; # Language selector opendir(LNGDIR, $langdir); my @lfilesanddirs = readdir(LNGDIR); close(LNGDIR); foreach my $fld (sort {lc($a) cmp lc($b)} @lfilesanddirs) { if (-e "$langdir/$fld/Main.lng") { my $displang = $fld; $displang =~ s~(.+?)\_(.+?)$~$1 ($2)~gi; $drawnldirs .= qq~~; } } # Template selector foreach my $curtemplate (sort{ $templateset{$a} cmp $templateset{$b} } keys %templateset) { $drawndirs .= qq~\n~; } # imspam conversion $imspam = 0 if $imspam eq 'off'; $imtext =~ s~
~\n~g; # max / min for PM search $enable_PMsearch =~ s/\D//ig; $enable_PMsearch = 0 if !$enable_PMsearch; $enable_PMsearch = 50 if $enable_PMsearch > 50; $enable_PMsearch = 5 if $enable_PMsearch < 5; $set_subjectMaxLength = 50 if $set_subjectMaxLength eq ''; $RegReasonSymbols = 200 if $RegReasonSymbols eq ''; $ML_Allowed = 1 if $ML_Allowed eq ''; # This is only for update, when comming from YaBB lower or equal version 2.2.3 # I think it can be deleted around version 2.4.0 without causing mayor issues (deti). if ($enable_notifications eq '') { $enable_notifications = $enable_notification ? 3 : 0; } # End update workaround require "$admindir/ManageBoards.pl"; # needed for avatar upload settings # Insert default if forum is beeing upgraded to YaBB 2.4 if (!$pwstrengthmeter_scores && !$pwstrengthmeter_common && !$pwstrengthmeter_minchar) { $FORM{'pwstrengthmeter_scores'} = "10,15,30,40"; $FORM{'pwstrengthmeter_common'} = qq~"123456","abcdef","password"~; $FORM{'pwstrengthmeter_minchar'} = 3; } # googiespell start eval { require LWP::UserAgent }; my $modulLWP = $@; eval { require HTTP::Request::Common }; my $modulHTTP = $@; eval { require Crypt::SSLeay }; my $modulCrypt = $@; my $googiehtml = qq~~; if ($modulLWP || $modulHTTP || $modulCrypt) { $googiehtml = qq~~ . $admin_txt{'377a'} . "- LWP::UserAgent <- " . ($modulLWP ? $modulLWP : $admin_txt{'377b'}) . "
" . "- HTTP::Request::Common <- " . ($modulHTTP ? $modulHTTP : $admin_txt{'377b'}) . "
" . "- Crypt::SSLeay <- " . ($modulCrypt ? $modulCrypt : $admin_txt{'377b'}) . "
" . $admin_txt{'377c'}; } # googiespell end # List of settings @settings = ( { name => $settings_txt{'generalforum'}, id => 'general', items => [ { header => $settings_txt{'generalforum'}, }, { description => qq~~, input_html => qq~~, name => 'mbname', validate => 'text', }, { description => qq~~, input_html => qq~$all_date $maintxt{'107'} $all_time~, ### Custom validated. }, { description => qq~~, input_html => qq~ ~, name => 'MenuType', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'default_template', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'lang', validate => 'text', }, { description => qq~~, input_html => qq~ ~, name => 'forumnumberformat', validate => 'number', }, { description => qq~~, input_html => qq~ ~, name => 'timeselected', validate => 'number', }, { description => qq~~, input_html => &timeformat($date,1,0,1) . $timeoffsetselect, ### Custom validated. }, { description => qq~~, input_html => qq~~, name => 'dstoffset', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'dynamic_clock', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'timecorrection', validate => 'fullnumber', }, { header => $settings_txt{'showhide'}, }, { description => qq~~, input_html => qq~~, name => 'profilebutton', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'usertools', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showlatestmember', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'Show_RecentBar', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showpageall', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'ShowBDescrip', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showmodify', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showuserpic', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showusertext', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showgenderimage', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'hide_signat_for_guests', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showallgroups', validate => 'boolean', }, { description => qq~~, input_html => qq~ ~, name => 'showtopicviewers', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'showimageinquote', validate => 'boolean', }, ], }, { name => $settings_txt{'posting'}, id => 'posting', items => [ { header => $settings_txt{'posting'}, }, { description => qq~~, input_html => $googiehtml, name => 'enable_spell_check', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'enable_ubbc', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'showyabbcbutt', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'parseflash', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'nestedquotes', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'autolinkurls', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'checkallcaps', validate => 'number,null', }, { description => qq~~, input_html => qq~~, name => 'set_subjectMaxLength', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'MaxMessLen', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'fontsizemin', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'fontsizemax', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'HotTopic', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'VeryHotTopic', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'maxdisplay', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'maxmessagedisplay', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'posttools', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'threadtools', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'mindex_postpopup', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'display_postpopup', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'mdrop_postpopup', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'userinfostyle', validate => 'boolean', }, { header => $timelocktxt{'01'}, }, { description => qq~~, input_html => qq~~, name => 'tlnomodflag', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'tlnomodtime', validate => 'number', depends_on => ['tlnomodflag'], }, { description => qq~~, input_html => qq~~, name => 'tlnodelflag', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'tlnodeltime', validate => 'number', depends_on => ['tlnodelflag'], }, { description => qq~~, input_html => qq~~, name => 'tllastmodflag', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'tllastmodtime', validate => 'number', }, { header => $cutts{'8'}, }, { description => qq~~, input_html => qq~~, name => 'ttsreverse', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'ttsureverse', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'tsreverse', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'cutamount', validate => 'number', }, { header => $settings_txt{'poll'}, }, { description => qq~~, input_html => qq~~, name => 'numpolloptions', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'maxpq', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'maxpo', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'maxpc', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'useraddpoll', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'ubbcpolls', validate => 'boolean', }, { header => $qrb_txt{'1'}, }, { description => qq~~, input_html => qq~~, name => 'enable_quickpost', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'enable_quickreply', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'enable_markquote', validate => 'boolean', depends_on => ['enable_quickreply||', 'display_postpopup||'], }, { description => qq~~, input_html => qq~~, name => 'enable_quoteuser', validate => 'boolean', depends_on => ['enable_quickreply||', 'display_postpopup||'], }, { description => qq~~, input_html => qq~       ~, name => 'quoteuser_color', validate => 'text', depends_on => ['enable_quoteuser', 'enable_quickreply'], }, { description => qq~~, input_html => qq~~, name => 'enable_quickjump', validate => 'boolean', depends_on => ['enable_quickpost||', 'enable_quickreply||'], }, { description => qq~~, input_html => qq~~, name => 'quick_quotelength', validate => 'number', depends_on => ['enable_quickjump', 'enable_quickreply'], }, ], }, { name => $settings_txt{'user'}, id => 'user', items => [ { header => $settings_txt{'guest'}, }, { description => qq~~, input_html => qq~~, name => 'guestaccess', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'enable_guestposting', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'enable_guestlanguage', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'guest_media_disallowed', validate => 'boolean', }, { header => $settings_txt{'profile'}, }, { description => qq~~, input_html => qq~~, name => 'allowpics', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'upload_useravatar', validate => 'boolean', depends_on => ['allowpics'], }, { description => $admin_txt{'747a'}, input_html => qq~$facesdir/UserAvatars
~ . ((-w "$facesdir/UserAvatars" && -d "$facesdir/UserAvatars") ? qq~$admin_txt{'163'}~ : qq~$admin_txt{'164'}~), # Non-changable setting }, { description => qq~~, input_html => qq~~, name => 'upload_avatargroup', validate => 'text,null', depends_on => ['allowpics','upload_useravatar'], }, { description => qq~~, input_html => qq~ KB~, name => 'avatar_limit', validate => 'number', depends_on => ['allowpics','upload_useravatar'], }, { description => qq~~, input_html => qq~ KB~, name => 'avatar_dirlimit', validate => 'number', depends_on => ['allowpics','upload_useravatar'], }, { description => qq~~, input_html => qq~~, name => 'enable_notifications_N', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'NewNotificationAlert', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'allow_hide_email', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'user_hide_avatars', validate => 'boolean', depends_on => ['showuserpic','allowpics'], }, { description => qq~~, input_html => qq~~, name => 'user_hide_user_text', validate => 'boolean', depends_on => ['showusertext'], }, { description => qq~~, input_html => qq~~, name => 'user_hide_attach_img', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'user_hide_signat', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'user_hide_smilies_row', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'buddyListEnabled', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'defaultusertxt', validate => 'text,null', }, { description => qq~~, input_html => qq~~, name => 'MaxSigLen', validate => 'number,null', }, { description => qq~~, input_html => qq~~, name => 'maxfavs', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'emailnewpass', validate => 'boolean', }, { description => qq~~, input_html => qq~ ~, name => 'addmemgroup_enabled', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'extendedprofiles', validate => 'boolean', }, { header => $settings_txt{'login'}, }, { description => qq~~, input_html => qq~ ~, name => 'Cookie_Length', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'cookieusername', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'cookiepassword', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'cookiesession_name', validate => 'text', }, { header => $settings_txt{'registration'}, }, { description => qq~~, input_html => qq~ ~, name => 'regtype', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'preregspan', validate => 'number', depends_on => ['regtype!=0', 'regtype!=3'], }, { description => qq~~, input_html => qq~~, name => 'emailpassword', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'emailwelcome', validate => 'boolean', depends_on => ['!emailpassword'], }, { description => qq~~, input_html => qq~~, name => 'name_cannot_be_userid', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'cannot_change_displayname', validate => 'boolean', }, { description => qq~~, input_html => qq~ ~, name => 'birthday_on_reg', validate => 'number,null', }, { description => qq~~, input_html => qq~ ~, name => 'gender_on_reg', validate => 'number,null', }, { description => qq~~, input_html => qq~~, name => 'pwstrengthmeter_scores', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'pwstrengthmeter_common', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'pwstrengthmeter_minchar', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'RegReasonSymbols', validate => 'number', depends_on => ['regtype==1'], }, { description => qq~~, input_html => qq~~, name => 'RegAgree', validate => 'boolean', depends_on => ['regtype!=0'], }, { description => qq~~, input_html => qq~~, name => 'allow_self_del', validate => 'boolean', }, { header => $settings_txt{'memberlist'}, }, { description => qq~~, input_html => qq~ ~, name => 'ML_Allowed', validate => 'number', }, { description => qq~~, input_html => qq~ ~, name => 'defaultml', validate => 'text', }, { description => qq~~, input_html => qq~~, name => 'TopAmmount', validate => 'number', }, { description => qq~~, input_html => qq~ $admin_txt{'904'} $admin_txt{'905'} $admin_txt{'903'}~, name => 'barmaxdepend', validate => 'boolean', }, ] }, { name => $settings_txt{'staff'}, id => 'staff', items => [ { header => $settings_txt{'staff'}, }, # Multi-delete/multi-admin { description => qq~~, input_html => qq~~, name => 'mdadmin', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'mdglobal', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'mdmod', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'adminbin', validate => 'boolean', }, { description => qq~~, input_html => qq~ ~, name => 'adminview', validate => 'number', }, { description => qq~~, input_html => qq~ ~, name => 'gmodview', validate => 'number', }, { description => qq~~, input_html => qq~ ~, name => 'modview', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'enable_MCstatusStealth', validate => 'boolean', }, { description => qq~~, input_html => qq~ ~, name => 'bypass_lock_perm', validate => 'text', }, ], }, { name => $settings_txt{'privatemessage'}, id => 'privatemessage', items => [ { header => $settings_txt{'pmgeneral'}, }, { description => qq~~, input_html => qq~ ~, name => 'PM_level', validate => 'number', }, { description => qq~~, input_html => qq~~, name => 'numposts', validate => 'number', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'imspam', validate => 'number,null', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_PMsearch', validate => 'number,null', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'send_welcomeim', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'sendname', validate => 'text,null', depends_on => ['PM_level!=0', 'send_welcomeim'], }, { description => qq~~, input_html => qq~~, name => 'imsubject', validate => 'text,null', depends_on => ['PM_level!=0', 'send_welcomeim'], }, { description => qq~~, input_html => qq~~, name => 'imtext', validate => 'fulltext,null', depends_on => ['PM_level!=0', 'send_welcomeim'], }, { header => $settings_txt{'bmessages'}, }, { description => qq~~, input_html => qq~ ~, name => 'PMenableBm_level', validate => 'number', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'PMenableGuestButton', validate => 'boolean', depends_on => ['PMenableBm_level!=0', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'PMenableAlertButton', validate => 'boolean', depends_on => ['PMenableBm_level!=0', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'PMAlertButtonGuests', validate => 'boolean', depends_on => ['PMenableBm_level!=0', 'PMenableAlertButton', 'PM_level!=0'], }, { header => $settings_txt{'members'}, }, { description => qq~~, input_html => qq~~, name => 'enable_imlimit', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'numobox', validate => 'number,null', depends_on => ['enable_imlimit', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'numibox', validate => 'number,null', depends_on => ['enable_imlimit', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'numstore', validate => 'number,null', depends_on => ['enable_imlimit', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'numdraft', validate => 'number,null', depends_on => ['enable_imlimit', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'PMenable_cc', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'PMenable_bcc', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_notifications_PM', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_storefolders', validate => 'number,null', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_PMcontrols', validate => 'boolean', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_PMprev', validate => 'boolean', depends_on => ['!enable_PMcontrols', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_PMActprev', validate => 'boolean', depends_on => ['!enable_PMcontrols', 'PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'enable_PMviewMess', validate => 'boolean', depends_on => ['!enable_PMcontrols', 'PM_level!=0'], }, { header => $settings_txt{'mycenter'}, }, { description => qq~~, input_html => qq~
~, name => 'enable_MCaway', validate => 'number', depends_on => ['PM_level!=0'], }, { description => qq~~, input_html => qq~~, name => 'MaxAwayLen', validate => 'number,null', depends_on => ['enable_MCaway!=0', 'PM_level!=0'], }, ], }, ); # Routine to save them sub SaveSettings { my %settings = @_; # Validate forum_start stuff foreach (qw(forumstart_month forumstart_day forumstart_year forumstart_hour forumstart_minute forumstart_secund)) { $FORM{$_} =~ s/\D//g; } my $forumstart_month = $FORM{'forumstart_month'}; my $forumstart_day = $FORM{'forumstart_day'}; my $forumstart_year = $FORM{'forumstart_year'}; my $forumstart_hour = $FORM{'forumstart_hour'}; my $forumstart_minute = $FORM{'forumstart_minute'}; my $forumstart_secund = $FORM{'forumstart_secund'}; my $max_days = 31; if($forumstart_month == 4 || $forumstart_month == 6 || $forumstart_month == 9 || $forumstart_month == 11) { $max_days = 30; } elsif($forumstart_month == 2 && $forumstart_year % 4 == 0 && $forumstart_year != 0) { $max_days = 29; } elsif($forumstart_month == 2 && ($forumstart_year % 4 != 0 || $forumstart_year == 0)) { $max_days = 28; } $forumstart_day = $max_days if $forumstart_day > $max_days; $forumstart = qq~$forumstart_month/$forumstart_day/$forumstart_year $maintxt{'107'} $forumstart_hour:$forumstart_minute:$forumstart_secund~; # Validate Timezone $timeoffset = $FORM{'usertimesign'} =~ /^-$/ ? '-' : ''; $timeoffset .= $FORM{'usertimehour'} =~ /^\d+$/ ? $FORM{'usertimehour'} : '0'; $timeoffset .= '.'; $timeoffset .= $FORM{'usertimemin'} =~ /^\d+$/ ? $FORM{'usertimemin'} : '0'; # Get barmaxnumb $settings{'barmaxnumb'} = $FORM{'barmaxnumb'}; $settings{'barmaxnumb'} =~ s/\D//g; # Fix guestaccess $settings{'guestaccess'} = !$settings{'guestaccess'} || 0; $settings{'imtext'} =~ s/\r(?=\n*)//g; $settings{'imtext'} =~ s~\n~
~g; # Fix $pwstrengthmeter_common $settings{'pwstrengthmeter_common'} =~ s/'//g; # Convert unwanted tags in Board Name &ToHTML($settings{'mbname'}); # Settings.pl stuff &SaveSettingsTo('Settings.pl', %settings); } 1;