Projet

Général

Profil

« Précédent | Suivant » 

Révision 26509223

Ajouté par Colin Fleming il y a presque 10 ans

Tidy up "crash_reporter.php" XHTML

Tidy up Paragraph tags
Close INPUT tags

Voir les différences:

usr/local/www/crash_reporter.php
65 65
}
66 66

  
67 67
function output_crash_reporter_html($crash_reports) {
68
	echo "<strong>" . gettext("Unfortunately we have detected a programming bug.") . "</strong></p>";
69
	echo gettext("Would you like to submit the programming debug logs to the pfSense developers for inspection?") . "</p>";
70
	echo "<p>";
71
	echo "<i>" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "</i><br />";
72
	echo "<p>";
73
	echo gettext("Contents of crash reports") . ":<br />";
74
	echo "<textarea readonly rows='40' cols='65' name='crashreports'>{$crash_reports}</textarea>";
75
	echo "<p/>";
76
	echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") .  "\">" . gettext(" - Submit this to the developers for inspection");
77
	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");
78
	echo "<p/>";
68
	echo "<p><strong>" . gettext("Unfortunately we have detected a programming bug.") . "</strong></p>";
69
	echo "<p>" . gettext("Would you like to submit the programming debug logs to the pfSense developers for inspection?") . "</p>";
70
	echo "<p><i>" . gettext("Please double check the contents to ensure you are comfortable sending this information before clicking Yes.") . "</i></p>";
71
	echo "<p>" . gettext("Contents of crash reports") . ":<br />";
72
	echo "<textarea readonly=\"readonly\" rows=\"40\" cols=\"65\" name=\"crashreports\">{$crash_reports}</textarea></p>";
73
	echo "<p><input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") .  "\" />" . gettext(" - Submit this to the developers for inspection") . "</p>";
74
	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>";
79 75
	echo "</form>";
80 76
}
81 77

  
......
108 104
			copy("/tmp/PHP_errors.log", "/var/crash/PHP_errors.log");
109 105
		exec("/usr/bin/gzip /var/crash/*");
110 106
		$files_to_upload = glob("/var/crash/*");
111
		echo "<p/>";
107
		echo "<br/>";
112 108
		echo gettext("Uploading...");
113 109
		ob_flush();
114 110
		flush();
......
117 113
			array_map('unlink', glob("/var/crash/*"));
118 114
			// Erase the contents of the PHP error log
119 115
			fclose(fopen("/tmp/PHP_errors.log", 'w'));
120
			echo "<p/>";
116
			echo "<br/>";
121 117
			print_r($resp);
122
			echo "<p/><a href='/'>" . gettext("Continue") . "</a>" . gettext(" and delete crash report files from local disk.");
118
			echo "<p><a href=\"/\">" . gettext("Continue") . "</a>" . gettext(" and delete crash report files from local disk.") . "</p>";
123 119
		} else {
124 120
			echo "Could not find any crash files.";
125 121
		}

Formats disponibles : Unified diff