Revision abe98adb
Added by Phil Davis over 9 years ago
src/usr/local/www/status_carp.php | ||
---|---|---|
152 | 152 |
$shortcut_section = "carp"; |
153 | 153 |
|
154 | 154 |
include("head.inc"); |
155 |
if ($savemsg) |
|
155 |
if ($savemsg) {
|
|
156 | 156 |
print_info_box($savemsg, 'success'); |
157 |
} |
|
157 | 158 |
|
158 | 159 |
$carpcount = 0; |
159 | 160 |
if (is_array($config['virtualip']['vip'])) { |
... | ... | |
177 | 178 |
'<a href="system_hasync.php" class="alert-link">' . |
178 | 179 |
gettext("You can configure high availability sync settings here") . |
179 | 180 |
'</a>'); |
180 |
} else |
|
181 |
{ |
|
181 |
} else { |
|
182 | 182 |
?> |
183 | 183 |
<form action="status_carp.php" method="post"> |
184 | 184 |
<?php |
185 |
if($status > 0)
|
|
185 |
if ($status > 0) {
|
|
186 | 186 |
$carp_enabled = true; |
187 |
else
|
|
187 |
} else {
|
|
188 | 188 |
$carp_enabled = false; |
189 |
} |
|
189 | 190 |
|
190 | 191 |
// Sadly this needs to be here so that it is inside the form |
191 | 192 |
if ($carp_detected_problems > 0) { |
... | ... | |
231 | 232 |
$vhid = $carp['vhid']; |
232 | 233 |
$status = get_carp_interface_status("_vip{$carp['uniqid']}"); |
233 | 234 |
|
234 |
if($carp_enabled == false) { |
|
235 |
if ($carp_enabled == false) {
|
|
235 | 236 |
$icon = 'times-circle'; |
236 | 237 |
$status = "DISABLED"; |
237 | 238 |
} else { |
Also available in: Unified diff
Code style status*