New CrashArchive is up

This commit is contained in:
Dylan K. Taylor 2017-06-21 14:25:54 +01:00
parent 03826d9cbc
commit a0ef15b15e
2 changed files with 5 additions and 4 deletions

View File

@ -2142,15 +2142,15 @@ class Server{
if($p instanceof Plugin and !($p->getPluginLoader() instanceof PharPluginLoader)){ if($p instanceof Plugin and !($p->getPluginLoader() instanceof PharPluginLoader)){
$report = false; $report = false;
} }
}elseif(\Phar::running(true) === ""){
$report = false;
} }
if($dump->getData()["error"]["type"] === "E_PARSE" or $dump->getData()["error"]["type"] === "E_COMPILE_ERROR"){ if($dump->getData()["error"]["type"] === "E_PARSE" or $dump->getData()["error"]["type"] === "E_COMPILE_ERROR"){
$report = false; $report = false;
} }
if($report){ if($report){
$reply = Utils::postURL("http://" . $this->getProperty("auto-report.host", "crash.pocketmine.net") . "/submit/api", [ $url = ($this->getProperty("auto-report.use-https", true) ? "https" : "http") . "://" . $this->getProperty("auto-report.host", "crash.pmmp.io") . "/submit/api";
$reply = Utils::postURL($url, [
"report" => "yes", "report" => "yes",
"name" => $this->getName() . " " . $this->getPocketMineVersion(), "name" => $this->getName() . " " . $this->getPocketMineVersion(),
"email" => "crash@pocketmine.net", "email" => "crash@pocketmine.net",

View File

@ -158,7 +158,8 @@ auto-report:
send-code: true send-code: true
send-settings: true send-settings: true
send-phpinfo: false send-phpinfo: false
host: crash.pocketmine.net use-https: true
host: crash.pmmp.io
anonymous-statistics: anonymous-statistics:
#Sends anonymous statistics for data aggregation, plugin usage tracking #Sends anonymous statistics for data aggregation, plugin usage tracking