diff options
-rwxr-xr-x | usr/local/www/system.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index 40ed989..7c045fd 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -134,9 +134,10 @@ if ($_POST) { write_config(); + // restart webgui if proto changed if (($oldwebguiproto != $config['system']['webgui']['protocol']) || ($oldwebguiport != $config['system']['webgui']['port'])) - touch($d_sysrebootreqd_path); + system_webgui_start(); $retval = 0; if (!file_exists($d_sysrebootreqd_path)) { @@ -222,8 +223,8 @@ if ($_POST) { </tr> <tr> <td width="22%" valign="top" class="vncell">webGUI protocol</td> - <td width="78%" class="vtable"> <input name="webguiproto" type="radio" value="http" <?php if ($pconfig['webguiproto'] == "http") echo "checked"; ?>> - HTTP <input type="radio" name="webguiproto" value="https" <?php if ($pconfig['webguiproto'] == "https") echo "checked"; ?>> + <td width="78%" class="vtable"> <input name="webguiproto" type="radio" value="http" onclick="alert('webGUI protocol changes will take effect immediately after clicking save')" <?php if ($pconfig['webguiproto'] == "http") echo "checked"; ?>> + HTTP <input type="radio" name="webguiproto" value="https" onclick="alert('webGUI protocol changes will take effect immediately after clicking save')" <?php if ($pconfig['webguiproto'] == "https") echo "checked"; ?>> HTTPS</td> </tr> <tr> |