Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto njT_b; mtD0N: if ($abonoGet == 2 && $_POST["\x73\x74\x61\x74\165\x73"] == "\..
Decoded Output download
<?php
goto njT_b;
mtD0N:
if ($abonoGet == 2 && $_POST["status"] == "Retorno") {
$user = $_POST["iduser"];
$user_get = get_item("Usuarios", $user);
$user_get->abono = 0;
$user_get->saldodias = 0;
$user_get->feriaspd = 0;
R::store($user_get);
}
goto jIj_v;
Fvi_H:
include "inc/config.php";
goto zIcKC;
EjhsT:
$ferias->decimo = $_POST["decimop"];
goto d8Xvh;
njT_b:
require_once "_db.php";
goto MuxHf;
u2Wb6:
$ferias->abono = (int) $abonoGet;
goto EjhsT;
P0Vg1:
$abonoGet = $_POST["abonop"];
goto ivhVp;
u8e9I:
$ferias->status = $_POST["status"];
goto u2Wb6;
MuxHf:
session_start();
goto Fvi_H;
aVmSi:
$response = new Result();
goto tAGDm;
zIcKC:
include "inc/functions.php";
goto ngQ7z;
V_27z:
$log->hora = date("Y-m-d\TH:i:s");
goto Fl87x;
dZJZr:
$log = R::dispense("logs");
goto V_27z;
eGPB1:
$log->mensagem = $_SESSION["logged_user"]["nome"] . " modificou as frias de: [" . $_POST["name"] . "]" . "ID:[" . $_POST["id"] . "] Inicio:[" . $_POST["start"] . "] Fim:[" . $_POST["end"] . "] Abono:[" . $_POST["abonop"] . "] ";
goto P0Vg1;
Fl87x:
$log->ip = $_SERVER["REMOTE_ADDR"];
goto eGPB1;
ngQ7z:
$ferias = get_item("Ferias", $_POST["id"]);
goto dZJZr;
rC4c0:
$ferias->name = $_POST["name"];
goto GSBF4;
uTeS_:
R::store($log);
goto tOdot;
p7do9:
$ferias->end = $_POST["end"];
goto ST3TW;
R67cP:
header("Content-Type: application/json");
goto vpaJg;
jIj_v:
R::store($ferias);
goto uTeS_;
ivhVp:
$abonoGet = substr($abonoGet, 0, 2);
goto rC4c0;
d8Xvh:
switch ($_POST["status"]) {
case "Aprovado":
$ferias->color = "#38761d";
break;
case "Pendente":
$ferias->color = "#e69138";
break;
case "Em gozo":
$ferias->color = "#FFC236";
break;
case "Retorno":
$ferias->color = "#4a4a4a";
break;
}
goto mtD0N;
tOdot:
class Result
{
}
goto aVmSi;
pS3Np:
$response->message = "Update successful";
goto R67cP;
tAGDm:
$response->result = "OK";
goto pS3Np;
GSBF4:
$ferias->start = $_POST["start"];
goto p7do9;
ST3TW:
$ferias->team = $_POST["teamm"];
goto u8e9I;
vpaJg:
echo json_encode($response); ?>
Did this file decode correctly?
Original Code
<?php
goto njT_b;
mtD0N:
if ($abonoGet == 2 && $_POST["\x73\x74\x61\x74\165\x73"] == "\122\x65\x74\157\x72\x6e\157") {
$user = $_POST["\151\x64\x75\x73\145\162"];
$user_get = get_item("\x55\x73\165\x61\x72\151\157\163", $user);
$user_get->abono = 0;
$user_get->saldodias = 0;
$user_get->feriaspd = 0;
R::store($user_get);
}
goto jIj_v;
Fvi_H:
include "\151\x6e\x63\x2f\x63\157\156\146\151\147\x2e\x70\x68\160";
goto zIcKC;
EjhsT:
$ferias->decimo = $_POST["\x64\x65\143\x69\x6d\157\x70"];
goto d8Xvh;
njT_b:
require_once "\137\144\142\56\160\x68\160";
goto MuxHf;
u2Wb6:
$ferias->abono = (int) $abonoGet;
goto EjhsT;
P0Vg1:
$abonoGet = $_POST["\141\x62\x6f\156\x6f\x70"];
goto ivhVp;
u8e9I:
$ferias->status = $_POST["\163\x74\141\x74\x75\163"];
goto u2Wb6;
MuxHf:
session_start();
goto Fvi_H;
aVmSi:
$response = new Result();
goto tAGDm;
zIcKC:
include "\x69\x6e\143\57\146\165\156\143\164\151\157\x6e\x73\56\160\x68\x70";
goto ngQ7z;
V_27z:
$log->hora = date("\x59\55\x6d\x2d\x64\x5c\x54\x48\72\151\72\x73");
goto Fl87x;
dZJZr:
$log = R::dispense("\x6c\157\147\x73");
goto V_27z;
eGPB1:
$log->mensagem = $_SESSION["\154\x6f\147\147\x65\144\137\x75\x73\x65\162"]["\x6e\x6f\155\x65"] . "\x20\x6d\157\144\x69\x66\151\x63\x6f\x75\x20\141\163\40\146\xc3\251\x72\x69\141\x73\x20\x64\145\72\40\x5b" . $_POST["\x6e\x61\155\145"] . "\135" . "\x49\x44\72\133" . $_POST["\151\x64"] . "\x5d\x20\x49\156\151\143\x69\157\72\133" . $_POST["\163\x74\141\162\164"] . "\x5d\x20\x46\151\155\x3a\133" . $_POST["\145\156\144"] . "\x5d\40\101\x62\x6f\x6e\157\72\133" . $_POST["\x61\x62\157\156\157\x70"] . "\x5d\40";
goto P0Vg1;
Fl87x:
$log->ip = $_SERVER["\x52\x45\115\117\x54\105\137\101\x44\x44\x52"];
goto eGPB1;
ngQ7z:
$ferias = get_item("\x46\145\162\x69\x61\x73", $_POST["\x69\144"]);
goto dZJZr;
rC4c0:
$ferias->name = $_POST["\156\x61\x6d\145"];
goto GSBF4;
uTeS_:
R::store($log);
goto tOdot;
p7do9:
$ferias->end = $_POST["\x65\156\144"];
goto ST3TW;
R67cP:
header("\x43\x6f\156\164\145\156\164\55\124\x79\160\145\72\x20\141\x70\160\x6c\x69\x63\141\164\x69\x6f\156\x2f\152\x73\x6f\x6e");
goto vpaJg;
jIj_v:
R::store($ferias);
goto uTeS_;
ivhVp:
$abonoGet = substr($abonoGet, 0, 2);
goto rC4c0;
d8Xvh:
switch ($_POST["\x73\164\x61\164\x75\163"]) {
case "\x41\x70\x72\x6f\166\x61\144\x6f":
$ferias->color = "\43\63\x38\67\x36\61\144";
break;
case "\x50\x65\x6e\144\x65\x6e\x74\145":
$ferias->color = "\x23\145\66\x39\61\x33\x38";
break;
case "\105\155\40\x67\157\x7a\x6f":
$ferias->color = "\43\106\x46\x43\62\63\66";
break;
case "\122\145\x74\x6f\162\x6e\157":
$ferias->color = "\43\x34\141\64\141\64\x61";
break;
}
goto mtD0N;
tOdot:
class Result
{
}
goto aVmSi;
pS3Np:
$response->message = "\x55\x70\144\141\x74\x65\40\x73\x75\x63\x63\145\163\x73\x66\165\154";
goto R67cP;
tAGDm:
$response->result = "\117\x4b";
goto pS3Np;
GSBF4:
$ferias->start = $_POST["\x73\x74\141\162\164"];
goto p7do9;
ST3TW:
$ferias->team = $_POST["\164\x65\x61\155\x6d"];
goto u8e9I;
vpaJg:
echo json_encode($response);
Function Calls
None |
Stats
MD5 | 6f84079a9a901ec9b229547a29a1cef8 |
Eval Count | 0 |
Decode Time | 47 ms |