diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-02-14 17:28:08 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-14 17:28:08 -0500 |
commit | f7253434877138dee1262cb930e329cf65209b77 (patch) | |
tree | 3361f8a350cb3a2cfb135808f25ba19a7c2102fb /src/usr/local/www/vpn_openvpn_server.php | |
parent | e1346a0ca9ca1110c2f377fcac830a67d5d95767 (diff) | |
parent | 2b38c46bb6ca3cc6234c6433d63ba5360d061ccc (diff) | |
download | pfsense-f7253434877138dee1262cb930e329cf65209b77.zip pfsense-f7253434877138dee1262cb930e329cf65209b77.tar.gz |
Merge pull request #2637 from k-paulius/patch-6
Diffstat (limited to 'src/usr/local/www/vpn_openvpn_server.php')
-rw-r--r-- | src/usr/local/www/vpn_openvpn_server.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php index 0a4234f..28c458e 100644 --- a/src/usr/local/www/vpn_openvpn_server.php +++ b/src/usr/local/www/vpn_openvpn_server.php @@ -590,6 +590,10 @@ if ($_POST) { } $pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Servers")); + +if ($act=="new" || $act=="edit") { + $pgtitle[] = gettext('Edit'); +} $shortcut_section = "openvpn"; include("head.inc"); @@ -734,7 +738,7 @@ if ($act=="new" || $act=="edit"): } else { $section->addInput(new Form_StaticText( 'Peer Certificate Authority', - sprintf('No Certificate Authorities defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert Manager</a>') + sprintf('No Certificate Authorities defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert. Manager</a>') )); } @@ -748,7 +752,7 @@ if ($act=="new" || $act=="edit"): } else { $section->addInput(new Form_StaticText( 'Peer Certificate Revocation list', - sprintf('No Certificate Revocation Lists defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert Manager</a>') + sprintf('No Certificate Revocation Lists defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert. Manager</a>') )); } @@ -762,7 +766,7 @@ if ($act=="new" || $act=="edit"): } } } else { - $certhelp = sprintf('%s%s%s$s', '<span id="certtype">', gettext('No Certificates defined. You may create one here: '), '<a href="system_camanager.php">' . gettext("System > Cert Manager") . '</a>', '</span>'); + $certhelp = sprintf('%s%s%s$s', '<span id="certtype">', gettext('No Certificates defined. You may create one here: '), '<a href="system_camanager.php">' . gettext("System > Cert. Manager") . '</a>', '</span>'); } $cl = openvpn_build_cert_list(false, true); @@ -782,7 +786,7 @@ if ($act=="new" || $act=="edit"): 'DH Parameter length (bits)', $pconfig['dh_length'], array_combine($openvpn_dh_lengths, $openvpn_dh_lengths) - ))->setHelp(count($a_cert) ? '':sprintf('No Certificates defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert Manager</a>')); + ))->setHelp(count($a_cert) ? '':sprintf('No Certificates defined. You may create one here: %s', '<a href="system_camanager.php">System > Cert. Manager</a>')); if (!$pconfig['shared_key']) { $section->addInput(new Form_Checkbox( |