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 iPE2q; iPE2q: session_start(); goto yYKEb; vOb8_: $acl = rolesPermissions..
Decoded Output download
<?php
goto iPE2q;
iPE2q:
session_start();
goto yYKEb;
vOb8_:
$acl = rolesPermissions(new LizACL\Acl());
goto lzKrL;
yYKEb:
include "inc/functionscpp.php";
goto IsRKm;
T23ox:
$role = $access;
goto E0CeJ;
x48rO:
$access = $_SESSION["logged_user"]["acesso"];
goto T23ox;
E0CeJ:
$page = "dados";
goto pajWN;
pajWN:
$action = "add";
goto vOb8_;
IsRKm:
include "inc/Acl.php";
goto x48rO;
lzKrL:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto r0WII;
r0WII:
if ($acc == "False") {
GoToNow("/index.php?action=noaccess");
} else {
include "inc/config.php";
include "inc/functions.php";
if (isset($_POST["nref"]) && isset($_POST["categ"]) && isset($_POST["resp"])) {
$id = $_POST["nref"];
$duply = get_itens("Chamados");
$duply = get_itens_query("SELECT * FROM chamados WHERE nref = {$id}");
if ($duply) {
GoToNow("/chamados.php?action=error");
} else {
$i = R::dispense("Chamados");
$log = R::dispense("logs");
$log->hora = date("Y-m-d\TH:i:s");
$log->ip = $_SERVER["REMOTE_ADDR"];
$log->mensagem = $_SESSION["logged_user"]["nome"] . " adicionou um chamado com o ttulo de [" . $_POST["titulo"] . "]" . " Categoria:[" . $_POST["categ"] . "]" . " Nref:" . "[" . $_POST["nref"] . "]";
$i->nref = $_POST["nref"];
$i->titulo = $_POST["titulo"];
$i->dataat = $_POST["dataat"];
$i->superint = $_POST["superint"];
$i->tiposerv = $_POST["tiposerv"];
$i->descr = $_POST["descr"];
$i->categ = $_POST["categ"];
$i->resp = $_POST["resp"];
$i->priori = $_POST["priori"];
$i->obs = $_POST["obs"];
$i->datanorma = $_POST["datanorma"];
$i->solucaodesc = $_POST["solucaodesc"];
$dataat = $_POST["dataat"];
$datanorma = $_POST["datanorma"];
$pend1 = $_POST["pend1"];
$pend2 = $_POST["pend2"];
$atuacao = new DateTime("{$dataat}");
$norma = new DateTime("{$datanorma}");
$diff_atnorma = $atuacao->diff($norma);
$dias_atnorma = (int) ($diff_atnorma->d * 24);
$horas_atnorma = $dias_atnorma * 60 + $diff_atnorma->h * 60 + $diff_atnorma->i;
$inicio_pend = new DateTime("{$pend1}");
$fim_pend = new DateTime("{$pend2}");
$diff_pend = $inicio_pend->diff($fim_pend);
$dias_pend = (int) ($diff_pend->d * 24);
$horas_pend = $dias_pend * 60 + $diff_pend->h * 60 + $diff_pend->i;
$hhpend = (int) ($horas_pend / 60);
$rhhpend = sprintf("%02d", $hhpend);
$mmpend = $horas_pend % 60;
$mmpendd = sprintf("%02d", $mmpend);
$totalpend = "{$rhhpend}:{$mmpendd}";
$i->pend = $totalpend;
$horas_resoluc = $horas_atnorma - $horas_pend;
$horas = (int) ($horas_resoluc / 60);
$hrss = sprintf("%02d", $horas);
$minutos = $horas_resoluc % 60;
$mintt = sprintf("%02d", $minutos);
$total = "{$hrss}:{$mintt}";
$totalvar = substr($total, 0, 1);
if ($totalvar == "-") {
$i->resoluc = 0;
} else {
$i->resoluc = $total;
}
$i->resoluc = $total;
$sla2h = "02:00";
$sla12h = "12:00";
if ($total <= $sla2h) {
$i->sla = "2H";
}
if ($total > $sla2h) {
$i->sla = "12H";
}
if ($total > $sla12h) {
$i->sla = "48H";
}
R::store($i);
R::store($log);
GoToNow("/chamados.php?action=create");
}
} else {
GoToNow("/chamados.php");
}
} ?>
Did this file decode correctly?
Original Code
<?php
goto iPE2q;
iPE2q:
session_start();
goto yYKEb;
vOb8_:
$acl = rolesPermissions(new LizACL\Acl());
goto lzKrL;
yYKEb:
include "\151\156\x63\x2f\x66\165\156\x63\x74\151\157\156\163\143\160\x70\56\160\x68\160";
goto IsRKm;
T23ox:
$role = $access;
goto E0CeJ;
x48rO:
$access = $_SESSION["\154\x6f\147\147\145\144\137\165\163\x65\162"]["\141\143\145\x73\163\x6f"];
goto T23ox;
E0CeJ:
$page = "\x64\141\144\x6f\163";
goto pajWN;
pajWN:
$action = "\141\x64\144";
goto vOb8_;
IsRKm:
include "\x69\156\x63\x2f\x41\143\x6c\56\x70\150\x70";
goto x48rO;
lzKrL:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto r0WII;
r0WII:
if ($acc == "\x46\141\154\163\145") {
GoToNow("\57\x69\x6e\x64\145\170\x2e\160\x68\160\77\141\x63\164\x69\x6f\156\75\156\157\x61\143\143\x65\x73\x73");
} else {
include "\x69\156\143\x2f\143\157\x6e\146\151\147\56\160\150\160";
include "\151\156\143\x2f\x66\165\x6e\x63\164\x69\157\156\163\x2e\160\150\160";
if (isset($_POST["\156\162\145\146"]) && isset($_POST["\x63\141\x74\x65\147"]) && isset($_POST["\x72\x65\x73\x70"])) {
$id = $_POST["\156\x72\x65\x66"];
$duply = get_itens("\x43\x68\141\x6d\x61\144\x6f\x73");
$duply = get_itens_query("\123\x45\114\105\x43\124\40\52\40\x46\x52\x4f\x4d\40\x63\150\x61\x6d\141\144\157\x73\x20\127\x48\105\122\x45\x20\x6e\x72\145\x66\40\75\x20{$id}");
if ($duply) {
GoToNow("\x2f\x63\150\141\155\x61\x64\x6f\x73\56\x70\150\160\77\141\x63\164\151\157\x6e\x3d\145\162\x72\x6f\162");
} else {
$i = R::dispense("\103\150\141\x6d\x61\x64\157\x73");
$log = R::dispense("\154\157\147\x73");
$log->hora = date("\x59\x2d\155\55\x64\x5c\124\x48\72\x69\x3a\163");
$log->ip = $_SERVER["\122\x45\x4d\117\124\105\137\x41\x44\104\x52"];
$log->mensagem = $_SESSION["\154\157\147\147\145\x64\x5f\165\x73\x65\162"]["\x6e\157\155\145"] . "\40\x61\x64\x69\143\x69\x6f\x6e\x6f\165\x20\165\155\x20\143\150\141\x6d\x61\144\x6f\40\x63\157\155\40\x6f\40\x74\xc3\xad\x74\x75\x6c\x6f\40\144\145\40\x5b" . $_POST["\164\x69\164\165\154\157"] . "\135" . "\40\x43\x61\x74\x65\147\x6f\162\x69\x61\x3a\x5b" . $_POST["\143\141\164\145\147"] . "\x5d" . "\x20\x4e\x72\145\146\x3a" . "\133" . $_POST["\x6e\x72\x65\x66"] . "\135";
$i->nref = $_POST["\156\x72\x65\146"];
$i->titulo = $_POST["\164\151\164\x75\x6c\x6f"];
$i->dataat = $_POST["\x64\x61\x74\x61\x61\x74"];
$i->superint = $_POST["\x73\165\x70\x65\162\x69\156\164"];
$i->tiposerv = $_POST["\x74\151\x70\x6f\x73\145\162\166"];
$i->descr = $_POST["\x64\x65\x73\143\x72"];
$i->categ = $_POST["\143\x61\164\145\147"];
$i->resp = $_POST["\162\145\x73\x70"];
$i->priori = $_POST["\x70\162\x69\x6f\x72\151"];
$i->obs = $_POST["\x6f\x62\x73"];
$i->datanorma = $_POST["\x64\141\x74\x61\x6e\x6f\x72\x6d\x61"];
$i->solucaodesc = $_POST["\x73\157\x6c\165\143\141\157\144\145\163\x63"];
$dataat = $_POST["\x64\x61\164\141\x61\x74"];
$datanorma = $_POST["\144\141\164\x61\156\x6f\x72\155\x61"];
$pend1 = $_POST["\x70\x65\156\x64\x31"];
$pend2 = $_POST["\x70\x65\156\x64\62"];
$atuacao = new DateTime("{$dataat}");
$norma = new DateTime("{$datanorma}");
$diff_atnorma = $atuacao->diff($norma);
$dias_atnorma = (int) ($diff_atnorma->d * 24);
$horas_atnorma = $dias_atnorma * 60 + $diff_atnorma->h * 60 + $diff_atnorma->i;
$inicio_pend = new DateTime("{$pend1}");
$fim_pend = new DateTime("{$pend2}");
$diff_pend = $inicio_pend->diff($fim_pend);
$dias_pend = (int) ($diff_pend->d * 24);
$horas_pend = $dias_pend * 60 + $diff_pend->h * 60 + $diff_pend->i;
$hhpend = (int) ($horas_pend / 60);
$rhhpend = sprintf("\x25\60\62\144", $hhpend);
$mmpend = $horas_pend % 60;
$mmpendd = sprintf("\45\60\62\144", $mmpend);
$totalpend = "{$rhhpend}\x3a{$mmpendd}";
$i->pend = $totalpend;
$horas_resoluc = $horas_atnorma - $horas_pend;
$horas = (int) ($horas_resoluc / 60);
$hrss = sprintf("\x25\x30\x32\144", $horas);
$minutos = $horas_resoluc % 60;
$mintt = sprintf("\45\x30\x32\144", $minutos);
$total = "{$hrss}\x3a{$mintt}";
$totalvar = substr($total, 0, 1);
if ($totalvar == "\x2d") {
$i->resoluc = 0;
} else {
$i->resoluc = $total;
}
$i->resoluc = $total;
$sla2h = "\x30\62\x3a\60\60";
$sla12h = "\x31\x32\72\x30\60";
if ($total <= $sla2h) {
$i->sla = "\x32\x48";
}
if ($total > $sla2h) {
$i->sla = "\x31\x32\110";
}
if ($total > $sla12h) {
$i->sla = "\64\x38\110";
}
R::store($i);
R::store($log);
GoToNow("\57\x63\x68\x61\x6d\x61\x64\x6f\163\56\160\150\x70\x3f\141\143\x74\x69\x6f\x6e\75\143\162\145\141\164\145");
}
} else {
GoToNow("\57\143\150\x61\x6d\x61\144\157\x73\x2e\x70\x68\160");
}
}
Function Calls
None |
Stats
MD5 | a1481ecaee1554d832d82d61d4feabfd |
Eval Count | 0 |
Decode Time | 49 ms |