|
|
@ -151,6 +151,7 @@ sub modify_user { |
|
|
|
'Url' => $self->{cgi}->param('Url'), |
|
|
|
'Url' => $self->{cgi}->param('Url'), |
|
|
|
'Shell' => $self->{cgi}->param('Shell'), |
|
|
|
'Shell' => $self->{cgi}->param('Shell'), |
|
|
|
'DesktopShell' => $self->{cgi}->param('DesktopShell'), |
|
|
|
'DesktopShell' => $self->{cgi}->param('DesktopShell'), |
|
|
|
|
|
|
|
'ChrootDir' => $self->{cgi}->param('ChrootDir'), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$acct->merge_props(%newProperties); |
|
|
|
$acct->merge_props(%newProperties); |
|
|
@ -234,4 +235,12 @@ sub url_or_empty { |
|
|
|
return $ret; |
|
|
|
return $ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub dir_exists { |
|
|
|
|
|
|
|
my ($self, $field) = @_; |
|
|
|
|
|
|
|
my $ret = $self->localise('DIR_DOES_NOT_EXIST'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ret = 'OK' if (-d "$field"); |
|
|
|
|
|
|
|
return $ret; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
1; |
|
|
|
1; |
|
|
|