services: #1168 for load balancer pages

This commit is contained in:
Franco Fichtner 2016-09-24 07:58:57 +02:00
parent 05b1fa9a31
commit b60391dab6
7 changed files with 14 additions and 15 deletions

View File

@ -65,7 +65,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}

View File

@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}

View File

@ -64,7 +64,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_monitor.php");
header(url_safe('Location: /load_balancer_monitor.php'));
exit;
}
}

View File

@ -142,18 +142,17 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_pool.php");
header(url_safe('Location: /load_balancer_pool.php'));
exit;
}
}
$service_hook = 'relayd';
legacy_html_escape_form_data($pconfig);
include("head.inc");
?>
include("head.inc");
?>
<body>
<!-- push all available (nestable) aliases in a hidden select box -->
<select class="hidden" id="aliases">

View File

@ -56,7 +56,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
relayd_configure();
filter_configure();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_setting.php");
header(url_safe('Location: /load_balancer_setting.php'));
exit;
} else {
/* input validation */
@ -88,7 +88,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
write_config();
mark_subsystem_dirty('loadbalancer');
header("Location: load_balancer_setting.php");
header(url_safe('Location: /load_balancer_setting.php'));
exit;
}
}

View File

@ -91,7 +91,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
/* Wipe out old relayd anchors no longer in use. */
cleanup_lb_marked();
clear_subsystem_dirty('loadbalancer');
header("Location: load_balancer_virtual_server.php");
header(url_safe('Location: /load_balancer_virtual_server.php'));
exit;
}
}

View File

@ -125,18 +125,18 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
mark_subsystem_dirty('loadbalancer');
write_config();
header("Location: load_balancer_virtual_server.php");
exit;
header(url_safe('Location: /load_balancer_virtual_server.php'));
exit;
}
}
$service_hook = 'relayd';
legacy_html_escape_form_data($pconfig);
include("head.inc");
?>
<body>
<script type="text/javascript">
$( document ).ready(function() {