summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-04-26 02:07:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-04-26 02:07:01 +0000
commita007827a72bc83991e4ecf4b0aaefee217ad45cb (patch)
tree8cd62af28fc6ab6dc3f9f3f74a9363a6737b5d33 /usr/local/www
parent3ade6a7d490089f4bdad9274c300d82d5565ac3c (diff)
downloadpfsense-a007827a72bc83991e4ecf4b0aaefee217ad45cb.zip
pfsense-a007827a72bc83991e4ecf4b0aaefee217ad45cb.tar.gz
Begin adding OpenVPN users feature.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/guiconfig.inc10
-rw-r--r--usr/local/www/vpn_openvpn_certs.php9
2 files changed, 15 insertions, 4 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 7dfd164..4e55472 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -447,6 +447,16 @@ function pptpd_users_sort() {
usort($config['pptpd']['user'], "usercmp");
}
+function openvpn_users_sort() {
+ global $g, $config;
+
+ function usercmp($a, $b) {
+ return strcasecmp($a['name'], $b['name']);
+ }
+
+ usort($config['openvpn']['user'], "usercmp");
+}
+
function pppoe_users_sort() {
global $g, $config;
diff --git a/usr/local/www/vpn_openvpn_certs.php b/usr/local/www/vpn_openvpn_certs.php
index 40ba6a9..d4c99cd 100644
--- a/usr/local/www/vpn_openvpn_certs.php
+++ b/usr/local/www/vpn_openvpn_certs.php
@@ -71,10 +71,11 @@ include("head.inc");
<tr><td>
<?php
$tab_array = array();
- $tab_array[0] = array("Server", false, "pkg.php?xml=openvpn.xml");
- $tab_array[1] = array("Client", false, "pkg.php?xml=openvpn_cli.xml");
- $tab_array[2] = array("Client-specific configuration", false, "pkg.php?xml=openvpn_csc.xml");
- $tab_array[3] = array("Certificate generation", true, "vpn_openvpn_certs.php");
+ $tab_array[] = array("Server", false, "/pkg.php?xml=openvpn.xml");
+ $tab_array[] = array("Client", false, "/pkg.php?xml=openvpn_cli.xml");
+ $tab_array[] = array("Client-specific configuration", false, "openvpn_csc.xml");
+ $tab_array[] = array("Certificate Authority", true, "/vpn_openvpn_certs.php");
+ $tab_array[] = array("Users", false, "vpn_openvpn_users.php");
display_top_tabs($tab_array);
?>
</td></tr>
OpenPOWER on IntegriCloud