summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-12-21 01:49:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-12-21 01:49:43 +0000
commit0bb335f43c8456715656d321f7c4ecc07bc6ed74 (patch)
treefa0d163b0dabb5c1ea3dece2670bbf317927b45f /usr
parente3c4b6b767d3610774a2be78d4389908ede98807 (diff)
downloadpfsense-0bb335f43c8456715656d321f7c4ecc07bc6ed74.zip
pfsense-0bb335f43c8456715656d321f7c4ecc07bc6ed74.tar.gz
document the new xml variable setting routine
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg.php3
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']) . "'];";
OpenPOWER on IntegriCloud