summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-12-24 20:28:56 -0500
committerjim-p <jim@pingle.org>2009-12-24 20:28:56 -0500
commit43d9a2d3eb065a2e60e0af5b76110c6c1129a5c3 (patch)
tree178cd0fc9469e6ea40937dccd93d47710989610f /usr/local/www/wizard.php
parentab94e13610bdc6a671045689702a034f8ebc5888 (diff)
downloadpfsense-43d9a2d3eb065a2e60e0af5b76110c6c1129a5c3.zip
pfsense-43d9a2d3eb065a2e60e0af5b76110c6c1129a5c3.tar.gz
Fix wizard webgui URL usage so it chooses https/http properly for refresh link and logo link
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index 4a8c628..45302b3 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -232,7 +232,7 @@ function enablechange() {
<?php
if($title == "Reload in progress") {
- $ip = "http://" . $_SERVER['HTTP_HOST'];
+ $ip = fixup_string($_SERVER['HTTP_HOST']);
} else {
$ip = "/";
}
@@ -632,7 +632,7 @@ function fixup_string($string) {
global $config, $myurl;
$newstring = $string;
// fixup #1: $myurl -> http[s]://ip_address:port/
- switch($config['system']['webguiproto']) {
+ switch($config['system']['webgui']['protocol']) {
case "http":
$proto = "http";
break;
@@ -643,7 +643,7 @@ function fixup_string($string) {
$proto = "http";
break;
}
- $port = $config['system']['webguiport'];
+ $port = $config['system']['webgui']['port'];
if($port != "") {
if(($port == "443" and $proto != "https") or ($port == "80" and $proto != "http")) {
$urlport = ":" . $port;
OpenPOWER on IntegriCloud