mirror of
https://github.com/webmin/webmin.git
synced 2025-08-15 21:20:10 +00:00
Clean up indentatiuon
This commit is contained in:
@ -5,9 +5,11 @@
|
||||
require './spam-lib.pl';
|
||||
&ReadParse();
|
||||
$hsl = $module_info{'usermin'} ? undef :
|
||||
&help_search_link("spamassassin procmail amavisd", "man","doc", "google");
|
||||
&help_search_link("spamassassin procmail amavisd",
|
||||
"man", "doc", "google");
|
||||
&set_config_file_in(\%in);
|
||||
|
||||
# Check if SpamAssassin is installed
|
||||
if (!&has_command($config{'spamassassin'}) ||
|
||||
(!$module_info{'usermin'} && !($vers = &get_spamassassin_version(\$out)))) {
|
||||
# Program not found
|
||||
@ -37,25 +39,28 @@ if (!&has_command($config{'spamassassin'}) ||
|
||||
"../cpan/download.cgi?source=3&cpan=$modname&mode=2&return=/$module_name/&returndesc=".&urlize($module_info{'desc'})),"<p>\n";
|
||||
}
|
||||
}
|
||||
&ui_print_footer("/", $text{'index'});
|
||||
return;
|
||||
}
|
||||
else {
|
||||
$vtext = $module_info{'usermin'} ? undef :
|
||||
|
||||
# Show header
|
||||
$vtext = $module_info{'usermin'} ? undef :
|
||||
&text('index_version', $vers);
|
||||
&ui_print_header($header_subtext, $text{'index_title'}, "", undef,
|
||||
&ui_print_header($header_subtext, $text{'index_title'}, "", undef,
|
||||
1, 1, undef, $hsl, undef, undef, $vtext);
|
||||
|
||||
if (!-r $local_cf && !-d $local_cf && !$module_info{'usermin'}) {
|
||||
if (!-r $local_cf && !-d $local_cf && !$module_info{'usermin'}) {
|
||||
# Config not found
|
||||
print &text('index_econfig',
|
||||
"<tt>$local_cf</tt>",
|
||||
"../config.cgi?$module_name"),"<p>\n";
|
||||
}
|
||||
elsif ($dberr = &check_spamassassin_db()) {
|
||||
elsif ($dberr = &check_spamassassin_db()) {
|
||||
# Cannot contact the DB
|
||||
print &text('index_edb', $dberr,
|
||||
"../config.cgi?$module_name"),"<p>\n";
|
||||
}
|
||||
else {
|
||||
else {
|
||||
# Work out if SpamAssassin is enabled in procmail
|
||||
if ($warn_procmail && &foreign_check("procmail")) {
|
||||
&foreign_require("procmail");
|
||||
@ -170,7 +175,6 @@ else {
|
||||
print &ui_buttons_end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&ui_print_footer("/", $text{'index'});
|
||||
|
||||
|
Reference in New Issue
Block a user