Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if (isset($redeem_check) && isset($access_key)) { $response = array(); if ($key..
Decoded Output download
<? if (isset($redeem_check) && isset($access_key)) {
$response = array();
if ($key != $access_key) {
$response["error"] = "true";
$response["message"] = "Invalid Access Key";
print_r(json_encode($response));
return false;
}
$user = array();
$get_reward = "SELECT * FROM reward_list WHERE u_id = '{$redeem_check}'";
$send_reward = mysqli_query($link, $get_reward);
while ($raw = mysqli_fetch_assoc($send_reward)) {
$index["id"] = $raw["id"];
$index["u_id"] = $raw["u_id"];
$index["package_name"] = $raw["package_name"];
$index["p_details"] = $raw["p_details"];
$index["coins_used"] = $raw["coins_used"];
$index["symbol"] = $raw["symbol"];
$index["amount"] = $raw["amount"];
$index["time"] = $raw["time"];
$index["date"] = $raw["date"];
$index["status"] = $raw["status"];
$index["package_id"] = $raw["package_id"];
$get_img = "SELECT * FROM reward WHERE id = " . $raw["package_id"];
$send_img = mysqli_query($link, $get_img); $img = mysqli_fetch_assoc($send_img);
$index["image"] = $img["image"];
array_push($user, $index);
} if (mysqli_num_rows($send_reward) > 0) {
$response["error"] = "false";
$response["data"] = $user;
} else {
$response["error"] = "true";
$response["message"] = "No data found!";
}
print_r(json_encode($response));
}
?>
Did this file decode correctly?
Original Code
if (isset($redeem_check) && isset($access_key)) {
$response = array();
if ($key != $access_key) {
$response["\145\162\162\157\162"] = "\x74\x72\x75\145";
$response["\155\x65\163\x73\x61\147\x65"] = "\111\x6e\x76\141\154\x69\x64\x20\x41\x63\x63\x65\163\163\x20\113\145\x79";
print_r(json_encode($response));
return false;
}
$user = array();
$get_reward = "\123\x45\x4c\105\103\x54\x20\x2a\x20\106\122\117\x4d\40\x72\145\167\x61\162\x64\x5f\154\x69\x73\164\40\x57\110\105\x52\105\40\165\x5f\151\x64\40\x3d\40\x27{$redeem_check}\x27";
$send_reward = mysqli_query($link, $get_reward);
while ($raw = mysqli_fetch_assoc($send_reward)) {
$index["\151\144"] = $raw["\x69\144"];
$index["\x75\x5f\151\x64"] = $raw["\165\137\x69\x64"];
$index["\x70\x61\x63\153\x61\x67\145\x5f\156\141\x6d\145"] = $raw["\160\x61\143\153\141\147\x65\x5f\156\141\155\x65"];
$index["\x70\137\x64\x65\164\x61\151\x6c\x73"] = $raw["\x70\x5f\144\145\164\141\151\154\163"];
$index["\143\x6f\x69\x6e\x73\x5f\x75\163\145\x64"] = $raw["\x63\157\x69\x6e\x73\x5f\x75\x73\x65\144"];
$index["\163\x79\x6d\142\x6f\x6c"] = $raw["\x73\171\x6d\x62\x6f\x6c"];
$index["\141\155\157\165\156\164"] = $raw["\x61\155\157\165\x6e\164"];
$index["\x74\x69\155\145"] = $raw["\164\151\x6d\x65"];
$index["\x64\141\164\x65"] = $raw["\144\141\x74\145"];
$index["\163\x74\x61\x74\165\163"] = $raw["\163\164\x61\x74\165\163"];
$index["\x70\141\143\x6b\141\147\145\137\x69\144"] = $raw["\x70\x61\x63\153\x61\147\x65\x5f\151\x64"];
$get_img = "\x53\x45\x4c\x45\x43\x54\x20\x2a\x20\x46\x52\117\x4d\x20\x72\145\x77\x61\x72\144\40\x57\x48\x45\122\x45\x20\151\x64\x20\75\40" . $raw["\x70\x61\143\x6b\141\147\x65\x5f\x69\144"];
$send_img = mysqli_query($link, $get_img); $img = mysqli_fetch_assoc($send_img);
$index["\151\155\141\147\x65"] = $img["\151\155\x61\x67\x65"];
array_push($user, $index);
} if (mysqli_num_rows($send_reward) > 0) {
$response["\x65\162\162\157\162"] = "\x66\x61\154\x73\145";
$response["\x64\x61\x74\141"] = $user;
} else {
$response["\145\162\162\x6f\x72"] = "\x74\x72\x75\x65";
$response["\x6d\145\163\x73\141\x67\145"] = "\116\x6f\x20\x64\x61\164\x61\40\146\x6f\165\156\144\x21";
}
print_r(json_encode($response));
}
Function Calls
mysqli_query | 1 |
Stats
MD5 | 4a0d75da2f3095e60b3889a2759783be |
Eval Count | 0 |
Decode Time | 61 ms |