diff options
author | Ermal <eri@pfsense.org> | 2010-03-18 15:56:44 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-18 15:56:44 +0000 |
commit | a314bebc79a775d5a82aec18c6f38fb258c4bb98 (patch) | |
tree | 25db2864814ee35af5dc2a30bc3952206760b259 /usr/local/www/wizard.php | |
parent | 3b4b9ff3cf39b2655ed652d687dcb7f30556c29f (diff) | |
download | pfsense-a314bebc79a775d5a82aec18c6f38fb258c4bb98.zip pfsense-a314bebc79a775d5a82aec18c6f38fb258c4bb98.tar.gz |
Actually get values from the CA based on what was choosen during wizard.
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-x | usr/local/www/wizard.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 5415479..af57abd 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -86,7 +86,7 @@ if ($pkg['step'][$stepid]['includefile']) require_once($pkg['step'][$stepid]['includefile']); if($pkg['step'][$stepid]['stepsubmitbeforesave']) { - eval($pkg['step'][$stepid]['stepsubmitbeforesave']); + eval($pkg['step'][$stepid]['stepsubmitbeforesave']); } if ($_POST) { @@ -162,11 +162,12 @@ function update_config_field($field, $updatetext, $unset, $arraynum, $field_type } } -if($pkg['step'][$stepid]['stepbeforeformdisplay'] <> "") { - // handle before form display event. - // good for modifying posted values, etc. - eval($pkg['step'][$stepid]['stepbeforeformdisplay']); -} +// handle before form display event. +do { + $oldstepid = $stepid; + if($pkg['step'][$stepid]['stepbeforeformdisplay'] <> "") + eval($pkg['step'][$stepid]['stepbeforeformdisplay']); +} while ($oldstepid != $stepid); $pgtitle = array($title); include("head.inc"); @@ -332,14 +333,12 @@ function showchange() { $field_split = split("->", $field['bindstofield']); // arraynum is used in cases where there is an array of the same field // name such as dnsserver (2 of them) - if($field['arraynum'] <> "") $arraynum = "[" . $field['arraynum'] . "]"; - foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; - $toeval = "\$value = \$config" . $field_conv . $arraynum . ";"; - eval($toeval); - if ($field['type'] == "checkbox") { - $toeval = "if(isset(\$config" . $field_conv . $arraynum . ")) \$value = \" CHECKED\";"; - eval($toeval); - } + if($field['arraynum'] <> "") + $arraynum = "[" . $field['arraynum'] . "]"; + foreach ($field_split as $f) + $field_conv .= "['" . $f . "']"; + $toeval = "if (isset(\$config" . $field_conv . $arraynum . ")) \$value = \$config" . $field_conv . $arraynum . ";"; + eval($toeval); } if(!$field['combinefieldsend']) @@ -572,6 +571,7 @@ function showchange() { echo "</option>\n"; } echo "</select>\n"; + echo "<!-- {$value} -->\n"; if($field['description'] <> "") { echo $field['description']; |