summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-21 20:44:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-21 20:44:51 +0000
commit9c22315353486a374f299f6232eb1a99712f7aaf (patch)
treec8735514c9500a8538c506d87f683a679b6d5192
parent604eed79299ea3929adef191c7702c1626500331 (diff)
downloadpfsense-9c22315353486a374f299f6232eb1a99712f7aaf.zip
pfsense-9c22315353486a374f299f6232eb1a99712f7aaf.tar.gz
Only check for server or client respectively instead of checking for both. Otherwise if a operator is only running server or client openvpn entries we do not show the configuration.
-rw-r--r--usr/local/pkg/openvpn.xml2
-rw-r--r--usr/local/pkg/openvpn_cli.xml2
2 files changed, 0 insertions, 4 deletions
diff --git a/usr/local/pkg/openvpn.xml b/usr/local/pkg/openvpn.xml
index 2f2a47f..e73e722 100644
--- a/usr/local/pkg/openvpn.xml
+++ b/usr/local/pkg/openvpn.xml
@@ -212,8 +212,6 @@
</field>
</fields>
<custom_php_command_before_form>
- if(!$config['installedpackages']['openvpnclient'][0]['protocol'])
- unset($evaledvar);
if(!$config['installedpackages']['openvpnserver'][0]['protocol'])
unset($evaledvar);
openvpn_get_ciphers(&amp;$pkg);
diff --git a/usr/local/pkg/openvpn_cli.xml b/usr/local/pkg/openvpn_cli.xml
index 87178a6..450ad0a 100644
--- a/usr/local/pkg/openvpn_cli.xml
+++ b/usr/local/pkg/openvpn_cli.xml
@@ -196,8 +196,6 @@
<custom_php_command_before_form>
if(!$config['installedpackages']['openvpnclient'][0]['protocol'])
unset($evaledvar);
- if(!$config['installedpackages']['openvpnserver'][0]['protocol'])
- unset($evaledvar);
openvpn_get_ciphers(&amp;$pkg);
</custom_php_command_before_form>
<custom_php_after_head_command>
OpenPOWER on IntegriCloud