aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_status.php
diff options
context:
space:
mode:
Diffstat (limited to 'packages/carp_status.php')
-rw-r--r--packages/carp_status.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/carp_status.php b/packages/carp_status.php
index ddf8cb39..6befae65 100644
--- a/packages/carp_status.php
+++ b/packages/carp_status.php
@@ -35,6 +35,20 @@ function gentitle_pkg($pgname) {
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname;
}
+$carp_counter=0;
+if($_POST['disablecarp'] <> "") {
+ if($config['installedpackages']['carpsettings']['config'] != "") {
+ foreach($config['installedpackages']['carpsettings']['config'] as $carp) {
+ $carp_counter++;
+ }
+ }
+ if($carp_counter > 0) {
+ for($x=0; $x<$carp_counter; $x++) {
+ mwexec("/sbin/ifconfig carp{$x} delete");
+ }
+ }
+}
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -50,6 +64,7 @@ function gentitle_pkg($pgname) {
include("fbegin.inc");
?>
<p class="pgtitle"><?=$title?></p>
+<form action="carp_status.php" method="post">
<?php if ($savemsg) print_info_box($savemsg); ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -64,6 +79,10 @@ include("fbegin.inc");
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
+ <td colspan="5"><center><input name="disablecarp" value="Disable Carp Temporarily"></td>
+</tr>
+</tr>
+<tr>
<td class="listhdrr"><b><center>Carp Interface</center></b></td>
<td class="listhdrr"><b><center>Virtual IP</center></b></td>
<td class="listhdrr"><b><center>Status</center></b></td>
ref='#n152'>152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196