Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function Find_Bom_Of_Material_Recipe($Plant_Code, $product_code, $width, $process_number, ..

Decoded Output download

<?  function Find_Bom_Of_Material_Recipe($Plant_Code, $product_code, $width, $process_number, $tmp_product_code) { global $dbh; echo "<br>Find_Bom_Of_Material_Recipe==>" . ($select = "select materials_bs_class_1,materials_code_1,materials_width_1,materials_process_number_1,materials_bs_class_2,materials_code_2,materials_width_2,materials_process_number_2,materials_bs_class_3,materials_code_3,materials_width_3,materials_process_number_3,materials_bs_class_4,materials_code_4,materials_width_4,materials_process_number_4,materials_bs_class_5,materials_code_5,materials_width_5,materials_process_number_5,materials_bs_class_6,materials_code_6,materials_width_6,materials_process_number_6,materials_bs_class_7,materials_code_7,materials_width_7,materials_process_number_7,materials_bs_class_8,materials_code_8,materials_width_8,materials_process_number_8,materials_bs_class_9,materials_code_9,materials_width_9,materials_process_number_9,materials_bs_class_10,materials_code_10,materials_width_10,materials_process_number_10 from bom_master_materials where production_plant_code='" . $Plant_Code . "' and width='" . $width . "' and product_code='" . $product_code . "' and delete_flag='active'"); $query = $dbh->query($select); $row = $query->rowCount(); $tmp_material_code = ''; $tmp_recipe = ''; $val = ''; $old_process_number = $process_number; if ($row != "0") { while ($data = $query->fetch(PDO::FETCH_ASSOC)) { for ($i = 1; $i <= 10; $i++) { if ($data["materials_code_{$i}"] != '') { if (ereg("^ML", $data["materials_code_{$i}"])) { $tmp_recipe = Find_Recipe_Of_Product($Plant_Code, $product_code, $width, $old_process_number, $data["materials_code_{$i}"], $data["materials_bs_class_{$i}"], $data["materials_width_{$i}"]); } else { $old_process_number = $data["materials_process_number_{$i}"]; $tmp_material_code = Find_Bom_Of_Material_Recipe($Plant_Code, $data["materials_code_{$i}"], $width, $old_process_number, $tmp_product_code); $tmp_recipe = ''; } $val = $tmp_recipe . '' . $tmp_material_code; } } } } else { $val = ''; } return $val; } goto nHN2O; gsPcX: ?>

Did this file decode correctly?

Original Code

function Find_Bom_Of_Material_Recipe($Plant_Code, $product_code, $width, $process_number, $tmp_product_code) { global $dbh; echo "\74\142\162\x3e\106\x69\156\x64\137\102\x6f\x6d\x5f\x4f\x66\137\x4d\x61\164\145\162\151\x61\x6c\x5f\122\x65\x63\151\x70\x65\75\x3d\x3e" . ($select = "\163\x65\154\145\x63\x74\40\x6d\x61\x74\145\x72\151\x61\x6c\x73\137\142\163\x5f\143\154\141\x73\163\x5f\x31\x2c\x6d\x61\164\145\x72\151\x61\x6c\163\137\143\157\144\145\x5f\x31\54\155\141\x74\x65\x72\x69\141\154\x73\x5f\x77\151\144\164\x68\x5f\x31\54\155\x61\x74\145\x72\x69\x61\154\x73\x5f\160\x72\x6f\143\x65\163\x73\x5f\x6e\165\x6d\x62\x65\162\x5f\x31\x2c\155\141\164\x65\x72\151\141\x6c\x73\x5f\142\163\137\143\154\x61\x73\163\137\x32\x2c\155\141\164\x65\162\x69\x61\154\163\x5f\143\x6f\x64\145\137\62\54\155\141\164\x65\x72\151\x61\154\163\137\x77\151\x64\x74\150\137\x32\54\155\141\164\x65\x72\151\141\154\163\x5f\x70\x72\157\143\145\163\x73\x5f\156\165\x6d\142\x65\162\x5f\x32\x2c\155\x61\x74\145\x72\151\141\154\x73\137\142\x73\137\143\x6c\141\163\x73\137\x33\54\x6d\141\164\145\x72\x69\141\x6c\163\x5f\143\157\144\145\x5f\63\54\155\x61\164\145\x72\x69\x61\x6c\163\x5f\167\151\x64\x74\x68\137\x33\x2c\x6d\x61\x74\x65\x72\151\141\x6c\163\x5f\160\162\157\143\x65\x73\x73\x5f\156\165\x6d\x62\x65\162\x5f\63\54\155\141\x74\145\x72\x69\141\x6c\x73\137\x62\x73\137\x63\x6c\x61\x73\x73\137\x34\54\155\x61\164\145\x72\x69\141\x6c\163\137\143\157\144\145\137\x34\x2c\x6d\141\x74\145\x72\151\x61\x6c\163\137\167\151\x64\164\150\x5f\x34\x2c\x6d\141\x74\145\162\151\x61\154\x73\137\x70\x72\x6f\143\x65\x73\163\x5f\156\x75\155\142\145\162\137\x34\x2c\155\141\x74\145\x72\x69\141\x6c\163\137\142\x73\x5f\143\154\141\163\163\x5f\x35\x2c\x6d\x61\x74\x65\162\x69\x61\x6c\x73\x5f\x63\x6f\144\x65\137\x35\x2c\x6d\141\164\145\x72\x69\x61\x6c\163\x5f\x77\151\144\x74\150\137\65\x2c\x6d\141\164\x65\162\151\141\x6c\x73\137\160\x72\x6f\143\x65\x73\x73\137\156\165\x6d\x62\145\162\137\65\54\x6d\141\x74\145\162\151\141\x6c\x73\137\x62\x73\x5f\143\154\141\x73\x73\x5f\66\54\155\141\x74\x65\162\151\x61\x6c\x73\137\143\x6f\x64\145\x5f\x36\54\x6d\x61\164\x65\162\151\x61\x6c\163\137\167\151\x64\x74\x68\137\66\x2c\155\141\x74\145\x72\151\x61\154\163\137\x70\x72\x6f\143\x65\x73\x73\x5f\x6e\165\155\x62\x65\x72\137\x36\54\155\141\x74\x65\x72\x69\x61\154\x73\137\142\x73\137\143\154\x61\x73\163\137\67\x2c\155\x61\x74\x65\162\151\x61\154\163\137\143\x6f\x64\x65\x5f\x37\54\155\141\x74\145\162\x69\x61\x6c\163\x5f\x77\x69\144\x74\x68\137\67\54\155\x61\x74\145\x72\x69\141\154\163\x5f\x70\162\157\x63\145\163\x73\137\x6e\165\155\142\x65\x72\137\x37\54\155\x61\164\x65\x72\151\141\154\x73\x5f\x62\163\137\x63\154\x61\163\163\137\x38\x2c\155\x61\x74\x65\x72\x69\x61\154\163\x5f\x63\157\144\145\137\70\54\x6d\141\x74\x65\162\x69\141\154\163\x5f\x77\x69\144\x74\x68\137\x38\54\x6d\141\164\145\x72\151\x61\154\163\137\160\x72\157\x63\145\163\x73\137\156\165\155\x62\x65\x72\137\x38\54\x6d\141\x74\x65\x72\x69\141\154\x73\x5f\x62\163\x5f\x63\154\141\x73\x73\137\71\54\155\141\x74\145\x72\x69\141\x6c\x73\137\x63\157\144\145\137\71\x2c\155\x61\164\x65\x72\x69\141\x6c\163\x5f\167\151\144\164\150\x5f\x39\x2c\155\141\x74\x65\162\x69\x61\154\163\x5f\x70\162\157\x63\x65\x73\x73\x5f\156\x75\x6d\x62\x65\162\x5f\71\x2c\155\x61\164\145\162\151\141\154\163\x5f\142\x73\x5f\143\154\141\163\163\x5f\61\x30\x2c\155\141\x74\x65\x72\151\141\x6c\x73\x5f\x63\x6f\x64\145\x5f\x31\x30\x2c\155\141\164\145\162\x69\141\154\x73\137\167\x69\144\x74\x68\137\61\x30\x2c\155\x61\164\145\x72\151\141\x6c\163\x5f\160\162\157\143\x65\x73\163\x5f\x6e\165\155\142\145\x72\x5f\61\x30\x20\146\x72\157\x6d\x20\x62\x6f\x6d\137\x6d\141\163\164\145\x72\137\x6d\141\164\145\162\151\x61\x6c\x73\40\x77\x68\x65\162\145\40\160\x72\157\144\165\x63\x74\x69\x6f\x6e\x5f\x70\x6c\141\156\x74\x5f\143\x6f\x64\x65\75\x27" . $Plant_Code . "\47\40\141\156\x64\x20\x77\151\144\x74\x68\75\47" . $width . "\47\40\x61\x6e\144\x20\x70\162\x6f\x64\x75\x63\164\x5f\x63\157\x64\x65\x3d\x27" . $product_code . "\x27\x20\x61\156\144\40\x64\145\x6c\x65\x74\x65\137\146\x6c\x61\147\75\x27\x61\143\x74\151\166\x65\x27"); $query = $dbh->query($select); $row = $query->rowCount(); $tmp_material_code = ''; $tmp_recipe = ''; $val = ''; $old_process_number = $process_number; if ($row != "\x30") { while ($data = $query->fetch(PDO::FETCH_ASSOC)) { for ($i = 1; $i <= 10; $i++) { if ($data["\x6d\141\164\145\x72\x69\141\154\x73\137\x63\157\144\x65\x5f{$i}"] != '') { if (ereg("\x5e\115\114", $data["\x6d\141\x74\x65\162\151\x61\154\163\137\143\157\x64\x65\137{$i}"])) { $tmp_recipe = Find_Recipe_Of_Product($Plant_Code, $product_code, $width, $old_process_number, $data["\155\x61\x74\x65\162\151\141\x6c\x73\137\x63\157\x64\x65\137{$i}"], $data["\x6d\x61\x74\145\162\x69\141\x6c\x73\x5f\x62\163\x5f\143\x6c\x61\163\x73\x5f{$i}"], $data["\x6d\x61\x74\145\162\151\x61\154\x73\137\x77\x69\x64\x74\150\x5f{$i}"]); } else { $old_process_number = $data["\x6d\x61\x74\145\162\x69\141\x6c\163\137\160\162\x6f\143\145\x73\x73\x5f\156\165\x6d\x62\x65\162\137{$i}"]; $tmp_material_code = Find_Bom_Of_Material_Recipe($Plant_Code, $data["\155\141\x74\145\162\x69\141\x6c\x73\137\x63\x6f\144\x65\x5f{$i}"], $width, $old_process_number, $tmp_product_code); $tmp_recipe = ''; } $val = $tmp_recipe . '' . $tmp_material_code; } } } } else { $val = ''; } return $val; } goto nHN2O; gsPcX:

Function Calls

None

Variables

None

Stats

MD5 8e42702374aeda7baa6165b9cbc26a12
Eval Count 0
Decode Time 49 ms