Commit dcd0e068 authored by Ad Schellevis's avatar Ad Schellevis

small style changes

parent 2c25e3e3
...@@ -164,7 +164,9 @@ ...@@ -164,7 +164,9 @@
<Settings url="/firewall_virtual_ip.php"> <Settings url="/firewall_virtual_ip.php">
<Edit url="/firewall_virtual_ip_edit.php*" visibility="hidden"/> <Edit url="/firewall_virtual_ip_edit.php*" visibility="hidden"/>
</Settings> </Settings>
<Status url="/carp_status.php"/> <Status url="/carp_status.php">
<All url="/carp_status.php*"/>
</Status>
</VIP> </VIP>
<Settings order="200" cssClass="fa fa-cogs fa-fw"> <Settings order="200" cssClass="fa fa-cogs fa-fw">
<Schedules order="100" url="/firewall_schedule.php"> <Schedules order="100" url="/firewall_schedule.php">
......
...@@ -36,8 +36,8 @@ if ( !isset($config['virtualip']['vip']) || !is_array($config['virtualip']['vip' ...@@ -36,8 +36,8 @@ if ( !isset($config['virtualip']['vip']) || !is_array($config['virtualip']['vip'
} }
$a_vip = &$config['virtualip']['vip']; $a_vip = &$config['virtualip']['vip'];
$act = null;
if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$act = null;
if (!empty($_POST['carp_maintenancemode'])) { if (!empty($_POST['carp_maintenancemode'])) {
$act = "maintenance"; $act = "maintenance";
if (isset($config["virtualip_carp_maintenancemode"])) { if (isset($config["virtualip_carp_maintenancemode"])) {
...@@ -76,6 +76,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -76,6 +76,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
} }
} }
} }
header(url_safe('Location: carp_status.php?savemsg=%s', array($savemsg)));
exit;
} elseif ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($_GET['savemsg'])) {
$savemsg = htmlspecialchars($_GET['savemsg']);
}
} }
$carpcount = 0; $carpcount = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment