diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2010-07-07 10:32:24 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2010-07-07 10:32:24 -0300 |
commit | fe4fc20bf06e032daf7993714da85a415f9eb51f (patch) | |
tree | 40a28a0193e83f2ec4a2c526890933e45c0ffe6f /usr/local/www/wizard.php | |
parent | 29721fe6a60c1f772c601b1f43e54518e58b97f0 (diff) | |
download | pfsense-fe4fc20bf06e032daf7993714da85a415f9eb51f.zip pfsense-fe4fc20bf06e032daf7993714da85a415f9eb51f.tar.gz |
Show $g['product_name'] on wizards
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-x | usr/local/www/wizard.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 5ba3ff8..800bf30 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -36,6 +36,7 @@ ##|-PRIV +require("globals.inc"); require("guiconfig.inc"); require("functions.inc"); require("filter.inc"); @@ -47,6 +48,8 @@ function gentitle_pkg($pgname) { return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname; } +global $g; + $stepid = htmlspecialchars($_GET['stepid']); if (isset($_POST['stepid'])) $stepid = htmlspecialchars($_POST['stepid']); @@ -75,9 +78,9 @@ if (!is_array($pkg)) { die; } -$title = $pkg['step'][$stepid]['title']; -$description = $pkg['step'][$stepid]['description']; -$totalsteps = $pkg['totalsteps']; +$title = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['title']); +$description = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['description']); +$totalsteps = $pkg['totalsteps']; if ($pkg['includefile']) require_once($pkg['includefile']); @@ -119,9 +122,6 @@ if ($_POST) { $stepid = $totalsteps; } -$title = $pkg['step'][$stepid]['title']; -$description = $pkg['step'][$stepid]['description']; - function update_config_field($field, $updatetext, $unset, $arraynum, $field_type) { global $config; $field_split = split("->",$field); |