mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) make unused properties more visible in firewall_nat_1to1_edit.php
This commit is contained in:
parent
0b8dd8f771
commit
15cbdb3198
@ -115,18 +115,21 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
}
|
||||
// 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['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['dstbeginport'], $pconfig['dstendport']);
|
||||
$pconfig['__unused__'],$pconfig['__unused__']
|
||||
);
|
||||
} else {
|
||||
// init form data on new
|
||||
foreach (array('disabled','interface','external','descr','natreflection'
|
||||
,'src','srcmask','srcnot','srcbeginport','srcendport'
|
||||
,'dst','dstmask','dstnot','dstbeginport','dstendport'
|
||||
,'src','srcmask','srcnot','dst','dstmask','dstnot'
|
||||
) as $fieldname) {
|
||||
if (!isset($pconfig[$fieldname])) {
|
||||
$pconfig[$fieldname] = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user