Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto WkRTH; niG8C: curl_setopt_array($curl, $optarray); goto p0..
Decoded Output download
<? goto WkRTH;
niG8C:
curl_setopt_array($curl, $optarray);
goto p0QwW;
kAIYP:
$optarray_log = $fields;
goto PuHh4;
p0QwW:
$this->Log->toFile(array('Request' => $execMethod, $optarray_log));
goto bK5Jw;
fMFxx:
return $result;
goto fK3Q9;
Z9gf7:
$result = $this->query($method, $fields);
goto VuiF8;
bK5Jw:
$result = curl_exec($curl);
goto Fw4lW;
BgLuj: gW3gB:
goto Z9gf7;
FkyJB: uz6cX:
goto D00r1;
YJdO_: KmS0U:
goto fMFxx;
WGs6W:
switch ($method) {
case 'task.item.addfile':
case 'crm.activity.update':
case 'telephony.externalCall.attachRecord':
goto eVJZs;
default:
goto iY3Sw;
gCBA3:
goto eVJZs;
goto ecp1J;
mhUVF:
$optarray[CURLOPT_TIMEOUT] = $this->currentTimeout;
goto gCBA3;
iY3Sw:
$optarray[CURLOPT_CONNECTTIMEOUT] = $this->currentTimeout;
goto mhUVF;
ecp1J:
}
goto FkyJB;
WkRTH:
if ($this->endRest()) {
goto p4_Gf;
}
goto extud;
pqhjU:
goto pGG4T;
goto UgFHz;
iQH93:
$optarray = array(CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTREDIR => 3, CURLOPT_VERBOSE => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_URL => $url, CURLOPT_POSTFIELDS => $postFields);
goto WGs6W;
D00r1: eVJZs:
goto niG8C;
O2NnN:
$fields["auth"] = $this->token;
goto kAIYP;
NXr5M:
$this->token = encrypt_decrypt("decrypt", $this->getToken());
goto t4f0P;
RFrEj:
$curl = curl_init();
goto iQH93;
UgFHz: p4_Gf:
goto NXr5M;
PpZif:
$result = json_decode($result, true);
goto rdbIu;
PuHh4:
unset($optarray_log["FILE_CONTENT"], $optarray_log["FILE"], $optarray_log["auth"], $optarray_log["token"]);
goto gGicF;
Qdg6X:
curl_close($curl);
goto PpZif;
gGicF:
$execMethod = Methods::load($this->config)->Get($method);
goto ZjBfw;
fu9yj:
file_put_contents($this->config["conf_dir"] . "debug", $result . "\xa", 8);
goto YRWEy;
IaAa4:
var_dump($result);
goto fu9yj;
Fw4lW:
if (!file_exists($this->config['conf_dir'] . 'debug')) {
goto sasZG;
}
goto IaAa4;
mCGyJ:
$this->config["expires"] = 0;
goto uw6Ug;
t4f0P: pGG4T:
goto O2NnN;
extud:
return false;
goto pqhjU;
YRWEy: sasZG:
goto Qdg6X;
Q72Hk:
if (!(isset($result["error"]) && ($result["error"] == "NO_AUTH_FOUND" || $result["error"] == "invalid_token" || $result["error"] == "expired_token"))) {
goto KmS0U;
}
goto mCGyJ;
VuiF8: Tk4bu:
goto YJdO_;
u6a_o:
return false;
goto e5sCh;
A8Ylm:
$postFields = http_build_query($fields);
goto RFrEj;
e5sCh:
goto Tk4bu;
goto BgLuj;
uw6Ug:
if ($this->getTokenAttempt()) {
goto gW3gB;
}
goto u6a_o;
rdbIu:
isset($result["error"]) ? $this->Log->toFile($result) : $this->Log->toFile(array("Response" => $execMethod, "data" => $result));
goto Q72Hk;
ZjBfw:
$url = $this->config["client_server"] . "/rest/" . $execMethod;
goto A8Ylm;
fK3Q9: ?>
Did this file decode correctly?
Original Code
goto WkRTH;
niG8C:
curl_setopt_array($curl, $optarray);
goto p0QwW;
kAIYP:
$optarray_log = $fields;
goto PuHh4;
p0QwW:
$this->Log->toFile(array('Request' => $execMethod, $optarray_log));
goto bK5Jw;
fMFxx:
return $result;
goto fK3Q9;
Z9gf7:
$result = $this->query($method, $fields);
goto VuiF8;
bK5Jw:
$result = curl_exec($curl);
goto Fw4lW;
BgLuj: gW3gB:
goto Z9gf7;
FkyJB: uz6cX:
goto D00r1;
YJdO_: KmS0U:
goto fMFxx;
WGs6W:
switch ($method) {
case 'task.item.addfile':
case 'crm.activity.update':
case 'telephony.externalCall.attachRecord':
goto eVJZs;
default:
goto iY3Sw;
gCBA3:
goto eVJZs;
goto ecp1J;
mhUVF:
$optarray[CURLOPT_TIMEOUT] = $this->currentTimeout;
goto gCBA3;
iY3Sw:
$optarray[CURLOPT_CONNECTTIMEOUT] = $this->currentTimeout;
goto mhUVF;
ecp1J:
}
goto FkyJB;
WkRTH:
if ($this->endRest()) {
goto p4_Gf;
}
goto extud;
pqhjU:
goto pGG4T;
goto UgFHz;
iQH93:
$optarray = array(CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => "\120\x4f\123\x54", CURLOPT_POSTREDIR => 3, CURLOPT_VERBOSE => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_URL => $url, CURLOPT_POSTFIELDS => $postFields);
goto WGs6W;
D00r1: eVJZs:
goto niG8C;
O2NnN:
$fields["\x61\x75\x74\150"] = $this->token;
goto kAIYP;
NXr5M:
$this->token = encrypt_decrypt("\x64\145\x63\x72\171\160\164", $this->getToken());
goto t4f0P;
RFrEj:
$curl = curl_init();
goto iQH93;
UgFHz: p4_Gf:
goto NXr5M;
PpZif:
$result = json_decode($result, true);
goto rdbIu;
PuHh4:
unset($optarray_log["\x46\111\x4c\x45\137\x43\117\x4e\x54\x45\116\124"], $optarray_log["\x46\x49\114\105"], $optarray_log["\141\x75\164\150"], $optarray_log["\x74\x6f\x6b\145\156"]);
goto gGicF;
Qdg6X:
curl_close($curl);
goto PpZif;
gGicF:
$execMethod = Methods::load($this->config)->Get($method);
goto ZjBfw;
fu9yj:
file_put_contents($this->config["\143\x6f\x6e\x66\x5f\x64\x69\162"] . "\x64\x65\x62\165\x67", $result . "\xa", 8);
goto YRWEy;
IaAa4:
var_dump($result);
goto fu9yj;
Fw4lW:
if (!file_exists($this->config['conf_dir'] . 'debug')) {
goto sasZG;
}
goto IaAa4;
mCGyJ:
$this->config["\145\170\x70\151\162\145\163"] = 0;
goto uw6Ug;
t4f0P: pGG4T:
goto O2NnN;
extud:
return false;
goto pqhjU;
YRWEy: sasZG:
goto Qdg6X;
Q72Hk:
if (!(isset($result["\145\162\x72\x6f\x72"]) && ($result["\145\x72\x72\x6f\162"] == "\116\x4f\137\101\x55\x54\x48\x5f\106\117\x55\116\x44" || $result["\x65\162\x72\x6f\162"] == "\151\x6e\x76\x61\x6c\x69\144\x5f\x74\x6f\x6b\x65\x6e" || $result["\145\162\x72\157\162"] == "\145\170\x70\x69\x72\145\x64\137\164\x6f\x6b\145\x6e"))) {
goto KmS0U;
}
goto mCGyJ;
VuiF8: Tk4bu:
goto YJdO_;
u6a_o:
return false;
goto e5sCh;
A8Ylm:
$postFields = http_build_query($fields);
goto RFrEj;
e5sCh:
goto Tk4bu;
goto BgLuj;
uw6Ug:
if ($this->getTokenAttempt()) {
goto gW3gB;
}
goto u6a_o;
rdbIu:
isset($result["\x65\162\x72\157\162"]) ? $this->Log->toFile($result) : $this->Log->toFile(array("\x52\x65\x73\x70\157\x6e\163\145" => $execMethod, "\144\x61\x74\x61" => $result));
goto Q72Hk;
ZjBfw:
$url = $this->config["\x63\x6c\151\x65\156\x74\137\x73\x65\162\166\145\x72"] . "\x2f\162\x65\x73\164\x2f" . $execMethod;
goto A8Ylm;
fK3Q9:
Function Calls
None |
Stats
MD5 | 1aafb2fe38b9540cc244ddb6e24eee1c |
Eval Count | 0 |
Decode Time | 92 ms |