document the new xml variable setting routine

This commit is contained in:
Scott Ullrich 2004-12-21 01:49:43 +00:00
parent e3c4b6b767
commit 0bb335f43c

View File

@ -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']) . "'];";