summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-01-11 16:08:51 -0500
committerjim-p <jimp@pfsense.org>2012-01-11 16:08:51 -0500
commitb397879f2b2fcdee978839eb4ec7dace8a7fd39e (patch)
tree4b0e3a036f4512b8f227f2063bed387dbb139448 /usr/local
parentd495dc51d65189b63f7f3264816eb4fc565ad610 (diff)
downloadpfsense-b397879f2b2fcdee978839eb4ec7dace8a7fd39e.zip
pfsense-b397879f2b2fcdee978839eb4ec7dace8a7fd39e.tar.gz
Add a button to re-view the packet capture file if one exists in /root/
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/diag_packet_capture.php5
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") . "\">&nbsp;";
}
if (file_exists($fp.$fn) and $processisrunning != true) {
+ echo "<input type=\"submit\" name=\"viewbtn\" value=\"" . gettext("View Capture") . "\">&nbsp;";
echo "<input type=\"submit\" name=\"downloadbtn\" value=\"" . gettext("Download Capture") . "\">";
- echo "&nbsp;&nbsp;(" . 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>
OpenPOWER on IntegriCloud