diff options
Diffstat (limited to 'usr/local/www/interfaces_ppp_edit.php')
-rw-r--r-- | usr/local/www/interfaces_ppp_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_ppp_edit.php b/usr/local/www/interfaces_ppp_edit.php index 4fd82af..1b86ea4 100644 --- a/usr/local/www/interfaces_ppp_edit.php +++ b/usr/local/www/interfaces_ppp_edit.php @@ -111,7 +111,6 @@ if ($_POST) { $ppp['connect-max-attempts'] = $_POST['connect-max-attempts']; $ppp['descr'] = $_POST['descr']; - interfaces_ppp_configure(); if (isset($id) && $a_ppps[$id]) $a_ppps[$id] = $ppp; @@ -120,6 +119,8 @@ if ($_POST) { write_config(); + interfaces_ppp_configure(); + header("Location: interfaces_ppp.php"); exit; } @@ -191,7 +192,7 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncell">Link Type</td> <td width="78%" class="vtable"> - <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) "echo checked"; ?>>This link will be used as default gateway. + <input type="checkbox" value="on" id="defaultgw" name="defaultgw" <?php if (isset($pconfig['defaultgw'])) echo "checked"; ?>>This link will be used as default gateway. </td> </tr> <tr> |