summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/carp_status.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-09 01:10:19 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-09 01:10:19 +0545
commit0da0d43e3b0146ae9e563f3b69b0a5fd66135ebe (patch)
tree608d0d77075f7cea2138d325b078425c4e220540 /src/usr/local/www/carp_status.php
parentd6b8120d1b3962efd4089c880f018bb736ad1a2d (diff)
downloadpfsense-0da0d43e3b0146ae9e563f3b69b0a5fd66135ebe.zip
pfsense-0da0d43e3b0146ae9e563f3b69b0a5fd66135ebe.tar.gz
Diag review
Diffstat (limited to 'src/usr/local/www/carp_status.php')
-rw-r--r--src/usr/local/www/carp_status.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/usr/local/www/carp_status.php b/src/usr/local/www/carp_status.php
index e70e3c2..a5368f1 100644
--- a/src/usr/local/www/carp_status.php
+++ b/src/usr/local/www/carp_status.php
@@ -4,11 +4,11 @@
carp_status.php
*/
/* ====================================================================
- * Copyright (c) 2004-2015 Electric Sheep Fencing, LLC. All rights reserved.
+ * Copyright (c) 2004-2015 Electric Sheep Fencing, LLC. All rights reserved.
* Copyright (c) 2004, 2005 Scott Ullrich
*
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
@@ -16,12 +16,12 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
- * distribution.
+ * distribution.
*
- * 3. All advertising materials mentioning features or use of this software
+ * 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgment:
* "This product includes software developed by the pfSense Project
- * for use in the pfSense software distribution. (http://www.pfsense.org/).
+ * for use in the pfSense software distribution. (http://www.pfsense.org/).
*
* 4. The names "pfSense" and "pfSense Project" must not be used to
* endorse or promote products derived from this software without
@@ -37,7 +37,7 @@
*
* "This product includes software developed by the pfSense Project
* for use in the pfSense software distribution (http://www.pfsense.org/).
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE pfSense PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -156,7 +156,7 @@ $pgtitle = array(gettext("Status"), gettext("CARP"));
$shortcut_section = "carp";
include("head.inc");
-if ($savemsg)
+if ($savemsg)
print_info_box($savemsg, 'success');
$carpcount = 0;
@@ -178,7 +178,7 @@ if (is_array($config['virtualip']['vip'])) {
<?php
if ($carpcount == 0) {
print_info_box(gettext('No CARP interfaces have been defined.') . '<br />' .
- '<a href="system_hasync.php" class="alert-link">' .
+ '<a href="system_hasync.php" class="alert-link">' .
gettext("You can configure high availability sync settings here") .
'</a>');
} else
@@ -190,8 +190,8 @@ if ($carpcount == 0) {
$carp_enabled = true;
else
$carp_enabled = false;
-
- // SAdly this needs to be here so that it is inside the form
+
+ // Sadly this needs to be here so that it is inside the form
if ($carp_detected_problems > 0) {
print_info_box(
gettext("CARP has detected a problem and this unit has been demoted to BACKUP status.") . "<br/>" .
@@ -210,9 +210,9 @@ if ($carpcount == 0) {
?>
<input type="submit" class="btn btn-warning" name="disablecarp" value="<?=($carp_enabled ? gettext("Temporarily Disable CARP") : gettext("Enable CARP"))?>" />
<input type="submit" class="btn btn-info" name="carp_maintenancemode" id="carp_maintenancemode" value="<?=(isset($config["virtualip_carp_maintenancemode"]) ? gettext("Leave Persistent CARP Maintenance Mode") : gettext("Enter Persistent CARP Maintenance Mode"))?>" />
-
+
<br /><br />
-
+
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=gettext('OpenVPN Servers')?></h2></div>
<div class="panel-body table-responsive">
@@ -230,11 +230,11 @@ if ($carpcount == 0) {
if ($carp['mode'] != "carp") {
continue;
}
-
+
$ipaddress = $carp['subnet'];
$vhid = $carp['vhid'];
$status = get_carp_interface_status("{$carp['interface']}_vip{$carp['vhid']}");
-
+
if($carp_enabled == false) {
$icon = 'remove-sign';
$status = "DISABLED";
OpenPOWER on IntegriCloud