From 40de0b13aa028a6c54d81da64fa1f04d3a2af34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Sun, 22 Mar 2009 23:54:10 +0000 Subject: Add secret option required on some setups. --- usr/local/www/vpn_l2tp.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'usr/local/www') diff --git a/usr/local/www/vpn_l2tp.php b/usr/local/www/vpn_l2tp.php index b841e98..2dc487a 100644 --- a/usr/local/www/vpn_l2tp.php +++ b/usr/local/www/vpn_l2tp.php @@ -49,6 +49,7 @@ $pconfig['radiussecret'] = $l2tpcfg['radius']['secret']; $pconfig['radiusissueips'] = $l2tpcfg['radius']['radiusissueips']; $pconfig['n_l2tp_units'] = $l2tpcfg['n_l2tp_units']; $pconfig['paporchap'] = $l2tpcfg['paporchap']; +$pconfig['secret'] = $l2tpcfg['secret']; if ($_POST) { @@ -115,6 +116,7 @@ if ($_POST) { $l2tpcfg['radius']['server'] = $_POST['radiusserver']; $l2tpcfg['radius']['secret'] = $_POST['radiussecret']; + $l2tpcfg['secret'] = $_POST['secret']; $l2tpcfg['paporchap'] = $_POST['paporchap']; @@ -176,6 +178,7 @@ function enable_change(enable_over) { document.iform.paporchap.disabled = 0; document.iform.interface.disabled = 0; document.iform.n_l2tp_units.disabled = 0; + document.iform.secret.disabled = 0; /* fix colors */ document.iform.remoteip.style.backgroundColor = '#FFFFFF'; document.iform.localip.style.backgroundColor = '#FFFFFF'; @@ -185,6 +188,7 @@ function enable_change(enable_over) { document.iform.paporchap.style.backgroundColor = '#FFFFFF'; document.iform.interface.style.backgroundColor = '#FFFFFF'; document.iform.n_l2tp_units.style.backgroundColor = '#FFFFFF'; + document.iform.secret.style.backgroundColor = '#FFFFFF'; if (document.iform.radiusenable.checked || enable_over) { document.iform.radacct_enable.disabled = 0; document.iform.radiusserver.disabled = 0; @@ -218,6 +222,7 @@ function enable_change(enable_over) { document.iform.radiusserver.disabled = 1; document.iform.radiussecret.disabled = 1; document.iform.radiusissueips.disabled = 1; + document.iform.secret.disabled = 1; /* fix colors */ document.iform.interface.style.backgroundColor = '#D4D0C8'; document.iform.n_l2tp_units.style.backgroundColor = '#D4D0C8'; @@ -230,6 +235,7 @@ function enable_change(enable_over) { document.iform.radiusserver.style.backgroundColor = '#D4D0C8'; document.iform.radiussecret.style.backgroundColor = '#D4D0C8'; document.iform.radiusissueips.style.backgroundColor = '#D4D0C8'; + document.iform.secret.style.backgroundColor = '#D4D0C8'; } } //--> @@ -331,6 +337,14 @@ function enable_change(enable_over) {
Hint: 10 is TEN l2tp clients + + + + +
+
+ + -- cgit v1.1