=gettext("The programming debug logs can be submitted to the pfSense developers for inspection.")?> =gettext("Please double check the contents to ensure this information is acceptable to disclose before submitting.")?>
";
echo gettext("Uploading...");
ob_flush();
flush();
if (is_array($files_to_upload)) {
$resp = upload_crash_report($files_to_upload);
echo "
";
print_r($resp);
if (preg_match('/Upload received OK./i', $resp)) {
array_map('unlink', glob("/var/crash/*"));
// Erase the contents of the PHP error log
fclose(fopen("/tmp/PHP_errors.log", 'w'));
echo "
" . gettext("Deleted crash report files from local disk.");
}
echo "
" . gettext("Continue") . "" . "
"; } else { echo gettext("Could not find any crash files."); } } else if ($_POST['Submit'] == "No") { array_map('unlink', glob("/var/crash/*")); // Erase the contents of the PHP error log fclose(fopen("/tmp/PHP_errors.log", 'w')); header("Location: /"); exit; } else { $crash_files = glob("/var/crash/*"); $crash_reports = $crash_report_header; if (count($php_errors) > 0) { $crash_reports .= "\nPHP Errors:\n"; $crash_reports .= implode("\n", $php_errors) . "\n\n"; } else { $crash_reports .= "\nNo PHP errors found.\n"; } if (count($crash_files) > 0) { foreach ($crash_files as $cf) { if (filesize($cf) < FILE_SIZE) { $crash_reports .= "\nFilename: {$cf}\n"; $crash_reports .= file_get_contents($cf); } } } else { $crash_reports .= "\nNo FreeBSD crash data found.\n"; } ?>=gettext("The programming debug logs can be submitted to the pfSense developers for inspection.")?> =gettext("Please double check the contents to ensure this information is acceptable to disclose before submitting.")?>