- added possibility to customize authname of directory-protection, fixes #345
This commit is contained in:
@@ -965,7 +965,7 @@ class apache
|
||||
}
|
||||
|
||||
$this->diroptions_data[$diroptions_filename].= ' AuthType Basic' . "\n";
|
||||
$this->diroptions_data[$diroptions_filename].= ' AuthName "Restricted Area"' . "\n";
|
||||
$this->diroptions_data[$diroptions_filename].= ' AuthName "'.$row_htpasswd['authname'].'"' . "\n";
|
||||
$this->diroptions_data[$diroptions_filename].= ' AuthUserFile ' . $htpasswd_filename . "\n";
|
||||
$this->diroptions_data[$diroptions_filename].= ' require valid-user' . "\n";
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ class lighttpd
|
||||
$htaccess_text.= ' "' . $htaccess_path . '" =>' . "\n";
|
||||
$htaccess_text.= ' (' . "\n";
|
||||
$htaccess_text.= ' "method" => "basic",' . "\n";
|
||||
$htaccess_text.= ' "realm" => "Restricted Area",' . "\n";
|
||||
$htaccess_text.= ' "realm" => "'.$row_htpasswds['authname'].'",' . "\n";
|
||||
$htaccess_text.= ' "require" => "valid-user"' . "\n";
|
||||
$htaccess_text.= ' )' . "\n";
|
||||
$htaccess_text.= ' )' . "\n";
|
||||
@@ -606,7 +606,7 @@ class lighttpd
|
||||
$diroption_text.= '"' . $row_htpasswds['path'] . '" =>' . "\n";
|
||||
$diroption_text.= '(' . "\n";
|
||||
$diroption_text.= ' "method" => "basic",' . "\n";
|
||||
$diroption_text.= ' "realm" => "Restricted Area",' . "\n";
|
||||
$diroption_text.= ' "realm" => "'.$row_htpasswds['authname'].'",' . "\n";
|
||||
$diroption_text.= ' "require" => "valid-user"' . "\n";
|
||||
$diroption_text.= ')' . "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user