|
|
|
@ -338,19 +338,19 @@ if ( ! &check_ssl()) {
|
|
|
|
|
} elsif (&check_mounted()) {
|
|
|
|
|
$pagedata->setValue('Data.Warning', 'IsMounted');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'umount_form');
|
|
|
|
|
} elsif ($query->param('password') eq '') {
|
|
|
|
|
} elsif ($query->param('crypto_password') eq '') {
|
|
|
|
|
# leeres Passwort
|
|
|
|
|
$pagedata->setValue('Data.Warning', 'EmptyPassword');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'mount_form');
|
|
|
|
|
} else {
|
|
|
|
|
# mounten
|
|
|
|
|
&mount_vol($query->param('password'));
|
|
|
|
|
&mount_vol($query->param('crypto_password'));
|
|
|
|
|
if (!&check_mounted()) {
|
|
|
|
|
$pagedata->setValue('Data.Warning', 'MountFailed');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'mount_form');
|
|
|
|
|
$pagedata->setValue('Data.Warning', 'MountFailed');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'mount_form');
|
|
|
|
|
} else {
|
|
|
|
|
$pagedata->setValue('Data.Success', 'MountDone');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'umount_form');
|
|
|
|
|
$pagedata->setValue('Data.Success', 'MountDone');
|
|
|
|
|
$pagedata->setValue('Data.Action', 'umount_form');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
################## mount_ask #######################
|
|
|
|
|