mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add a button to re-view the packet capture file if one exists in /root/
This commit is contained in:
parent
d495dc51d6
commit
b397879f2b
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user