diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-10 17:19:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-10 17:19:42 +0000 |
commit | 5f7bb7970b8a37c069d5ab7238f8a6f4962fca5a (patch) | |
tree | e679efac2b95d262f6a0a03a3777e6f0026b8d08 | |
parent | afd0cbb47f63b3bb2407ffa797d61ad16255a976 (diff) | |
download | pfsense-5f7bb7970b8a37c069d5ab7238f8a6f4962fca5a.zip pfsense-5f7bb7970b8a37c069d5ab7238f8a6f4962fca5a.tar.gz |
Do not show blank openvpn configuration items.
-rw-r--r-- | usr/local/pkg/openvpn.xml | 4 | ||||
-rw-r--r-- | usr/local/pkg/openvpn_cli.xml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/pkg/openvpn.xml b/usr/local/pkg/openvpn.xml index 136c4b9..2f2a47f 100644 --- a/usr/local/pkg/openvpn.xml +++ b/usr/local/pkg/openvpn.xml @@ -212,6 +212,10 @@ </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(&$pkg); </custom_php_command_before_form> <custom_php_after_head_command> diff --git a/usr/local/pkg/openvpn_cli.xml b/usr/local/pkg/openvpn_cli.xml index 055fcc2..87178a6 100644 --- a/usr/local/pkg/openvpn_cli.xml +++ b/usr/local/pkg/openvpn_cli.xml @@ -194,6 +194,10 @@ </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(&$pkg); </custom_php_command_before_form> <custom_php_after_head_command> |