Handle hostnames with upper-case letters
[webmin.git] / smf / smfwizard_dependency.cgi
1 #!/usr/local/bin/perl
2
3 require './smf-lib.pl';
4 &ReadParse();
5 &ui_print_header(undef, $text{'smfwizard_title'}, "");
6
7 # wizard-specific info here
8 &wizard_header($wizard, "smfwizard_dependency.cgi",
9         "$text{'smfwizard_dependency_heading'}",
10         &convert_links_in_text("$text{'smfwizard_dependency_description'}"),
11         "images/smf.gif");
12
13 @sinst_list = ("service");
14 # add existing instances to list...
15 @existing_insts = &wizard_get_data_values("smfwizard_instance.cgi",
16         "instance_name");
17 @sinst_list= (@sinst_list, @existing_insts);
18 &wizard_select("smfwizard_dependency.cgi", "$text{'smfwizard_sinst_name'}",
19         "sinst", \@sinst_list, ".+", "$text{'smfwizard_sinst_error'}");
20 &wizard_input("smfwizard_dependency.cgi", "$text{'smfwizard_dependency_name'}",
21         "dependency_name", 60, ".+",
22         "$text{'smfwizard_dependency_name_error'}");
23 &wizard_select("smfwizard_dependency.cgi", "$text{'smfwizard_dependency_type'}",
24         "dependency_type", \@dep_types, ".+",
25         "$text{'smfwizard_dependency_type_error'}");
26 &wizard_select("smfwizard_dependency.cgi",
27         "$text{'smfwizard_dependency_grouping'}", "dependency_grouping",
28         \@grouping_values, ".+",
29         "$text{'smfwizard_dependency_grouping_error'}");
30 &wizard_select("smfwizard_dependency.cgi",
31         "$text{'smfwizard_dependency_restart_on'}", "dependency_restart_on",
32         \@restart_on_values, ".+",
33         "$text{'smfwizard_dependency_restart_on_error'}");
34 &wizard_input("smfwizard_dependency.cgi",
35         "$text{'smfwizard_dependency_fmri'}", "dependency_fmri",
36         60, ".+", "$text{'smfwizard_dependency_fmri_error'}");
37 print "<tr $cb><td>";
38 &print_svc_chooser("dependency_fmri", 0, "$text{'svc_chooser_titleboth'}",
39         "both", "0");
40 &print_path_chooser("dependency_fmri", 0, "$text{'path_chooser_title'}",
41         "0");
42 print "</td></tr>";
43 &wizard_select("smfwizard_dependency.cgi",
44         "$text{'smfwizard_dependency_stability'}", "dependency_stability",
45         \@stability_values, ".+",
46         "$text{'smfwizard_dependency_stability_error'}");
47
48 &wizard_footer($wizard, "smfwizard_dependency.cgi");
49 # end wizard-specific info
50
51 &ui_print_footer("index.cgi", $text{'index'});