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 :  /proc/self/root/proc/self/root/usr/libexec/webmin/apache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/libexec/webmin/apache/mod_auth_digest.pl
# mod_auth_digest.pl
# Defines editors for digest authentication directives

sub mod_auth_digest_directives
{
local($rv);
$rv = [ [ 'AuthDigestAuthoritative', 0, 4, 'directory htaccess' ],
	[ 'AuthDigestProvider', 0, 4, 'directory htaccess' ],
	[ 'AuthDigestAlgorithm', 0, 4, 'directory htaccess' ],
      ];
return &make_directives($rv, $_[0], "mod_auth_digest");
}

sub edit_AuthDigestAuthoritative
{
return (1, $text{'mod_auth_digest_pass'},
       &choice_input($_[0]->{'value'}, "AuthDigestAuthoritative", "",
       "$text{'yes'},off", "$text{'no'},on", "$text{'default'},") );
}
sub save_AuthDigestAuthoritative
{
return &parse_choice("AuthDigestAuthoritative", "");
}

sub edit_AuthDigestProvider
{
return (1, $text{'mod_auth_digest_prov'},
	&ui_select("AuthDigestProvider", $_[0] ?  $_[0]->{'words'} : [ ],
		   [ [ "file", $text{'mod_auth_basic_file'} ],
		     [ "dbm", $text{'mod_auth_basic_dbm'} ] ],
		   3, 1, 1));
}
sub save_AuthDigestProvider
{
local $p = $in{'AuthDigestProvider'};
return ( $p ? [ join(" ", split(/\0/, $p)) ] : [ ] );
}

sub edit_AuthDigestAlgorithm
{
return (1, $text{'mod_auth_digest_al'},
       &choice_input($_[0]->{'value'}, "AuthDigestAlgorithm", "",
       "MD5", "MD5-sess", "$text{'default'},") );
}
sub save_AuthDigestAlgorithm
{
return &parse_choice("AuthDigestAlgorithm", "");
}

sub edit_AuthDigestDomain
{
return (2,
	$text{'mod_auth_digest_domain'},
	&opt_input($_[0]->{'value'}, "AuthDigestDomain", $text{'core_default'}, 50));
}
sub save_AuthDigestDomain
{
return &parse_opt("AuthDigestDomain", '\S',
		  $text{'mod_auth_digest_edomain'});
}


Anon7 - 2021