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 udcLt; q2gwf: $access = $_SESSION["\x6c\157\147\147\145\144\137\x75\163\x65\..

Decoded Output download

<?php 
goto udcLt; 
q2gwf: 
$access = $_SESSION["logged_user"]["acesso"]; 
goto wsC6j; 
zpeP2: 
$action = "show"; 
goto uKthP; 
z_d6b: 
$local = $_GET["local"]; 
$tecnico = $_GET["tecnico"]; 
$data1 = $_GET["data1"]; 
$data1 = substr($data1, 0, strpos($data1, "T")) . "'"; 
$data2 = $_GET["data2"]; 
$data2 = substr($data2, 0, strpos($data2, "T")) . "'"; 
require_once "connect.php"; 
if ($local == "*" && $tecnico == "*") { 
    $stmt = $conn->prepare("SELECT *, COUNT(id) AS catnumbers FROM lte WHERE (data>= {$data1} AND data<= {$data2})"); 
    $stmt->execute(); 
    $results = $stmt->fetchAll(PDO::FETCH_OBJ); 
    echo json_encode($results); 
} elseif ($local == "*" && $tecnico != "*") { 
    $stmt = $conn->prepare("SELECT *, COUNT(id) AS catnumbers FROM chamados WHERE tecnico={$tecnico} AND (data>= {$data1} AND data<= {$data2})"); 
    $stmt->execute(); 
    $results = $stmt->fetchAll(PDO::FETCH_OBJ); 
    echo json_encode($results); 
} else { 
    $stmt = $conn->prepare("SELECT *, COUNT(id) AS catnumbers FROM chamados WHERE local={$local} AND tecnico={$tecnico} AND (data>= {$data1} AND data<= {$data2})"); 
    $stmt->execute(); 
    $results = $stmt->fetchAll(PDO::FETCH_OBJ); 
    echo json_encode($results); 
} 
goto UAYNy; 
Lm1NE: 
$acc = showAllowedLabel($acl, $role, $page, $action); 
goto z_d6b; 
NENnu: 
include "inc/Acl.php"; 
goto q2gwf; 
tZnVM: 
include "inc/functionscpp.php"; 
goto NENnu; 
dj9I8: 
$page = "ltereports"; 
goto zpeP2; 
uKthP: 
$acl = rolesPermissions(new LizACL\Acl()); 
goto Lm1NE; 
udcLt: 
session_start(); 
goto tZnVM; 
wsC6j: 
$role = $access; 
goto dj9I8; 
UAYNy: ?>

Did this file decode correctly?

Original Code

<?php
goto udcLt;
q2gwf:
$access = $_SESSION["\x6c\157\147\147\145\144\137\x75\163\x65\x72"]["\x61\x63\x65\x73\x73\157"];
goto wsC6j;
zpeP2:
$action = "\x73\150\x6f\167";
goto uKthP;
z_d6b:
$local = $_GET["\154\157\x63\x61\x6c"];
$tecnico = $_GET["\164\x65\x63\156\151\143\x6f"];
$data1 = $_GET["\x64\x61\164\141\61"];
$data1 = substr($data1, 0, strpos($data1, "\x54")) . "\x27";
$data2 = $_GET["\144\x61\164\141\62"];
$data2 = substr($data2, 0, strpos($data2, "\124")) . "\x27";
require_once "\143\157\156\x6e\145\x63\x74\56\160\x68\160";
if ($local == "\52" && $tecnico == "\52") {
    $stmt = $conn->prepare("\123\x45\x4c\105\x43\124\x20\52\54\x20\103\x4f\125\x4e\x54\x28\151\x64\x29\40\x41\x53\x20\x63\x61\164\156\x75\x6d\x62\x65\162\163\x20\106\x52\x4f\115\40\x6c\164\145\x20\x57\110\x45\122\105\40\x28\144\141\x74\141\76\x3d\x20{$data1}\40\x41\116\x44\x20\x64\x61\164\x61\x3c\75\x20{$data2}\51");
    $stmt->execute();
    $results = $stmt->fetchAll(PDO::FETCH_OBJ);
    echo json_encode($results);
} elseif ($local == "\x2a" && $tecnico != "\x2a") {
    $stmt = $conn->prepare("\123\105\114\x45\x43\124\x20\52\x2c\40\103\x4f\125\x4e\124\x28\151\x64\51\40\x41\123\40\x63\x61\164\156\x75\155\142\x65\162\x73\40\106\122\117\x4d\x20\143\x68\x61\x6d\141\x64\157\163\x20\x57\110\105\x52\105\40\x74\x65\x63\156\151\x63\157\75{$tecnico}\40\101\x4e\x44\x20\50\144\141\x74\141\76\x3d\x20{$data1}\40\101\x4e\104\40\x64\x61\x74\x61\74\x3d\x20{$data2}\51");
    $stmt->execute();
    $results = $stmt->fetchAll(PDO::FETCH_OBJ);
    echo json_encode($results);
} else {
    $stmt = $conn->prepare("\123\105\114\x45\103\124\x20\52\54\40\x43\117\125\116\124\x28\x69\x64\x29\x20\101\x53\x20\143\141\164\x6e\165\155\142\x65\x72\163\x20\106\122\x4f\115\x20\143\x68\141\155\141\144\x6f\163\x20\x57\110\105\122\x45\40\x6c\x6f\143\x61\154\x3d{$local}\x20\x41\x4e\x44\x20\164\x65\x63\156\151\143\x6f\x3d{$tecnico}\x20\101\116\x44\40\x28\x64\x61\x74\x61\76\75\40{$data1}\x20\101\x4e\104\40\144\141\164\141\x3c\x3d\x20{$data2}\51");
    $stmt->execute();
    $results = $stmt->fetchAll(PDO::FETCH_OBJ);
    echo json_encode($results);
}
goto UAYNy;
Lm1NE:
$acc = showAllowedLabel($acl, $role, $page, $action);
goto z_d6b;
NENnu:
include "\x69\x6e\143\57\x41\x63\x6c\x2e\160\x68\x70";
goto q2gwf;
tZnVM:
include "\151\x6e\x63\57\x66\165\x6e\143\164\x69\x6f\x6e\163\x63\160\x70\x2e\x70\150\x70";
goto NENnu;
dj9I8:
$page = "\x6c\x74\x65\162\145\x70\157\x72\x74\x73";
goto zpeP2;
uKthP:
$acl = rolesPermissions(new LizACL\Acl());
goto Lm1NE;
udcLt:
session_start();
goto tZnVM;
wsC6j:
$role = $access;
goto dj9I8;
UAYNy: ?>

Function Calls

None

Variables

None

Stats

MD5 275433a341850a0f63fa7c3f3cd569e3
Eval Count 0
Decode Time 40 ms