From 0b844b73b5d1504b394f5e797209957e3c60b709 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 26 Feb 2013 10:15:42 -0300 Subject: Fix indent, whitespaces and unbalanced and tags --- usr/local/www/system_gateways_edit.php | 379 +++++++++++++++++---------------- 1 file changed, 192 insertions(+), 187 deletions(-) (limited to 'usr/local/www/system_gateways_edit.php') diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 7fcfb97..2927aac 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -1,22 +1,22 @@ -. All rights reserved. - + 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. - + 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. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -50,8 +50,8 @@ foreach($a_gateways as $gw) { $a_gateways = $a_gateways_arr; if (!is_array($config['gateways']['gateway_item'])) - $config['gateways']['gateway_item'] = array(); - + $config['gateways']['gateway_item'] = array(); + $a_gateway_item = &$config['gateways']['gateway_item']; $apinger_default = return_apinger_defaults(); @@ -379,13 +379,13 @@ if ($_POST) { if ($_POST['latencylow']) $gateway['latencylow'] = $_POST['latencylow']; if ($_POST['latencyhigh']) - $gateway['latencyhigh'] = $_POST['latencyhigh']; + $gateway['latencyhigh'] = $_POST['latencyhigh']; if ($_POST['losslow']) $gateway['losslow'] = $_POST['losslow']; if ($_POST['losshigh']) - $gateway['losshigh'] = $_POST['losshigh']; + $gateway['losshigh'] = $_POST['losshigh']; if ($_POST['down']) - $gateway['down'] = $_POST['down']; + $gateway['down'] = $_POST['down']; /* when saving the manual gateway we use the attribute which has the corresponding id */ if (isset($id) && $a_gateway_item[$id]) @@ -394,7 +394,7 @@ if ($_POST) { $a_gateway_item[] = $gateway; mark_subsystem_dirty('staticroutes'); - + write_config(); if($_REQUEST['isAjax']) { @@ -402,7 +402,7 @@ if ($_POST) { exit; } else if (!empty($reloadif)) send_event("interface reconfigure {$reloadif}"); - + header("Location: system_gateways.php"); exit; } else { @@ -414,7 +414,7 @@ if ($_POST) { } exit; } - + $pconfig = $_POST; if (empty($_POST['friendlyiface'])) $pconfig['friendlyiface'] = $_POST['interface']; @@ -433,16 +433,16 @@ include("head.inc"); -
+ \n"; ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
. - + -
-
-
-
-
- -
- "> -
- /> -
- -
- onClick="monitor_change()" /> -
- -
- - -
- . -
-
- 1) || (isset($pconfig['interval']) && ($pconfig['interval'] > $apinger_default['interval'])) || (isset($pconfig['down']) && !($pconfig['down'] == $apinger_default['down']))); ?> -
> - - Show advanced option -
-
> - +
+ + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + - - - - - - - - - - - + + 1) || (isset($pconfig['interval']) && ($pconfig['interval'] > $apinger_default['interval'])) || (isset($pconfig['down']) && !($pconfig['down'] == $apinger_default['down']))); ?> +
> + - Show advanced option +
+
> +
+
+ +
+
+ +
+ +
+
+ "> +
+
- -

-
+ /> +
+ +
+ onClick="monitor_change()" /> +
+ +
+ + +
+ . +
+
- - - - -
- - - - -
- -
-

- -
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +

+
+ + + + +
+
+ + + + +
+
+ +
+

+ +
+
+ +
+
+
+
+
- -
-
+
  + "> " class="formbtn" onclick="history.back()"> + + +
- - - - - - - -
. - - -   - - "> " class="formbtn" onclick="history.back()"> - - - - - - -
+ +