Server IP : 195.201.23.43 / Your IP : 18.220.112.188 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl # Show greylisting enable / disable flag and whitelists require './virtual-server-lib.pl'; &can_edit_templates() || &error($text{'postgrey_ecannot'}); &ui_print_header(undef, $text{'postgrey_title'}, "", "postgrey"); &ReadParse(); # Check if can use $err = &check_postgrey(); if ($err) { print &text('postgrey_failed', $err),"<p>\n"; if (&can_install_postgrey()) { print &ui_form_start("install_postgrey.cgi"); print &text('postgrey_installdesc'),"<p>\n"; print &ui_form_end([ [ undef, $text{'postgrey_install'} ] ]); } &ui_print_footer("", $text{'index_return'}); return; } # Show button to enable / disable print $text{'postgrey_desc'},"<p>\n"; $ok = &is_postgrey_enabled(); print &ui_buttons_start(); if ($ok) { print &ui_buttons_row("disable_postgrey.cgi", $text{'postgrey_disable'}, $text{'postgrey_disabledesc'}); } else { print &ui_buttons_row("enable_postgrey.cgi", $text{'postgrey_enable'}, $text{'postgrey_enabledesc'}); } print &ui_buttons_end(); if ($ok) { # Show whitelists of emails and clients $formno = 1; print &ui_hr(); @tabs = map { [ $_, $text{'postgrey_tab'.$_}, 'postgrey.cgi?type='.&urlize($_) ] } @postgrey_data_types; print &ui_tabs_start(\@tabs, 'type', $in{'type'} || $tabs[0]->[0], 1); foreach $t (@postgrey_data_types) { print &ui_tabs_start_tab('type', $t); $data = &list_postgrey_data($t); if ($data) { # Show in editable table @table = ( ); foreach $d (@$data) { push(@table, [ { 'type' => 'checkbox', 'name' => 'd', 'value' => $d->{'index'} }, "<a href='edit_postgrey.cgi?type=$t&". "index=$d->{'index'}'>". &html_escape($d->{'value'})."</a>", $d->{'re'} ? $text{'yes'} : $text{'no'}, &html_escape(join(" ", @{$d->{'cmts'}})), ]); } print &ui_form_columns_table( "delete_postgrey.cgi", [ [ undef, $text{'postgrey_delete'} ] ], 1, [ [ "edit_postgrey.cgi?type=$t&new=1", $text{'postgrey_add'.$t} ] ], [ [ 'type', $t ] ], [ '', $text{'postgrey_head'.$t}, $text{'postgrey_re'}, $text{'postgrey_cmts'} ], 100, \@table, undef, 0, undef, $text{'postgrey_none'.$t}, $formno++, ); } else { # Could not get file print "<b>$text{'postgrey_nofile'}</b><p>\n"; } print &ui_tabs_end_tab('type', $t); } print &ui_tabs_end(1); } &ui_print_footer("", $text{'index_return'});Private