diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-30 14:42:11 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-30 14:42:11 -0400 |
commit | dfaba6d95dcfd754059ba88926185010c533e69a (patch) | |
tree | 9f6492881aeae4bdd0f555c5a73cd9495007f80b /config/openvpn-client-export/vpn_openvpn_export.php | |
parent | 2700f0c13e7d768cb1cc2cdfde2b6daebf163b4a (diff) | |
download | pfsense-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-x | config/openvpn-client-export/vpn_openvpn_export.php | 20 |
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"> </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"> </td> + </tr> + + <tr> <td colspan="2" valign="top" class="listtopic">Client Install Packages</td> </tr> |