Show $g['product_name'] on wizards

This commit is contained in:
Renato Botelho 2010-07-07 10:32:24 -03:00
parent 29721fe6a6
commit fe4fc20bf0

View File

@ -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);