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

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

"; echo "

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

"; echo ""; echo ""; echo "

"; echo ""; } $pgtitle = array(gettext("Diagnostics"),gettext("Crash reporter")); include('head.inc'); ?>

"; echo gettext("Uploading..."); echo "

"; if(is_array($files_to_upload)) { $resp = upload_crash_report($files_to_upload); print_r($resp); exec("rm /var/crash/*"); echo gettext("Crash files have been submitted for inspection."); echo "

" . gettext("Continue") . ""; } 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/*"); if(is_array($crash_files)) foreach($crash_files as $cf) $crash_reports .= file_get_contents($cf); else echo "Could not locate any crash data."; output_crash_reporter_html($crash_reports); } ?>