summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-05 23:18:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-05 23:18:33 +0000
commit3ed807e4f3f495a4680dfc4ff0724e28482105e5 (patch)
tree48976729c348b2f95afbd752c5a108eea855e1ce /usr/local/www/wizard.php
parente2cf9497f3243a0fb71231b78b73019752bbc05a (diff)
downloadpfsense-3ed807e4f3f495a4680dfc4ff0724e28482105e5.zip
pfsense-3ed807e4f3f495a4680dfc4ff0724e28482105e5.tar.gz
Move the stepsubmitphpaction out of the field collection. It was not setting the root password correctly.
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index b908b26..86306b5 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -73,12 +73,13 @@ if ($_POST) {
if($field['bindstofield'])
update_config_field( $field['bindstofield'], $_POST[$fieldname], $unset_fields, $arraynum);
}
- // run custom php code embedded in xml config.
- if($pkg['step'][$stepid]['stepsubmitphpaction']) {
- eval($pkg['step'][$stepid]['stepsubmitphpaction']);
- }
- write_config();
+
}
+ // run custom php code embedded in xml config.
+ if($pkg['step'][$stepid]['stepsubmitphpaction'] <> "") {
+ eval($pkg['step'][$stepid]['stepsubmitphpaction']);
+ }
+ write_config();
$stepid++;
if($stepid > $totalsteps) $stepid = $totalsteps;
}
OpenPOWER on IntegriCloud