Revision a0edece9
Added by Darren Embry about 13 years ago
usr/local/www/system_gateways_edit.php | ||
---|---|---|
269 | 269 |
if ($_POST['latencyhigh']) |
270 | 270 |
$gateway['latencyhigh'] = $_POST['latencyhigh']; |
271 | 271 |
if ($_POST['losslow']) |
272 |
$gateway['losslow'] = $_POST['losslow'];
|
|
272 |
$gateway['losslow'] = $_POST['losslow']; |
|
273 | 273 |
if ($_POST['losshigh']) |
274 | 274 |
$gateway['losshigh'] = $_POST['losshigh']; |
275 | 275 |
if ($_POST['down']) |
... | ... | |
294 | 294 |
header("Location: system_gateways.php"); |
295 | 295 |
exit; |
296 | 296 |
} else { |
297 |
if ($_REQUEST['isAjax']) { |
|
298 |
header("HTTP/1.0 500 Internal Server Error"); |
|
299 |
header("Content-type: text/plain"); |
|
300 |
foreach ($input_errors as $error) { |
|
301 |
echo("$error\n"); |
|
302 |
} |
|
303 |
exit; |
|
304 |
} |
|
305 |
|
|
297 | 306 |
$pconfig = $_POST; |
298 | 307 |
if (empty($_POST['friendlyiface'])) |
299 | 308 |
$pconfig['friendlyiface'] = $_POST['interface']; |
Also available in: Unified diff
report errors adding a gateway through ajax calls