diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-03 18:20:08 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-06 13:11:52 -0500 |
commit | 49c8f9640f1ae394050f2163c7be6421121a2f26 (patch) | |
tree | 4d34be0d39e05f86629676c65fa46357d577749c /usr/local/www/crash_reporter.php | |
parent | c7f70dbc78d11f7304f2e363850a5fdeb9cfa66e (diff) | |
download | pfsense-49c8f9640f1ae394050f2163c7be6421121a2f26.zip pfsense-49c8f9640f1ae394050f2163c7be6421121a2f26.tar.gz |
gettext()
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-x | usr/local/www/crash_reporter.php | 7 |
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; |