diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-12-21 01:49:43 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-12-21 01:49:43 +0000 |
commit | 0bb335f43c8456715656d321f7c4ecc07bc6ed74 (patch) | |
tree | fa0d163b0dabb5c1ea3dece2670bbf317927b45f /usr/local/www | |
parent | e3c4b6b767d3610774a2be78d4389908ede98807 (diff) | |
download | pfsense-0bb335f43c8456715656d321f7c4ecc07bc6ed74.zip pfsense-0bb335f43c8456715656d321f7c4ecc07bc6ed74.tar.gz |
document the new xml variable setting routine
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index c725704..1b9e147 100755 --- a/usr/local/www/pkg.php +++ b/usr/local/www/pkg.php @@ -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']) . "'];"; |