diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-13 19:41:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-13 19:41:12 +0000 |
commit | cfa6fa1ada5d2ce89692b71094207aac39097032 (patch) | |
tree | f344a21db809900d728b3684b6d5902ab0144391 /usr/local/www/system.php | |
parent | 95263be2c208d56fd7db8cc5964c6d74012a7851 (diff) | |
download | pfsense-cfa6fa1ada5d2ce89692b71094207aac39097032.zip pfsense-cfa6fa1ada5d2ce89692b71094207aac39097032.tar.gz |
Switch operating mode cleaner and meta redirect at end of page
Ticket #338
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-x | usr/local/www/system.php | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index befa263..e196b06 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -146,16 +146,6 @@ if ($_POST) { if ($changecount > 0) write_config($changedesc); - // restart webgui if proto or port changed - if ($restart_webgui) { - global $_SERVER; - system_webgui_start(); - if ($pconfig['webguiport']) - header("Location: {$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}:{$pconfig['webguiport']}/system.php"); - else - header("Location: {$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}/system.php"); - } - $retval = 0; if (!file_exists($d_sysrebootreqd_path)) { config_lock(); @@ -283,3 +273,18 @@ include("head.inc"); <?php include("fend.inc"); ?> </body> </html> +<?php + // restart webgui if proto or port changed + if ($restart_webgui) { + global $_SERVER; + system_webgui_start(); + if ($pconfig['webguiport']) { + $url="{$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}:{$pconfig['webguiport']}/system.php"; + } else { + $url = "{$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}/system.php"; + } + echo "<p>One moment... switching https mode/port...</p>"; + echo "<meta http-equiv=\"refresh\" content=\"10;url={$url}\">"; + } + +?>
\ No newline at end of file |