" . gettext("Unfortunately we have detected a kernel crash (panic).") . "

"; echo "If you are unfamiliar with kernel panics wikipedia has information here.

"; echo gettext("Would you like to submit the crash debug logs to the pfSense developers for inspection?") . "

"; echo "

"; echo "" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "
"; echo "

"; echo gettext("Contents of crash reports") . ":
"; echo ""; echo "

"; echo "" . gettext(" - Submit this to the developers for inspection"); echo "

" . gettext(" - Just delete the crash report and take me back to the Dashboard"); echo "

"; echo ""; } $pgtitle = array(gettext("Diagnostics"),gettext("Crash reporter")); include('head.inc'); $crash_report_header = "Crash report begins. Anonymous machine information:\n\n"; $crash_report_header .= php_uname("m") . "\n"; $crash_report_header .= php_uname("r") . "\n"; $crash_report_header .= php_uname("v") . "\n"; $crash_report_header .= "\nCrash report details:\n"; ?>

"; echo gettext("Uploading..."); ob_flush(); flush(); if(is_array($files_to_upload)) { $resp = upload_crash_report($files_to_upload); exec("rm /var/crash/*"); echo "

"; print_r($resp); echo "

" . gettext("Continue") . "" . gettext(" and delete crash report files from local disk."); } else { echo "Could not find any crash files."; } } else if(gettext($_POST['Submit']) == "No") { exec("rm /var/crash/*"); Header("Location: /"); exit; } else { $crash_files = glob("/var/crash/*"); $crash_reports = $crash_report_header; if(is_array($crash_files)) { foreach($crash_files as $cf) { if(filesize($cf) < FILE_SIZE) { $crash_reports .= "\nFilename: {$cf}\n"; $crash_reports .= file_get_contents($cf); } } } else { echo "Could not locate any crash data."; } output_crash_reporter_html($crash_reports); } ?>