?>
 />
				Force immediate stop of old process on reload. (closes existing connections)<br/><br/>Note: when this option is selected connections will be closed when haproxy is restarted.
				Otherwise the existing connections will be served by the old haproxy process untill they are closed.
				Checking this option will interupt existing connections on a restart. (which happens when the configuration is applied,
				but possibly also when pfSense detects an interface comming up or changing its ip-address)</td>
			</tr>
			<tr>
				<td valign="top" class="vncell">
					Carp monitor
				</td>
				<td class="vtable">
					<?php 
$vipinterfaces = array();
$vipinterfaces[] = array('ip' => '', 'name' => 'Disabled');
$vipinterfaces += haproxy_get_bindable_interfaces($ipv = "ipv4,ipv6", $interfacetype = "carp");
echo_html_select('carpdev', $vipinterfaces, $pconfig['carpdev'], "No carp interfaces pressent");
?>
				
					<br/>
					Monitor carp interface and only run haproxy on the firewall which is MASTER.
				</td>
			</tr>
			<tr>
				<td>
					&nbsp;
				</td>
			</tr>
			<tr>
				<td colspan="2" valign="top" class="listtopic">Stats tab, 'internal' stats port</td>
			</tr>
        header("Location: haproxy_listeners.php");
        exit;
    }
}
$pf_version = substr(trim(file_get_contents("/etc/version")), 0, 3);
if ($pf_version < 2.0) {
    $one_two = true;
}
$closehead = false;
$pgtitle = "HAProxy: Frontend: Edit";
include "head.inc";
if (!isset($_GET['dup'])) {
    $excludefrontend = $pconfig['name'];
}
$primaryfrontends = get_haproxy_frontends($excludefrontend);
$interfaces = haproxy_get_bindable_interfaces();
?>
  <style type="text/css">
	.haproxy_mode_http{display:none;}
	.haproxy_ssloffloading_enabled{display:none;}
	.haproxy_primary{}
	.haproxy_secondary{display:none;}
  </style>
  <script type="text/javascript" src="/javascript/suggestions.js"></script>
  <script type="text/javascript" src="/javascript/autosuggest.js"></script>
</head>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">

<?php 
if ($one_two) {
    ?>