summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-03 18:20:08 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-06 13:11:52 -0500
commit49c8f9640f1ae394050f2163c7be6421121a2f26 (patch)
tree4d34be0d39e05f86629676c65fa46357d577749c /usr/local/www/crash_reporter.php
parentc7f70dbc78d11f7304f2e363850a5fdeb9cfa66e (diff)
downloadpfsense-49c8f9640f1ae394050f2163c7be6421121a2f26.zip
pfsense-49c8f9640f1ae394050f2163c7be6421121a2f26.tar.gz
gettext()
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index aef48fb..76ce455 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -67,7 +67,8 @@ function upload_crash_report($files) {
function output_crash_reporter_html($crash_reports) {
echo "<strong>" . gettext("Unfortunately we have detected a kernel crash (panic).") . "</strong></p>";
echo "<strong>" . gettext("Would you like to submit the crash debug logs to the pfSense developers for inspection?") . "</strong></p>";
- echo "<p>Contents of crash reports:<br/>";
+ echo "<p>";
+ echo gettext("Contents of crash reports") . ":<br/>";
echo "<textarea name='crashreports'>{$crash_reports}</textarea>";
echo "<p/>";
echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") . ">";
@@ -89,7 +90,7 @@ include('head.inc');
<p>
<?php
- if ($_POST['Submit'] == "Yes") {
+ if (gettext($_POST['Submit']) == "Yes") {
echo gettext("Processing...");
exec("/usr/bin/gzip /var/crash/*");
$files_to_upload = glob("/var/crash/*");
@@ -104,7 +105,7 @@ include('head.inc');
} else {
echo "Could not find any crash files.";
}
- } else if($_POST['Submit'] == "No") {
+ } else if(gettext($_POST['Submit']) == "No") {
exec("rm /var/crash/*");
Header("Location: /");
exit;
OpenPOWER on IntegriCloud