Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

namespace spokkernetwork\DiscordVOIP\Tasks; use spokkernetwork\DiscordVOIP\Main; use pock..

Decoded Output download

<?   namespace spokkernetwork\DiscordVOIP\Tasks; use spokkernetwork\DiscordVOIP\Main; use pocketmine\scheduler\AsyncTask; use pocketmine\Server; class SendTaskAsync extends AsyncTask { private $player, $webhook, $curlopts; public function __construct($player, $webhook, $curlopts) { $this->player = $player; $this->webhook = $webhook; $this->curlopts = $curlopts; } public function onRun() { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $this->webhook); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(unserialize($this->curlopts))); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); $curlerror = curl_error($curl); $responsejson = json_decode($response, true); $success = false; $error = "Erro desconhecido"; if ($curlerror != '') { $error = $curlerror; } elseif (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 204) { $error = $responsejson["message"]; } elseif (curl_getinfo($curl, CURLINFO_HTTP_CODE) == 204 or $response === '') { $success = true; } $result = array("Response" => $response, "Error" => $error, "success" => $success); $this->setResult($result, true); } public function onCompletion(Server $server) { $plugin = $server->getPluginManager()->getPlugin("DiscordVOIP"); if (!$plugin instanceof Main) { return; } if (!$plugin->isEnabled()) { return; } $plugin->notify($this->player, $this->getResult()); } } 
 ?>

Did this file decode correctly?

Original Code

 namespace spokkernetwork\DiscordVOIP\Tasks; use spokkernetwork\DiscordVOIP\Main; use pocketmine\scheduler\AsyncTask; use pocketmine\Server; class SendTaskAsync extends AsyncTask { private $player, $webhook, $curlopts; public function __construct($player, $webhook, $curlopts) { $this->player = $player; $this->webhook = $webhook; $this->curlopts = $curlopts; } public function onRun() { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $this->webhook); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(unserialize($this->curlopts))); curl_setopt($curl, CURLOPT_HTTPHEADER, array("\103\157\x6e\164\x65\x6e\x74\55\124\x79\x70\x65\72\x20\x61\x70\x70\x6c\x69\x63\x61\164\151\x6f\x6e\x2f\152\x73\x6f\156")); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($curl); $curlerror = curl_error($curl); $responsejson = json_decode($response, true); $success = false; $error = "\105\162\162\x6f\x20\144\145\x73\143\157\156\x68\x65\143\x69\144\x6f"; if ($curlerror != '') { $error = $curlerror; } elseif (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 204) { $error = $responsejson["\155\x65\x73\x73\141\147\145"]; } elseif (curl_getinfo($curl, CURLINFO_HTTP_CODE) == 204 or $response === '') { $success = true; } $result = array("\122\x65\163\x70\157\x6e\x73\x65" => $response, "\105\x72\162\x6f\162" => $error, "\x73\165\143\x63\145\163\163" => $success); $this->setResult($result, true); } public function onCompletion(Server $server) { $plugin = $server->getPluginManager()->getPlugin("\104\151\x73\x63\157\x72\x64\x56\x4f\x49\x50"); if (!$plugin instanceof Main) { return; } if (!$plugin->isEnabled()) { return; } $plugin->notify($this->player, $this->getResult()); } }

Function Calls

None

Variables

None

Stats

MD5 de4b1b2028af5891d7d85ed5507d31cd
Eval Count 0
Decode Time 42 ms