From dfaba6d95dcfd754059ba88926185010c533e69a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 30 Jun 2009 14:42:11 -0400 Subject: Adding zip and unzip --- config/openvpn-client-export/bin/unzip | Bin 0 -> 131468 bytes config/openvpn-client-export/bin/zip | Bin 0 -> 208348 bytes .../openvpn-client-export/openvpn-client-export.inc | 2 +- .../openvpn-client-export/openvpn-client-export.xml | 10 ++++++++++ config/openvpn-client-export/vpn_openvpn_export.php | 20 ++++++++++++++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 config/openvpn-client-export/bin/unzip create mode 100755 config/openvpn-client-export/bin/zip (limited to 'config') diff --git a/config/openvpn-client-export/bin/unzip b/config/openvpn-client-export/bin/unzip new file mode 100755 index 00000000..d8da509b Binary files /dev/null and b/config/openvpn-client-export/bin/unzip differ diff --git a/config/openvpn-client-export/bin/zip b/config/openvpn-client-export/bin/zip new file mode 100755 index 00000000..0900bd60 Binary files /dev/null and b/config/openvpn-client-export/bin/zip differ diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 222fe71b..34b0a675 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -253,4 +253,4 @@ function openvpn_client_export_installer($srvid, $usrid, $crtid, $useaddr, $uset return $outfile; } -?> +?> \ No newline at end of file diff --git a/config/openvpn-client-export/openvpn-client-export.xml b/config/openvpn-client-export/openvpn-client-export.xml index f0975ced..de579c70 100755 --- a/config/openvpn-client-export/openvpn-client-export.xml +++ b/config/openvpn-client-export/openvpn-client-export.xml @@ -24,6 +24,16 @@ 077 http://www.pfsense.com/packages/config/openvpn-client-export/openvpn-client-export.tgz + + /usr/local/bin/ + 755 + http://www.pfsense.com/packages/config/openvpn-client-export/bin/zip + + + /usr/local/bin/ + 755 + http://www.pfsense.com/packages/config/openvpn-client-export/bin/unzip + /usr/local/www/ 077 diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php index e5d474cb..95db34d1 100755 --- a/config/openvpn-client-export/vpn_openvpn_export.php +++ b/config/openvpn-client-export/vpn_openvpn_export.php @@ -32,6 +32,12 @@ require("guiconfig.inc"); require("openvpn-client-export.inc"); +// Handle Viscosiy upload +if (is_uploaded_file($_FILES['ulfile']['tmp_name'])) { + rename($_FILES['ulfile']['tmp_name'], "{$g['upload_path']}/viscosity.zip"); + +} + $pgtitle = array("OpenVPN", "Client Export Utility"); if (!is_array($config['openvpn']['openvpn-server'])) @@ -335,9 +341,23 @@ function usepass_changed() { +   + + + +
+ Zipped Viscosity file: + +
+ + +   + + + Client Install Packages -- cgit v1.2.3