diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-30 21:47:34 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-30 21:48:12 -0500 |
commit | 6543ffa4c5ef4782da43501948f1d054452c6a9a (patch) | |
tree | 2848ade70d031436d99490efb6045f9c5153aa67 /src | |
parent | 6f4f641ac56e97d9888d58607e80b0d66de6b22d (diff) | |
download | pfsense-6543ffa4c5ef4782da43501948f1d054452c6a9a.zip pfsense-6543ffa4c5ef4782da43501948f1d054452c6a9a.tar.gz |
Fixed #5555
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/local/www/status.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/local/www/status.php b/src/usr/local/www/status.php index 21358fc..1722099 100755 --- a/src/usr/local/www/status.php +++ b/src/usr/local/www/status.php @@ -317,4 +317,14 @@ print_info_box(gettext("Make sure all sensitive information is removed! (Passwor listCmds(); execCmds(); +print(gettext("Saving output to archive...")); + +if (is_dir($output_path)) { + mwexec("/usr/bin/tar czpf " . escapeshellarg($output_file) . " -C " . escapeshellarg(dirname($output_path)) . " " . escapeshellarg(basename($output_path))); + unlink_if_exists("{$output_path}/*"); + @rmdir($output_path); +} + +print(gettext("Done.")); + include("foot.inc"); |