Adding crashreporterurl for rebrands

This commit is contained in:
Scott Ullrich 2011-02-07 21:52:29 -05:00
parent f75a45753b
commit 4b665f7489
2 changed files with 2 additions and 1 deletions

View File

@ -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"),

View File

@ -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);