diff options
author | jim-p <jimp@pfsense.org> | 2012-01-11 16:08:51 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-01-11 16:08:51 -0500 |
commit | b397879f2b2fcdee978839eb4ec7dace8a7fd39e (patch) | |
tree | 4b0e3a036f4512b8f227f2063bed387dbb139448 | |
parent | d495dc51d65189b63f7f3264816eb4fc565ad610 (diff) | |
download | pfsense-b397879f2b2fcdee978839eb4ec7dace8a7fd39e.zip pfsense-b397879f2b2fcdee978839eb4ec7dace8a7fd39e.tar.gz |
Add a button to re-view the packet capture file if one exists in /root/
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index b10e79c..07294b4 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -88,7 +88,7 @@ if ($_POST) { exec("kill $process_id"); } - } else { + } elseif ($_POST['downloadbtn']!= "") { //download file $fs = filesize($fp.$fn); header("Content-Type: application/octet-stream"); @@ -222,8 +222,9 @@ include("fbegin.inc"); echo "<input type=\"submit\" name=\"stopbtn\" value=\"" . gettext("Stop") . "\"> "; } if (file_exists($fp.$fn) and $processisrunning != true) { + echo "<input type=\"submit\" name=\"viewbtn\" value=\"" . gettext("View Capture") . "\"> "; echo "<input type=\"submit\" name=\"downloadbtn\" value=\"" . gettext("Download Capture") . "\">"; - echo " (" . gettext("The packet capture file was last updated:") . " " . date("F jS, Y g:i:s a.", filemtime($fp.$fn)) . ")"; + echo "<br/>" . gettext("The packet capture file was last updated:") . " " . date("F jS, Y g:i:s a.", filemtime($fp.$fn)); } ?> </td> |