Exemplo n.º 1
0
}
?>
				<?php 
if (file_exists($d_sysrebootreqd_path)) {
    print_info_box(get_std_save_message(0));
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline(gettext("IPv4 Configuration"));
?>
					<?php 
html_combobox("type", gettext("Type"), $pconfig['type'], array("Static" => gettext("Static"), "DHCP" => "DHCP"), "", true, false, "type_change()");
?>
					<?php 
html_ipv4addrbox("ipaddr", "subnet", gettext("IP address"), $pconfig['ipaddr'], $pconfig['subnet'], "", true);
?>
					<?php 
html_inputbox("gateway", gettext("Gateway"), $pconfig['gateway'], "", true, 20);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline_checkbox("ipv6_enable", gettext("IPv6 Configuration"), $pconfig['ipv6_enable'] ? true : false, gettext("Activate"), "enable_change(this)");
?>
					<?php 
html_combobox("ipv6type", gettext("Type"), $pconfig['ipv6type'], array("Static" => gettext("Static"), "Auto" => "Auto"), "", true, false, "ipv6_type_change()");
?>
					<?php 
html_ipv6addrbox("ipv6addr", "ipv6subnet", gettext("IP address"), $pconfig['ipv6addr'], $pconfig['ipv6subnet'], "", true);
Exemplo n.º 2
0
    if (file_exists($d_sysrebootreqd_path)) {
        print_info_box(get_std_save_message(0));
    }
    ?>
										<table width="100%" border="0" cellpadding="6" cellspacing="0">
											<?php 
    html_titleline_checkbox("enable", gettext("IPv4 Configuration"), !empty($pconfig['enable']) ? true : false, gettext("Activate"), "enable_change(false)");
    ?>
											<?php 
    html_combobox("type", gettext("Type"), $pconfig['type'], array("Static" => gettext("Static"), "DHCP" => gettext("DHCP")), "", true, false, "type_change()");
    ?>
											<?php 
    html_inputbox("descr", gettext("Description"), $pconfig['descr'], gettext("You may enter a description here for your reference."), true, 20);
    ?>
											<?php 
    html_ipv4addrbox("ipaddr", "subnet", gettext("IP address"), !empty($pconfig['ipaddr']) ? $pconfig['ipaddr'] : "", !empty($pconfig['subnet']) ? $pconfig['subnet'] : "", "", true);
    ?>
											<?php 
    html_separator();
    ?>
											<?php 
    html_titleline_checkbox("ipv6_enable", gettext("IPv6 Configuration"), !empty($pconfig['ipv6_enable']) ? true : false, gettext("Activate"), "enable_change(this)");
    ?>
											<?php 
    html_combobox("ipv6type", gettext("Type"), $pconfig['ipv6type'], array("Static" => gettext("Static"), "Auto" => gettext("Auto")), "", true, false, "ipv6_type_change()");
    ?>
											<?php 
    html_ipv6addrbox("ipv6addr", "ipv6subnet", gettext("IP address"), !empty($pconfig['ipv6addr']) ? $pconfig['ipv6addr'] : "", !empty($pconfig['ipv6subnet']) ? $pconfig['ipv6subnet'] : "", "", true);
    ?>
											<?php 
    html_separator();
Exemplo n.º 3
0
?>
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
				<?php 
$a_if = array();
foreach (get_interface_list() as $ifk => $ifv) {
    $a_if[$ifk] = htmlspecialchars("{$ifk} ({$ifv['mac']})");
}
?>
				<?php 
html_combobox("if", gettext("Interface"), $pconfig['if'], $a_if, "", true);
?>
				<?php 
html_inputbox("vhid", gettext("Virtual Host ID"), $pconfig['vhid'], "", true, 5);
?>
				<?php 
html_ipv4addrbox("vipaddr", "vsubnet", gettext("Virtual IP address"), $pconfig['vipaddr'], $pconfig['vsubnet'], "", true);
?>
				<?php 
html_inputbox("advskew", gettext("Advertisement skew"), $pconfig['advskew'], gettext("Lowest value is higher priority. For master node, use 0 or 1. If preempt is enabled, it is adjusted to 240 on failure."), true, 5);
?>
				<?php 
html_inputbox("password", gettext("Password"), $pconfig['password'], "", true, 20);
?>
				<?php 
html_inputbox("advbase", gettext("Advertisement base"), $pconfig['advbase'], "", true, 5);
?>
				<?php 
html_inputbox("linkup", gettext("Link up action"), $pconfig['linkup'], sprintf(gettext("Command for LINK_UP event (e.g. %s)."), $default_linkup), false, 60);
?>
				<?php 
html_inputbox("linkdown", gettext("Link down action"), $pconfig['linkdown'], sprintf(gettext("Command for LINK_DOWN event (e.g. %s)."), $default_linkdown), false, 60);