\n"; $utable .= &ui_columns_start([ $text{'conns_ip'}, $text{'conns_target'}, $text{'dconns_part'}, $text{'dconns_use'} ]); foreach my $u (@users) { $utable .= &ui_columns_row([ $u->[0]->{'ip'}, $u->[0]->{'target'}, &mount::device_name($u->[1]->{'device'}), &lvm::device_message($u->[2], $u->[3], $u->[4]), ], "50"); } $utable .= &ui_columns_end(); } # Ask the user if he is sure print &ui_confirmation_form( "delete_conns.cgi", @delconns == 1 && $delconns[0]->{'device'} ? &text('dconns_rusure2', "".$delconns[0]->{'ip'}."", "".$delconns[0]->{'device'}."") : @delconns == 1 ? &text('dconns_rusure1', "".$delconns[0]->{'ip'}."") : &text('dconns_rusure', scalar(@delconns)), [ map { [ "d", $_ ] } @d ], [ [ "confirm", $text{'dconns_confirm'} ] ], $utable); &ui_print_footer("list_conns.cgi", $text{'conns_return'}); } else { # Delete each one foreach my $conn (@delconns) { my $err = &delete_iscsi_connection($conn); &error(&text('dconns_edelete', $conn->{'ip'}, $conn->{'target'}, $err)) if ($err); } if (@delconns == 1) { &webmin_log("delete", "connection", $delconns[0]->{'ip'}, { 'host' => $delconns[0]->{'ip'}, 'port' => $delconns[0]->{'port'}, 'target' => $delconns[0]->{'target'} }); } else { &webmin_log("delete", "connections", scalar(@delconns)); } &redirect("list_conns.cgi"); }