Project

General

Profile

« Previous | Next » 

Revision 49c8f964

Added by Scott Ullrich over 14 years ago

gettext()

View differences:

usr/local/www/crash_reporter.php
67 67
function output_crash_reporter_html($crash_reports) {
68 68
	echo "<strong>" . gettext("Unfortunately we have detected a kernel crash (panic).") . "</strong></p>";
69 69
	echo "<strong>" . gettext("Would you like to submit the crash debug logs to the pfSense developers for inspection?") . "</strong></p>";
70
	echo "<p>Contents of crash reports:<br/>";
70
	echo "<p>";
71
	echo gettext("Contents of crash reports") . ":<br/>";
71 72
	echo "<textarea name='crashreports'>{$crash_reports}</textarea>";
72 73
	echo "<p/>";
73 74
	echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") .  ">";
......
89 90
		<p>
90 91

  
91 92
<?php
92
	if ($_POST['Submit'] == "Yes") {
93
	if (gettext($_POST['Submit']) == "Yes") {
93 94
		echo gettext("Processing...");
94 95
		exec("/usr/bin/gzip /var/crash/*");
95 96
		$files_to_upload = glob("/var/crash/*");
......
104 105
		} else {
105 106
			echo "Could not find any crash files.";
106 107
		}
107
	} else if($_POST['Submit'] == "No") {
108
	} else if(gettext($_POST['Submit']) == "No") {
108 109
		exec("rm /var/crash/*");
109 110
		Header("Location: /");
110 111
		exit;

Also available in: Unified diff