From 26509223bc6854abf52308510f535f5ad576d2e7 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Tue, 3 Jun 2014 12:28:17 +0100 Subject: Tidy up "crash_reporter.php" XHTML Tidy up Paragraph tags Close INPUT tags --- usr/local/www/crash_reporter.php | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index e7834c6..c0a20a4 100644 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -65,17 +65,13 @@ function upload_crash_report($files) { } function output_crash_reporter_html($crash_reports) { - echo "" . gettext("Unfortunately we have detected a programming bug.") . "

"; - echo gettext("Would you like to submit the programming 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 "

" . gettext("Unfortunately we have detected a programming bug.") . "

"; + echo "

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

"; + echo "

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

"; + echo "

" . gettext("Contents of crash reports") . ":
"; + 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 ""; } @@ -108,7 +104,7 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); copy("/tmp/PHP_errors.log", "/var/crash/PHP_errors.log"); exec("/usr/bin/gzip /var/crash/*"); $files_to_upload = glob("/var/crash/*"); - echo "

"; + echo "
"; echo gettext("Uploading..."); ob_flush(); flush(); @@ -117,9 +113,9 @@ exec("/usr/bin/grep -vi warning /tmp/PHP_errors.log", $php_errors); array_map('unlink', glob("/var/crash/*")); // Erase the contents of the PHP error log fclose(fopen("/tmp/PHP_errors.log", 'w')); - echo "

"; + echo "
"; print_r($resp); - echo "

" . gettext("Continue") . "" . gettext(" and delete crash report files from local disk."); + echo "

" . gettext("Continue") . "" . gettext(" and delete crash report files from local disk.") . "

"; } else { echo "Could not find any crash files."; } -- cgit v1.1