aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-30 14:42:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-30 14:42:11 -0400
commitdfaba6d95dcfd754059ba88926185010c533e69a (patch)
tree9f6492881aeae4bdd0f555c5a73cd9495007f80b /config/openvpn-client-export
parent2700f0c13e7d768cb1cc2cdfde2b6daebf163b4a (diff)
downloadpfsense-packages-dfaba6d95dcfd754059ba88926185010c533e69a.tar.gz
pfsense-packages-dfaba6d95dcfd754059ba88926185010c533e69a.tar.bz2
pfsense-packages-dfaba6d95dcfd754059ba88926185010c533e69a.zip
Adding zip and unzip
Diffstat (limited to 'config/openvpn-client-export')
-rwxr-xr-xconfig/openvpn-client-export/bin/unzipbin0 -> 131468 bytes
-rwxr-xr-xconfig/openvpn-client-export/bin/zipbin0 -> 208348 bytes
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.inc2
-rwxr-xr-xconfig/openvpn-client-export/openvpn-client-export.xml10
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php20
5 files changed, 31 insertions, 1 deletions
diff --git a/config/openvpn-client-export/bin/unzip b/config/openvpn-client-export/bin/unzip
new file mode 100755
index 00000000..d8da509b
--- /dev/null
+++ b/config/openvpn-client-export/bin/unzip
Binary files differ
diff --git a/config/openvpn-client-export/bin/zip b/config/openvpn-client-export/bin/zip
new file mode 100755
index 00000000..0900bd60
--- /dev/null
+++ b/config/openvpn-client-export/bin/zip
Binary files 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
@@ -25,6 +25,16 @@
<item>http://www.pfsense.com/packages/config/openvpn-client-export/openvpn-client-export.tgz</item>
</additional_files_needed>
<additional_files_needed>
+ <prefix>/usr/local/bin/</prefix>
+ <chmod>755</chmod>
+ <item>http://www.pfsense.com/packages/config/openvpn-client-export/bin/zip</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/bin/</prefix>
+ <chmod>755</chmod>
+ <item>http://www.pfsense.com/packages/config/openvpn-client-export/bin/unzip</item>
+ </additional_files_needed>
+ <additional_files_needed>
<prefix>/usr/local/www/</prefix>
<chmod>077</chmod>
<item>http://www.pfsense.com/packages/config/openvpn-client-export/vpn_openvpn_export.php</item>
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() {
</table>
</td>
</tr>
+
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
+ <?php if(is_dir("/usr/local/share/openvpn")): ?>
+
+ <?php else: ?>
+ <form action="vpn_openvpn_export.php" method="post" enctype="multipart/form-data">
+ <strong>Zipped Viscosity file:</strong>
+ <input name="ulfile" type="file" class="formfld">
+ </form>
+ <?php endif; ?>
+ <tr>
+ <td colspan="2" class="list" height="12">&nbsp;</td>
+ </tr>
+
+
<tr>
<td colspan="2" valign="top" class="listtopic">Client Install Packages</td>
</tr>