Revision 8ae9a909
Added by Jim Pingle over 9 years ago
src/usr/local/www/head.inc | ||
---|---|---|
61 | 61 |
$pagetitle = gentitle($pgtitle); |
62 | 62 |
|
63 | 63 |
if (isset($config['system']['webgui']['pagenamefirst'])) { |
64 |
$tabtitle = $pagetitle . " - " . $config['system']['hostname'] . "." . $config['system']['domain'];
|
|
64 |
$tabtitle = $pagetitle . " - " . htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']);
|
|
65 | 65 |
} else { |
66 |
$tabtitle = $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle;
|
|
66 |
$tabtitle = htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']) . " - " . $pagetitle;
|
|
67 | 67 |
} |
68 | 68 |
|
69 | 69 |
$cssfile = "/bootstrap/css/pfSense.css"; |
src/usr/local/www/pkg.php | ||
---|---|---|
63 | 63 |
require_once("guiconfig.inc"); |
64 | 64 |
require_once("pkg-utils.inc"); |
65 | 65 |
|
66 |
function gentitle_pkg($pgname) { |
|
67 |
global $config; |
|
68 |
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname; |
|
69 |
} |
|
70 |
|
|
71 | 66 |
function domTT_title($title_msg) { |
72 | 67 |
print "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '".gettext($title_msg)."', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\""; |
73 | 68 |
} |
src/usr/local/www/status_carp.php | ||
---|---|---|
63 | 63 |
require_once("guiconfig.inc"); |
64 | 64 |
require_once("globals.inc"); |
65 | 65 |
|
66 |
function gentitle_pkg($pgname) { |
|
67 |
global $config; |
|
68 |
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname; |
|
69 |
} |
|
70 |
|
|
71 | 66 |
unset($interface_arr_cache); |
72 | 67 |
unset($carp_interface_count_cache); |
73 | 68 |
unset($interface_ip_arr_cache); |
src/usr/local/www/widgets/widgets/system_information.widget.php | ||
---|---|---|
111 | 111 |
<tbody> |
112 | 112 |
<tr> |
113 | 113 |
<th><?=gettext("Name");?></th> |
114 |
<td><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td>
|
|
114 |
<td><?php echo htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']); ?></td>
|
|
115 | 115 |
</tr> |
116 | 116 |
<tr> |
117 | 117 |
<th><?=gettext("Version");?></th> |
src/usr/local/www/wizard.php | ||
---|---|---|
71 | 71 |
// This causes the step #, field type and field name to be printed at the top of the page |
72 | 72 |
define(DEBUG, false); |
73 | 73 |
|
74 |
function gentitle_pkg($pgname) { |
|
75 |
global $config; |
|
76 |
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname; |
|
77 |
} |
|
78 |
|
|
79 | 74 |
global $g; |
80 | 75 |
|
81 | 76 |
$stepid = htmlspecialchars($_GET['stepid']); |
Also available in: Unified diff
Encode hostname before printing; remove some related dead code.