|
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/spam/ |
Upload File : |
#!/usr/bin/perl
# Delete all auto-whitelist entries for all users
require './spam-lib.pl';
&error_setup($text{'dawl_err'});
&can_use_check("awl");
&ReadParse();
&ui_print_unbuffered_header(undef, $text{'dawl_title'}, "");
# Do all users
print $text{'dawl_doing'},"<br>\n";
$count = $ucount = 0;
setpwent();
while(@uinfo = getpwent()) {
next if (!&can_edit_awl($uinfo[0]));
&open_auto_whitelist_dbm($uinfo[0]) || next;
foreach $k (keys %awl) {
delete($awl{$k});
$count++;
}
&close_auto_whitelist_dbm();
print "doing $uinfo[0]<br>\n";
$ucount++;
}
endpwent();
print &text('dawl_done', $ucount, $count),"<p>\n";
&ui_print_footer("", $text{'index_return'});