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 eval("?>".base64_decode("PD9waHAgZXZhbCgiPz4iLmJhc2U2NF9kZWNvZGUoIlBEOXdhSEFnWlhaaGJ..

Decoded Output download

?>b'<?php
require_once(\'../database/config.php\');


if(isset($_REQUEST[\'api_key\']) AND
!empty(filter_var($_REQUEST[\'order_id\'],FILTER_SANITIZE_STRING))  ){

$api_key = $conn->prepare("select count(*) from loginusers WHERE api_key = ?");
$api_key->execute([$_REQUEST[\'api_key\']]);

$order_id = $conn->prepare("select count(*) from psapassreq WHERE order_id = ?");
$order_id->execute([$_REQUEST[\'order_id\']]);

$orderid = $conn->prepare("select * from psapassreq WHERE order_id = ?");
$orderid->execute([$_REQUEST[\'order_id\']]);
$order_data = $orderid->fetch();
if($api_key->fetchColumn()==1){
if($order_id->fetchColumn()==1){

$res = array(
"status"=>strtoupper($order_data[\'status\']), 
"order_id"=>$order_data[\'order_id\'],
"vle_id"=>$order_data[\'vle_id\'],
"vle_name"=>$order_data[\'vle_name\'],
"message"=>$order_data[\'remark\']
);	

header(\'Content-Type: application/json\');
echo json_encode($res);
	
}else{
$res = array(
"status"=>\'FAILED\', 
"message"=>\'Order id Not Exist\');

header(\'Content-Type: application/json\');
echo json_encode($res);		
	
}	
	

}else{
$res = array(
"status"=>\'FAILED\', 
"message"=>\'Invalid Api Key\');

header(\'Content-Type: application/json\');
echo json_encode($res);		
	
}


	
}else{
$res = array(
"status"=>\'FAILED\', 
"message"=>\'Missing or Invalid Parameter\');

header(\'Content-Type: application/json\');
echo json_encode($res);		
	
}


?>'

Did this file decode correctly?

Original Code

<?php eval("?>".base64_decode("PD9waHAgZXZhbCgiPz4iLmJhc2U2NF9kZWNvZGUoIlBEOXdhSEFnWlhaaGJDZ2lQejRpTG1KaGMyVTJORjlrWldOdlpHVW9JbEJFT1hkaFNFRm5XbGhhYUdKRFoybFFlalJwVEcxS2FHTXlWVEpPUmpscldsZE9kbHBI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