############################################################################### # Settings_Maintenance.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 strict; our $VERSION = '3.2'; our $settings_maintenancepmver = 'YaBBForum 3.2'; if ( $action eq 'detailedversion' ) { return 1; } # List of settings @settings = ( # Begin tab { name => $admin_txt{'67'}, # Tab name id => 'settings', # Javascript ID items => [ { description => qq~~, input_html => qq~~, name => 'maintenance', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'maintenancetext', validate => 'fulltext,null', }, ], } ); # Routine to save them sub SaveSettings { my %settings = @_; if ( $settings{'maintenance'} != 1 ) { unlink "$vardir/maintenance.lock" || fatal_error( 'cannot_open_dir', "$vardir/maintenance.lock" ); } SaveSettingsTo( 'Settings.pm', %settings ); return; } 1;