---- Changes since 1.390 ----
Converted all user interface code to use the new Webmin UI library, for consistency.
Fixed a bug that prevented a groups file from being added to an existing directory.
+Added a button to link to the Apache module (if accessible) for editing all settings in the .htaccess file.
print &ui_form_end([ [ undef, $text{'create'} ] ]);
}
else {
+ if (&foreign_available("apache")) {
+ %aaccess = &get_module_acl(undef, "apache");
+ if ($aaccess{'global'}) {
+ @abutton = ( undef, [ 'apache', $text{'dir_apache'} ] );
+ }
+ }
print &ui_form_end([ [ undef, $text{'save'} ],
[ 'delete', $text{'dir_delete'} ],
[ 'remove', $dir->[4] ? $text{'dir_delete2'}
- : $text{'dir_delete3'} ] ]);
+ : $text{'dir_delete3'} ],
+ @abutton ]);
}
&ui_print_footer("", $text{'index_return'});
$htaccess = "$dir->[0]/$config{'htaccess'}";
}
+# Check for button that redirects to the Apache module for editing all
+# options in .htaccess file
+if ($in{'apache'}) {
+ &redirect("../apache/htaccess_index.cgi?file=".
+ &urlize($htaccess));
+ exit;
+ }
+
&lock_file($htaccess);
&lock_file($directories_file);