MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/libexec/webmin/sendmail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/sendmail/delete_access.cgi
#!/usr/bin/perl
# Delete several spam control rules

require './sendmail-lib.pl';
require './access-lib.pl';
&ReadParse();
&error_setup($text{'sdelete_err'});
$conf = &get_sendmailcf();
$vfile = &access_file($conf);
($vdbm, $vdbmtype) = &access_dbm($conf);

# Find and validate
@d = split(/\0/, $in{'d'});
@d || &error($text{'adelete_enone'});
@virts = &list_access($vfile);
foreach $d (@d) {
	($virt) = grep { $_->{'from'} eq $d } @virts;
	&can_edit_access($virt) || &error(&text('sdelete_ecannot', $d));
	if ($virt) {
		push(@delvirts, $virt);
		}
	}

# Delete the rules
&lock_file($vfile);
foreach $virt (@delvirts) {
	&delete_access($virt, $vfile, $vdbm, $vdbmtype);
	}
&unlock_file($vfile);

&webmin_log("delete", "accesses", scalar(@delvirts));
&redirect("list_access.cgi");


Anon7 - 2021