mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
document the new xml variable setting routine
This commit is contained in:
parent
e3c4b6b767
commit
0bb335f43c
@ -54,6 +54,9 @@ $toeval = "\$evaledvar = \$config['installedpackages']['" . xml_safe_fieldname($
|
||||
eval($toeval);
|
||||
|
||||
if ($_GET['act'] == "del") {
|
||||
// loop through our fieldnames and automatically setup the fieldnames
|
||||
// in the environment. ie: a fieldname of username with a value of
|
||||
// testuser would automatically eval $username = "testuser";
|
||||
foreach ($evaledvar as $ip) {
|
||||
foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) {
|
||||
$toeval = "\$" . xml_safe_fieldname($column['fielddescr']) . " = " . "\$ip['" . xml_safe_fieldname($column['fieldname']) . "'];";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user