From 0bb335f43c8456715656d321f7c4ecc07bc6ed74 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 21 Dec 2004 01:49:43 +0000 Subject: [PATCH] document the new xml variable setting routine --- usr/local/www/pkg.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index c7257040bf..1b9e147024 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']) . "'];";