Commit c7d388a8 authored by Ad Schellevis's avatar Ad Schellevis

add OpenVPN client export

reference : https://forum.opnsense.org/index.php?topic=132.msg754#msg754
parent 541318e7
...@@ -1392,6 +1392,12 @@ $priv_list['page-firewall-easyrule']['descr'] = gettext("Allow access to the 'Fi ...@@ -1392,6 +1392,12 @@ $priv_list['page-firewall-easyrule']['descr'] = gettext("Allow access to the 'Fi
$priv_list['page-firewall-easyrule']['match'] = array(); $priv_list['page-firewall-easyrule']['match'] = array();
$priv_list['page-firewall-easyrule']['match'][] = "easyrule.php*"; $priv_list['page-firewall-easyrule']['match'][] = "easyrule.php*";
$priv_list['page-openvpn-client-export'] = array();
$priv_list['page-openvpn-client-export']['name'] = "WebCfg - OpenVPN: Client Export Utility";
$priv_list['page-openvpn-client-export']['descr'] = "Allow access to the OpenVPN: Client Export Utility page.";
$priv_list['page-openvpn-client-export']['match'] = array();
$priv_list['page-openvpn-client-export']['match'][] = "vpn_openvpn_export.php*";
$priv_rmvd = array(); $priv_rmvd = array();
?> ?>
This diff is collapsed.
...@@ -973,28 +973,6 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) { ...@@ -973,28 +973,6 @@ function display_top_tabs(& $tab_array, $no_drop_down = false) {
} }
function add_package_tabs($tabgroup, & $tab_array) {
global $config, $g;
if(!is_array($config['installedpackages']))
return;
if(!is_array($config['installedpackages']['tab']))
return;
foreach($config['installedpackages']['tab'] as $tab) {
if ($tab['group'] !== $group)
continue;
$tab_entry = array();
if($tab['name']) {
$tab_entry[] = $tab['name'];
$tab_entry[] = false;
$tab_entry[] = $tab['url'];
$tab_array[] = $tab_entry;
}
}
}
function alias_info_popup($alias_id){ function alias_info_popup($alias_id){
global $config; global $config;
$maxlength = 60; $maxlength = 60;
......
...@@ -446,7 +446,8 @@ function autotls_change() { ...@@ -446,7 +446,8 @@ function autotls_change() {
$tab_array[] = array(gettext("Client"), true, "vpn_openvpn_client.php"); $tab_array[] = array(gettext("Client"), true, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php"); $tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml"); $tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml");
add_package_tabs("OpenVPN", $tab_array); $tab_array[] = array(gettext("Client Export"), false, "vpn_openvpn_export.php");
$tab_array[] = array(gettext("Shared Key Export"), false, "vpn_openvpn_export_shared.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
......
...@@ -326,7 +326,8 @@ if($act!="new" && $act!="edit") { ...@@ -326,7 +326,8 @@ if($act!="new" && $act!="edit") {
$tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php"); $tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), true, "vpn_openvpn_csc.php"); $tab_array[] = array(gettext("Client Specific Overrides"), true, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml"); $tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml");
add_package_tabs("OpenVPN", $tab_array); $tab_array[] = array(gettext("Client Export"), false, "vpn_openvpn_export.php");
$tab_array[] = array(gettext("Shared Key Export"), false, "vpn_openvpn_export_shared.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
......
This diff is collapsed.
This diff is collapsed.
...@@ -745,7 +745,8 @@ function tuntap_change() { ...@@ -745,7 +745,8 @@ function tuntap_change() {
$tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php"); $tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php"); $tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml"); $tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml");
add_package_tabs("OpenVPN", $tab_array); $tab_array[] = array(gettext("Client Export"), false, "vpn_openvpn_export.php");
$tab_array[] = array(gettext("Shared Key Export"), false, "vpn_openvpn_export_shared.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment