Commit dcd0e068 authored by Ad Schellevis's avatar Ad Schellevis

small style changes

parent 2c25e3e3
......@@ -164,7 +164,9 @@
<Settings url="/firewall_virtual_ip.php">
<Edit url="/firewall_virtual_ip_edit.php*" visibility="hidden"/>
</Settings>
<Status url="/carp_status.php"/>
<Status url="/carp_status.php">
<All url="/carp_status.php*"/>
</Status>
</VIP>
<Settings order="200" cssClass="fa fa-cogs fa-fw">
<Schedules order="100" url="/firewall_schedule.php">
......
......@@ -36,8 +36,8 @@ if ( !isset($config['virtualip']['vip']) || !is_array($config['virtualip']['vip'
}
$a_vip = &$config['virtualip']['vip'];
$act = null;
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$act = null;
if (!empty($_POST['carp_maintenancemode'])) {
$act = "maintenance";
if (isset($config["virtualip_carp_maintenancemode"])) {
......@@ -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;
......
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