From f720398561237cf0032d41f83c35e443d2acaf66 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 28 Jul 2011 20:52:08 +0000 Subject: Add an override for default interval to send icmp --- usr/local/www/system_gateways_edit.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 0d35424..5ff9578 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -66,6 +66,7 @@ if (isset($id) && $a_gateways[$id]) { $pconfig = array(); $pconfig['name'] = $a_gateways[$id]['name']; $pconfig['weight'] = $a_gateways[$id]['weight']; + $pconfig['interval'] = $a_gateways[$id]['interval']; $pconfig['interface'] = $a_gateways[$id]['interface']; $pconfig['friendlyiface'] = $a_gateways[$id]['friendlyiface']; if (isset($a_gateways[$id]['dynamic'])) @@ -233,6 +234,7 @@ if ($_POST) { $gateway['gateway'] = "dynamic"; $gateway['name'] = $_POST['name']; $gateway['weight'] = $_POST['weight']; + $gateway['interval'] = $_POST['interval']; $gateway['descr'] = $_POST['descr']; if ($_POST['monitor_disable'] == "yes") $gateway['monitor_disable'] = true; @@ -399,10 +401,10 @@ function monitor_change() { -
1)) echo "style='display:none'"; ?>> +
1) || (isset($pconfig['interval']) && $pconfig['interval'])) echo "style='display:none'"; ?>> - Show advanced option
-
> +
> @@ -452,6 +454,14 @@ function monitor_change() {
+ + + + +
+ +
-- cgit v1.1