\n \n";
+ print " \n";
+ return undef;
+}
+
+
+# Returns the hash of public access settings for showing in the smb
+# access drop down list.
+
+sub smbAccess_list {
+ return {
+ 'none' => 'NONE',
+ 'browseable' => 'ENABLED_BROWSEABLE',
+ 'non-browseable' => 'ENABLED_NON_BROWSEABLE',
+ };
+}
+
+
+# Returns the hash of public access settings for showing in the http
+# access drop down list.
+
+sub httpAccess_list {
+ return {
+ 'none' => 'NONE',
+ 'local' => 'LOCAL_NETWORK_NO_PASSWORD',
+ 'local-pw' => 'LOCAL_NETWORK_PASSWORD',
+ 'global' => 'ENTIRE_INTERNET_NO_PASSWORD',
+ 'global-pw' => 'ENTIRE_INTERNET_PASSWORD',
+ 'global-pw-remote' => 'ENTIRE_INTERNET_PASSWORD_REMOTE'
+ };
+}
# VALIDATION ROUTINES
@@ -402,11 +448,14 @@
if (my $acct = $accountdb->new_record($name, {
Name => $self->cgi->param('description'),
WriteGroups => $WriteGroups,
- ReadGroups => $ReadGroups,
- Browseable => $self->cgi->param('browseable'),
- RecycleBin => $self->cgi->param('recyclebin'),
- status => $self->cgi->param('status'),
- type => 'share',
+ ReadGroups => $ReadGroups,
+ RecycleBin => $self->cgi->param('recyclebin'),
+ smbAccess => $self->cgi->param('smbaccess'),
+ httpAccess => $self->cgi->param('httpaccess'),
+ RequireSSL => $self->cgi->param('requireSSL'),
+ Indexes => $self->cgi->param('indexes'),
+ DynamicContent => $self->cgi->param('dynamic'),
+ type => 'share',
}) )
{
# Untaint $name before use in system()
@@ -445,12 +494,14 @@
$acct->merge_props(
Name => $self->cgi->param('description'),
- WriteGroups => $WriteGroups,
- ReadGroups => $ReadGroups,
- Browseable => $self->cgi->param('browseable'),
- RecycleBin => $self->cgi->param('recyclebin'),
- status => $self->cgi->param('status'),
-
+ WriteGroups => $WriteGroups,
+ ReadGroups => $ReadGroups,
+ RecycleBin => $self->cgi->param('recyclebin'),
+ smbAccess => $self->cgi->param('smbaccess'),
+ httpAccess => $self->cgi->param('httpaccess'),
+ RequireSSL => $self->cgi->param('requireSSL'),
+ Indexes => $self->cgi->param('indexes'),
+ DynamicContent => $self->cgi->param('dynamic'),
);
# Untaint $name before use in system()
|