Use new HiddenStores directive in 1.3.1+
authorJamie Cameron <jcameron@webmin.com>
Tue, 8 Mar 2011 00:54:46 +0000 (16:54 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 8 Mar 2011 00:54:46 +0000 (16:54 -0800)
https://www.virtualmin.com/node/17447

proftpd/mod_core.pl

index 5e241ae..48c4cf9 100755 (executable)
@@ -49,7 +49,8 @@ local $rv = [
        [ 'Group', 0, 5, 'virtual anon', undef, 0.99, 9 ],
        [ 'GroupOwner', 0, 5, 'anon directory ftpaccess', 0.99 ],
        [ 'GroupPassword', 1, 6, 'virtual anon global', 0.99 ],
-       [ 'HiddenStor', 0, 2, 'virtual anon directory global', 1.20 ],
+       [ 'HiddenStor', 0, 2, 'virtual anon directory global', '1.20-1.31' ],
+       [ 'HiddenStores', 0, 2, 'virtual anon directory global', 1.31 ],
        [ 'HideGroup', 1, 2, 'directory anon', 0.99 ],
        [ 'HideNoAccess', 0, 2, 'directory anon', 0.99 ],
        [ 'HideUser', 1, 2, 'directory anon', 0.99 ],
@@ -686,6 +687,18 @@ sub save_HiddenStor
 return &parse_choice("HiddenStor", "");
 }
 
+sub edit_HiddenStores
+{
+return (1, $text{'mod_core_hstor'},
+       &choice_input($_[0]->{'value'}, "HiddenStores", "",
+                     "$text{'yes'},on", "$text{'no'},off",
+                     "$text{'default'},"));
+}
+sub save_HiddenStores
+{
+return &parse_choice("HiddenStores", "");
+}
+
 sub edit_HideGroup
 {
 return (2, $text{'mod_core_hgroup'},