From 4b665f7489a7a0040b759f2e93f2e2b7f4d06eec Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 7 Feb 2011 21:52:29 -0500 Subject: [PATCH] Adding crashreporterurl for rebrands --- etc/inc/globals.inc | 1 + usr/local/www/crash_reporter.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 0b46ef00a2..662bb51c50 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -89,6 +89,7 @@ $g = array( "disablehelpmenu" => false, "disablehelpicon" => false, "disablecrashreporter" => false, + "crashreporterurl" => "http://crashreporter.pfsense.org/crash_reporter.php", "debug" => false, "latest_config" => "7.6", "nopkg_platforms" => array("cdrom"), diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index 0995b577c1..1da47b3267 100755 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -54,7 +54,7 @@ function upload_crash_report($files) { curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)"); - curl_setopt($ch, CURLOPT_URL, "http://crashreporter.pfsense.org/crash_reporter.php"); + curl_setopt($ch, CURLOPT_URL, $g['crashreporterurl']); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $response = curl_exec($ch);