Commit 15cbdb31 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) make unused properties more visible in firewall_nat_1to1_edit.php

parent 0b8dd8f7
...@@ -115,18 +115,21 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -115,18 +115,21 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
// read settings with some kind of logic // read settings with some kind of logic
address_to_pconfig($a_1to1[$id]['source'], $pconfig['src'], address_to_pconfig(
$a_1to1[$id]['source'], $pconfig['src'],
$pconfig['srcmask'], $pconfig['srcnot'], $pconfig['srcmask'], $pconfig['srcnot'],
$pconfig['srcbeginport'], $pconfig['srcendport']); $pconfig['__unused__'],$pconfig['__unused__']
);
address_to_pconfig($a_1to1[$id]['destination'], $pconfig['dst'], address_to_pconfig(
$a_1to1[$id]['destination'], $pconfig['dst'],
$pconfig['dstmask'], $pconfig['dstnot'], $pconfig['dstmask'], $pconfig['dstnot'],
$pconfig['dstbeginport'], $pconfig['dstendport']); $pconfig['__unused__'],$pconfig['__unused__']
);
} else { } else {
// init form data on new // init form data on new
foreach (array('disabled','interface','external','descr','natreflection' foreach (array('disabled','interface','external','descr','natreflection'
,'src','srcmask','srcnot','srcbeginport','srcendport' ,'src','srcmask','srcnot','dst','dstmask','dstnot'
,'dst','dstmask','dstnot','dstbeginport','dstendport'
) as $fieldname) { ) as $fieldname) {
if (!isset($pconfig[$fieldname])) { if (!isset($pconfig[$fieldname])) {
$pconfig[$fieldname] = null; $pconfig[$fieldname] = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment