diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-21 04:29:13 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-21 04:29:13 +0000 |
commit | 390c2739d2280dd1798855b4d0d283d30120aaa0 (patch) | |
tree | 960ff372e5547d5ca4448dd9705469a107d8dd2a /usr/local/www/system.php | |
parent | 0a44a4212d4325ef7b5b205ad820ff209182ec01 (diff) | |
download | pfsense-390c2739d2280dd1798855b4d0d283d30120aaa0.zip pfsense-390c2739d2280dd1798855b4d0d283d30120aaa0.tar.gz |
make webgui proto chagne transparent to user, just redirect to new port
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 7c045fd..6c63de4 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -134,10 +134,13 @@ if ($_POST) { write_config(); - // restart webgui if proto changed + // restart webgui if proto or port changed if (($oldwebguiproto != $config['system']['webgui']['protocol']) || - ($oldwebguiport != $config['system']['webgui']['port'])) + ($oldwebguiport != $config['system']['webgui']['port'])) { + global $_SERVER; system_webgui_start(); + header("Location: {$config['system']['webgui']['protocol']}://{$_SERVER['SERVER_NAME']}/system.php"); + } $retval = 0; if (!file_exists($d_sysrebootreqd_path)) { |