summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-03 17:45:07 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-03 17:45:07 -0500
commit528d5abfa86b4b55ce90fa81be2c3c2183bbaec6 (patch)
tree145514237b5c42e81a537a77ef1f28898d2d44b7 /usr
parent45d72d8215ecf3dc2ba7eff8a8f146a233216d94 (diff)
downloadpfsense-528d5abfa86b4b55ce90fa81be2c3c2183bbaec6.zip
pfsense-528d5abfa86b4b55ce90fa81be2c3c2183bbaec6.tar.gz
Set priv info
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/crash_reporter.php31
1 files changed, 16 insertions, 15 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index 84f2ef7..84008f3 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -32,10 +32,10 @@
*/
##|+PRIV
-##|*IDENT=page-diagnostics-haltsystem
-##|*NAME=Diagnostics: Halt system page
-##|*DESCR=Allow access to the 'Diagnostics: Halt system' page.
-##|*MATCH=halt.php*
+##|*IDENT=page-diagnostics-crash-reporter
+##|*NAME=Crash reporter
+##|*DESCR=Uploads crash reports to pfSense and or deletes crash reports.
+##|*MATCH=crash_reporter.php*
##|-PRIV
require("guiconfig.inc");
@@ -61,20 +61,21 @@ function upload_crash_report($files) {
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
+ return $response;
}
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 " <textarea name='crashreports'>";
- echo " {$crash_reports}";
- echo " </textarea>";
- echo "<p/>";
- echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") . ">";
- echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("No") . ">";
- echo "</p>";
- echo "</form>";
+ 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 " <textarea name='crashreports'>";
+ echo " {$crash_reports}";
+ echo " </textarea>";
+ echo "<p/>";
+ echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("Yes") . ">";
+ echo "<input name=\"Submit\" type=\"submit\" class=\"formbtn\" value=\"" . gettext("No") . ">";
+ echo "</p>";
+ echo "</form>";
}
$pgtitle = array(gettext("Diagnostics"),gettext("Halt system"));
OpenPOWER on IntegriCloud