From 51f497343aaff857e82115a27db9010435a43105 Mon Sep 17 00:00:00 2001 From: thompsa Date: Sun, 7 Feb 2010 23:41:35 +1300 Subject: Add server pools which encapsulate the backends. --- config/haproxy-dev/haproxy_listeners.php | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'config/haproxy-dev/haproxy_listeners.php') diff --git a/config/haproxy-dev/haproxy_listeners.php b/config/haproxy-dev/haproxy_listeners.php index 87efb87f..3a8d6701 100755 --- a/config/haproxy-dev/haproxy_listeners.php +++ b/config/haproxy-dev/haproxy_listeners.php @@ -54,14 +54,14 @@ if ($_POST) { } if ($_GET['act'] == "del") { - if ($a_backend[$_GET['id']]) { + if (isset($a_backend[$_GET['id']])) { if (!$input_errors) { unset($a_backend[$_GET['id']]); write_config(); touch($d_haproxyconfdirty_path); - header("Location: haproxy_frontends.php"); - exit; } + header("Location: haproxy_listeners.php"); + exit; } } @@ -75,7 +75,7 @@ include("head.inc"); ?> -
+

@@ -90,8 +90,8 @@ include("head.inc"); /* active tabs */ $tab_array = array(); $tab_array[] = array("Settings", false, "haproxy_global.php"); - $tab_array[] = array("Listener", true, "haproxy_frontends.php"); - $tab_array[] = array("Server Pool", false, "haproxy_servers.php"); + $tab_array[] = array("Listener", true, "haproxy_listeners.php"); + $tab_array[] = array("Server Pool", false, "haproxy_pools.php"); display_top_tabs($tab_array); ?> @@ -103,24 +103,28 @@ include("head.inc"); Name Description Type + Server pool - + - + - + + + + - - + +
@@ -131,7 +135,7 @@ include("head.inc"); - +
-- cgit v1.2.3