summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorColin Fleming <cj_fleming@sky.com>2014-06-03 12:28:17 +0100
committerColin Fleming <cj_fleming@sky.com>2014-06-03 12:28:17 +0100
commit26509223bc6854abf52308510f535f5ad576d2e7 (patch)
treedc9eed43ae15b968e3ebc3956207ccda08288ae7 /usr/local/www/crash_reporter.php
parented10564bfe664e0c4723217cded9e134b9d82a08 (diff)
downloadpfsense-26509223bc6854abf52308510f535f5ad576d2e7.zip
pfsense-26509223bc6854abf52308510f535f5ad576d2e7.tar.gz
Tidy up "crash_reporter.php" XHTML
Tidy up Paragraph tags Close INPUT tags
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rw-r--r--usr/local/www/crash_reporter.php24
1 files 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 "<strong>" . gettext("Unfortunately we have detected a programming bug.") . "</strong></p>";
- echo gettext("Would you like to submit the programming debug logs to the pfSense developers for inspection?") . "</p>";
- echo "<p>";
- echo "<i>" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "</i><br />";
- echo "<p>";
- echo gettext("Contents of crash reports") . ":<br />";
- echo "<textarea readonly rows='40' cols='65' name='crashreports'>{$crash_reports}</textarea>";
- echo "<p/>";
- echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") . "\">" . gettext(" - Submit this to the developers for inspection");
- echo "<p/><input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("No") . "\">" . gettext(" - Just delete the crash report and take me back to the Dashboard");
- echo "<p/>";
+ echo "<p><strong>" . gettext("Unfortunately we have detected a programming bug.") . "</strong></p>";
+ echo "<p>" . gettext("Would you like to submit the programming debug logs to the pfSense developers for inspection?") . "</p>";
+ echo "<p><i>" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "</i></p>";
+ echo "<p>" . gettext("Contents of crash reports") . ":<br />";
+ echo "<textarea readonly=\"readonly\" rows=\"40\" cols=\"65\" name=\"crashreports\">{$crash_reports}</textarea></p>";
+ echo "<p><input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") . "\" />" . gettext(" - Submit this to the developers for inspection") . "</p>";
+ echo "<p><input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("No") . "\" />" . gettext(" - Just delete the crash report and take me back to the Dashboard") . "</p>";
echo "</form>";
}
@@ -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 "<p/>";
+ echo "<br/>";
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 "<p/>";
+ echo "<br/>";
print_r($resp);
- echo "<p/><a href='/'>" . gettext("Continue") . "</a>" . gettext(" and delete crash report files from local disk.");
+ echo "<p><a href=\"/\">" . gettext("Continue") . "</a>" . gettext(" and delete crash report files from local disk.") . "</p>";
} else {
echo "Could not find any crash files.";
}
OpenPOWER on IntegriCloud