HEX
Server: Apache/2.4.6
System: Linux l2webhost 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: theparlor (1016)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //usr/libexec/webmin/virtual-server/enable_spamd.cgi
#!/usr/bin/perl
# Configure and start up spamd

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'sv_ecannot'});
&ui_print_unbuffered_header(undef, $text{'sv_title5'}, "");

print $text{'sv_senabling'},"<br>\n";
&$indent_print();
$ok = &enable_spamd();
&$outdent_print();
if ($ok) {
	print $text{'sv_enabledok'},"<p>\n";
	&webmin_log("enable", "spamd");
	}
else {
	print "<b>",$text{'sv_notenabled'},"</b><p>\n";
	}
&run_post_actions();

&ui_print_footer("edit_newsv.cgi", $text{'sv_return'});