aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export/vpn_openvpn_export.php
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/vpn_openvpn_export.php
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/vpn_openvpn_export.php')
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php20
1 files changed, 20 insertions, 0 deletions
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>