############################################################################### # Settings_Security.pl # ############################################################################### # YaBB: Yet another Bulletin Board # # Open-Source Community Software for Webmasters # # Version: YaBB 2.4 # # Packaged: April 12, 2009 # # Distributed by: http://www.yabbforum.com # # =========================================================================== # # Copyright (c) 2000-2009 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. # ############################################################################### $settings_securityplver = 'YaBB 2.4 $Revision$'; if ($GLOBAL::ACTION eq 'detailedversion') { return 1; } &LoadLanguage('Sessions'); if ($regcheck) { require "$sourcedir/Decoder.pl"; &validation_code; } # List of settings @settings = ( { name => $settings_txt{'generalsec'}, id => 'flood', items => [ { description => qq~~, input_html => qq~~, name => 'stealthurl', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'sessions', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'do_scramble_id', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'referersecurity', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'show_online_ip_admin', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'show_online_ip_gmod', validate => 'boolean', }, ], }, { name => $settings_txt{'validimage'}, id => 'validimage', items => [ { description => qq~~, input_html => qq~~, name => 'regcheck', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'gpvalid_en', validate => 'boolean', }, { description => qq~~, input_html => qq~~, name => 'translayer', validate => 'boolean', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~~, name => 'codemaxchars', validate => 'number', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~~, name => 'captchastyle', validate => 'text', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~~, name => 'masterkey', validate => 'text', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~       ~, name => 'rgb_foreground', validate => 'text', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~       ~, name => 'rgb_shade', validate => 'text', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~       ~, name => 'rgb_background', validate => 'text', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~~, name => 'randomizer', validate => 'number', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => qq~~, input_html => qq~~, name => 'distortion', validate => 'number', depends_on => ['regcheck||', 'gpvalid_en||'], }, { description => $floodtxt{'vpreview'}, input_html => qq~
$showcheck
~, }, ], }, ); # Routine to save them sub SaveSettings { my %settings = @_; if (length $settings{'masterkey'} < 8 || length $settings{'masterkey'} > 24) { &LoadLanguage('Error'); &fatal_error("invalid_key"); } &SaveSettingsTo('Settings.pl', %settings); } 1;