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($_POST["submit_sort_by_id"])) { $ENC["ctrl_key"] === $ctrl_key ? : exit("Odmowa ..
Decoded Output download
<? if (isset($_POST["submit_sort_by_id"])) { $ENC["ctrl_key"] === $ctrl_key ? : exit("Odmowa dostpu"); $CLEAN_sort_by_id = CLN_txt($_REQUEST["sort_by_id"]); if ($CLEAN_sort_by_id != "") { $rows = $db->get_results($db->prepare(" SELECT id_file FROM file LEFT JOIN acquisition_of_goods ON file.id_acquisition_of_goods = acquisition_of_goods.id_acquisition_of_goods WHERE CONVERT(".aes_dec("acquisition_of_goods_id_enc")." USING utf8) LIKE %s AND acquisition_of_goods_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN contract ON file.id_contract = contract.id_contract WHERE CONVERT(".aes_dec("contract_id_enc")." USING utf8) LIKE %s AND contract_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN `order` ON file.id_order = order.id_order WHERE CONVERT(".aes_dec("order_id_enc")." USING utf8) LIKE %s AND order_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN transport ON file.id_transport = transport.id_transport WHERE CONVERT(".aes_dec("transport_id_enc")." USING utf8) LIKE %s AND transport_submitted = '1' ", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%")); $id_file_ARRAY = array(0); foreach ($rows as $file) { $id_file_ARRAY[] = $file->id_file; } $_SESSION["FILE-SORT-BY-ID"] = $id_file_ARRAY; $_SESSION["FILE-SORT-BY-ID-INPUT"] = $CLEAN_sort_by_id; } else { unset($_SESSION["FILE-SORT-BY-ID"]); unset($_SESSION["FILE-SORT-BY-ID-INPUT"]); } header("Location: ".$script_filename."?ID=".enc_val("option=attachment-list&page=".$CLEAN_page)); exit; } ?>
Did this file decode correctly?
Original Code
if (isset($_POST["submit_sort_by_id"])) { $ENC["ctrl_key"] === $ctrl_key ? : exit("Odmowa dostpu"); $CLEAN_sort_by_id = CLN_txt($_REQUEST["sort_by_id"]); if ($CLEAN_sort_by_id != "") { $rows = $db->get_results($db->prepare(" SELECT id_file FROM file LEFT JOIN acquisition_of_goods ON file.id_acquisition_of_goods = acquisition_of_goods.id_acquisition_of_goods WHERE CONVERT(".aes_dec("acquisition_of_goods_id_enc")." USING utf8) LIKE %s AND acquisition_of_goods_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN contract ON file.id_contract = contract.id_contract WHERE CONVERT(".aes_dec("contract_id_enc")." USING utf8) LIKE %s AND contract_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN `order` ON file.id_order = order.id_order WHERE CONVERT(".aes_dec("order_id_enc")." USING utf8) LIKE %s AND order_submitted = '1' UNION ALL SELECT id_file FROM file LEFT JOIN transport ON file.id_transport = transport.id_transport WHERE CONVERT(".aes_dec("transport_id_enc")." USING utf8) LIKE %s AND transport_submitted = '1' ", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%", "%".$CLEAN_sort_by_id."%")); $id_file_ARRAY = array(0); foreach ($rows as $file) { $id_file_ARRAY[] = $file->id_file; } $_SESSION["FILE-SORT-BY-ID"] = $id_file_ARRAY; $_SESSION["FILE-SORT-BY-ID-INPUT"] = $CLEAN_sort_by_id; } else { unset($_SESSION["FILE-SORT-BY-ID"]); unset($_SESSION["FILE-SORT-BY-ID-INPUT"]); } header("Location: ".$script_filename."?ID=".enc_val("option=attachment-list&page=".$CLEAN_page)); exit; }
Function Calls
None |
Stats
MD5 | e6491b35685f4367fbb9b1b5dae3dc5d |
Eval Count | 0 |
Decode Time | 50 ms |