From fe4fc20bf06e032daf7993714da85a415f9eb51f Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 7 Jul 2010 10:32:24 -0300 Subject: Show $g['product_name'] on wizards --- usr/local/www/wizard.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr') 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); -- cgit v1.1