From 673e063c7b7ece71f24490cf21974937e26c9c9a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 21 Apr 2005 18:33:25 +0000 Subject: Add a disable CARP temporarily option. This addresses Ticket #17 --- packages/carp_status.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'packages') 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"); + } + } +} + ?> @@ -50,6 +64,7 @@ function gentitle_pkg($pgname) { include("fbegin.inc"); ?>

+
@@ -63,6 +78,10 @@ include("fbegin.inc");
+ + + + -- cgit v1.2.3
Carp Interface
Virtual IP