-
Notifications
You must be signed in to change notification settings - Fork 794
Expand file tree
/
Copy pathedit_timeout.cgi
More file actions
executable file
·32 lines (25 loc) · 909 Bytes
/
Copy pathedit_timeout.cgi
File metadata and controls
executable file
·32 lines (25 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/local/bin/perl
# Show global timeout options
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './iscsi-target-lib.pl';
our (%text);
my $conf = &get_iscsi_config();
&ui_print_header(undef, $text{'timeout_title'}, "");
print &ui_form_start("save_timeout.cgi", "post");
print &ui_table_start($text{'timeout_header'}, undef, 2);
# Time between pings
my $n = &find_value($conf, "NOPInterval");
print &ui_table_row($text{'timeout_nopi'},
&ui_opt_textbox("nopi", $n, 5, $text{'timeout_nopinone'})." ".
$text{'timeout_secs'});
# Time to respond to ping before disconnecting
$n = &find_value($conf, "NOPTimeout");
print &ui_table_row($text{'timeout_nopt'},
&ui_opt_textbox("nopt", $n, 5, $text{'timeout_noptnone'})." ".
$text{'timeout_secs'});
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'save'} ] ]);
&ui_print_footer("", $text{'index_return'});