Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto oMBn3; R8Wrf: if ($_GET["\155\x6f\144\x65"] == base64_encode("\165\160\x64\..
Decoded Output download
<?
goto oMBn3; R8Wrf:
if ($_GET["mode"] == base64_encode("update-order") && isset($_POST["assign"])) { $get_order_details = mysqli_query($con, "select * from orders where id = '" . base64_decode($_POST["order_Id"]) . "'"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["id"]; $front_unique_serial_Id = $_POST["front_serial_no"]; $rear_unique_serial_Id = $_POST["rear_serial_no"]; $query_update_order = mysqli_query($con, "update orders set front_laser_no='{$front_unique_serial_Id}', rear_laser_no = '{$rear_unique_serial_Id}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '4', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id='{$front_unique_serial_Id}' or id='{$rear_unique_serial_Id}' "); header("Location:?mode=" . base64_encode("update-order") . "&auth-identity=" . base64_encode($order_Id) . "&submit=process-assigning-done"); die; } goto kECao; OVmUc: if (isset($_POST["proceed_orders"])) { $post_order_id = $_POST["order_id"]; $count_orders = count($post_order_id); for ($i = 0; $i < $count_orders; $i++) { $order_id = $post_order_id[$i]; $query_update_order = mysqli_query($con, "update orders set order_level=order_level+1, updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_id . "'") or die(mysqli_error($con)); } header("Location:?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . $_GET["order_level"] . "&submit=updatesucess"); } goto kDIVR; Uahuf: require "php-excel-import-package/php-excel-reader/excel_reader2.php"; goto NvJ2w; IbGP7: if (isset($_POST["print_for_embossing"]) && $usertype == "2") { $frmdate = $_POST["frmdate"]; $todate = $_POST["todate"]; $search_by_dealer_Id = $_POST["dealer_Id"]; if ($_POST["dealer_Id"] == "ALL") { $search_by_dealer_Id = "order_by"; } else { $search_by_dealer_Id = $_POST["dealer_Id"]; } header("Location:print-embossing-orders.php?frmdate=" . $frmdate . "&todate=" . $todate . "&did=" . base64_encode($search_by_dealer_Id) . ''); } goto gCfcM; oMBn3: error_reporting(0); goto FjAnQ; kDIVR: if ($_GET["mode"] == base64_encode("update-order") && isset($_POST["update_order"])) { $mode = base64_encode("update-order"); $order_level = $_POST["order_level"]; $order_usertype = base64_decode($_POST["order_usertype"]); if ($order_usertype == "2" && $order_level == "3") { $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); } if ($order_usertype == "2" && $order_level == "4") { $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); } if ($order_usertype == "2" && $order_level == "5") { $dispatch_details = $_POST["dispatch_details"]; $fixation_date = date("Y-m-d", strtotime($_POST["fixation_date"])); $pod_upload_path = "pod_files/"; if (!empty($_FILES["pod"]["name"])) { $uploading_pod_file_name = basename($_FILES["pod"]["name"]); $temp_pod_file_name = explode(".", $uploading_pod_file_name); $pod_file_name = rand(0, 9) . date("dmYhis") . "." . end($temp_pod_file_name); $pod_upload_path_name = $pod_upload_path . $pod_file_name; $pod_file_type = pathinfo($pod_upload_path_name, PATHINFO_EXTENSION); $allowed_pod_image_extn = array("jpg", "png", "jpeg", "gif", "pdf", "PDF"); if (in_array($pod_file_type, $allowed_pod_image_extn)) { $pod_temp_file_name = $_FILES["pod"]["tmp_name"]; if ($pod_file_type == "jpg" || $pod_file_type == "png" || $pod_file_type == "jpeg" || $pod_file_type == "gif") { $uploaded_pod_file = compressImage($pod_temp_file_name, $pod_upload_path_name, 40); } if (($pod_file_type == "pdf" || $pod_file_type == "PDF") && move_uploaded_file($pod_temp_file_name, $pod_upload_path_name)) { $uploaded_pod_file = $pod_upload_path_name; } if ($uploaded_pod_file) { $pod_file = $uploaded_pod_file; unlink($_POST["existing_pod"]); } else { $pod_file = ''; } } else { $pod_file = ''; } } else { $pod_file = $_POST["existing_pod"]; } $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', pod='{$pod_file}', dispatch_details = '{$dispatch_details}', fixation_date='{$fixation_date}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); } if ($order_usertype == "2" && $order_level == "6") { $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); } if (($order_usertype == "4" || $order_usertype == "5") && ($order_level == "7" || $order_level == "11")) { $uploadPath = "fixation_images/"; if (!empty($_FILES["image1"]["name"])) { $uploading_file_name1 = basename($_FILES["image1"]["name"]); $temp1 = explode(".", $uploading_file_name1); $fileName1 = rand(0, 9) . date("dmYhis") . "." . end($temp1); $imageUploadPath1 = $uploadPath . $fileName1; $fileType1 = pathinfo($imageUploadPath1, PATHINFO_EXTENSION); $allowTypes1 = array("jpg", "jpeg"); if (in_array($fileType1, $allowTypes1)) { $imageTemp1 = $_FILES["image1"]["tmp_name"]; $compressedImage1 = compressImage($imageTemp1, $imageUploadPath1, 90); if ($compressedImage1) { $image1 = $compressedImage1; unlink($_POST["existing_image1"]); } else { $image1 = ''; } } else { $image1 = ''; } } else { $image1 = $_POST["existing_image1"]; } if (!empty($_FILES["image2"]["name"])) { $uploading_file_name2 = basename($_FILES["image2"]["name"]); $temp2 = explode(".", $uploading_file_name2); $fileName2 = rand(0, 9) . date("dmYhis") . "." . end($temp2); $imageUploadPath2 = $uploadPath . $fileName2; $fileType2 = pathinfo($imageUploadPath2, PATHINFO_EXTENSION); $allowTypes2 = array("jpg", "jpeg"); if (in_array($fileType2, $allowTypes2)) { $imageTemp2 = $_FILES["image2"]["tmp_name"]; $compressedImage2 = compressImage($imageTemp2, $imageUploadPath2, 90); if ($compressedImage2) { $image2 = $compressedImage2; unlink($_POST["existing_image2"]); } else { $image2 = ''; } } else { $image2 = ''; } } else { $image2 = $_POST["existing_image2"]; } if ($order_level == "7") { $fixation_date = date("Y-m-d", strtotime($_POST["fixation_date"])); $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', fixation_date='{$fixation_date}', image1='{$image1}', image2='{$image2}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); $query_update_unique_serials_data = mysqli_query($con, "update unique_serials set serial_level='5', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["front_unique_serial_Id"]) . "' or id = '" . base64_decode($_POST["rear_unique_serial_Id"]) . "'") or die(mysqli_error($con)); } if ($order_level == "11") { $reupload_dt = date("Y-m-d", strtotime($current_date_time)); $query_update_order = mysqli_query($con, "update orders set order_level='{$order_level}', reupload_dt = '{$reupload_dt}', reupload_count = reupload_count + 1 , image1='{$image1}', image2='{$image2}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . base64_decode($_POST["order_Id"]) . "'") or die(mysqli_error($con)); } } header("Location:?mode=" . $mode . "&auth-identity=" . $_POST["order_Id"] . "&submit=updatesucess"); } goto Kdo6u; vGjxA: $select = mysqli_query($con, "select max(id) from orders"); goto yFJ8r; kECao: if ($_GET["mode"] == base64_encode("update-order") && isset($_POST["verify_vehicle_status"])) { $mode = base64_encode("update-order"); $order_Id = base64_decode($_POST["order_Id"]); $regno = $_POST["regno"]; $chassisno = substr($_POST["chassisno"], -5); $engineno = substr($_POST["engineno"], -5); $data = array("regnNO" => "DL01A1123", "chasisNo" => "HFGH5", "userId" => "svaurora2023", "engineNo" => "45432"); $data = json_encode($data); $url = "https://vahan.parivahan.gov.in/hsrpws/webresources/hsrpwebservice/vehicleStatus/"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); $response = curl_exec($ch); if (curl_errno($ch)) { echo "Error: " . curl_error($ch); } else { $response; } curl_close($ch); $test = base64_decode($response); $cipher = "AES-128-CBC"; $iv = base64_decode(openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher))); $decrypted_data = trim(openssl_decrypt($test, $cipher, "Aurora@202307h", OPENSSL_RAW_DATA | OPENSSL_PKCS1_PADDING, "Aurora@202307h")); header("Location:?mode=" . base64_encode("update-order") . "&auth-identity=" . base64_encode($order_Id) . "&submit=vehicle-status-info&result=" . base64_encode($decrypted_data)); } goto m1G2y; Kdo6u: if ($_GET["mode"] == base64_encode("show") && $_GET["action"] == base64_encode("cancel")) { $get_order_details = mysqli_query($con, "select * from orders where id = '" . base64_decode($_GET["c_auth_id"]) . "'"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["id"]; $query_cancel_order = mysqli_query($con, "update orders set order_level = '9', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); header("Location:?mode=" . base64_encode("show") . "&submit=ordercancelled"); die; } goto CcNA9; t1lDd: if (isset($_POST["search"])) { $mode = $_GET["mode"]; $frmdate = $_POST["frmdate"]; $todate = $_POST["todate"]; $order_level = $_POST["ol"]; if ($usertype == "2") { if ($_POST["dealer_Id"] == "ALL") { $search_by_dealer_Id = "order_by"; } else { $search_by_dealer_Id = $_POST["dealer_Id"]; } header("Location:?mode=" . $mode . "&frmdate=" . $frmdate . "&todate=" . $todate . "&ol=" . $order_level . "&did=" . base64_encode($search_by_dealer_Id) . "&search=success"); } else { header("Location:?mode=" . $mode . "&frmdate=" . $frmdate . "&todate=" . $todate . "&ol=" . $order_level . "&search=success"); } } goto IbGP7; CcNA9: if ($_GET["mode"] == base64_encode("update-order") && isset($_POST["rectify_order"])) { $get_order_details = mysqli_query($con, "select * from orders where id = '" . base64_decode($_POST["order_Id"]) . "'"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["id"]; $front_unique_serial_Id = $order_data["front_laser_no"]; $rear_unique_serial_Id = $order_data["rear_laser_no"]; $order_rectification = $_POST["order_rectification"]; $remark = $_POST["remark"]; if ($order_rectification == "1") { $query_cancel_order = mysqli_query($con, "update orders set front_laser_no='0', remark='{$remark}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '7', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id='{$front_unique_serial_Id}'"); } if ($order_rectification == "2") { $query_cancel_order = mysqli_query($con, "update orders set rear_laser_no='0', remark='{$remark}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '7', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id='{$rear_unique_serial_Id}'"); } if ($order_rectification == "3") { $query_cancel_order = mysqli_query($con, "update orders set front_laser_no='0', rear_laser_no='0', remark='{$remark}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '7', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '{$front_unique_serial_Id}' or id='{$rear_unique_serial_Id}'"); } if ($order_rectification == "4") { $query_cancel_order = mysqli_query($con, "update orders set front_laser_no='0', rear_laser_no='0', remark='{$remark}', order_level='9', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '7', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '{$front_unique_serial_Id}' or id='{$rear_unique_serial_Id}'"); } header("Location:?mode=" . base64_encode("update-order") . "&auth-identity=" . base64_encode($order_Id) . "&submit=rectification-done"); die; } goto R8Wrf; coiKr: if ($_GET["mode"] == base64_encode("direct-update-order")) { $order_Id = base64_decode($_GET["auth-identity"]); $mode = base64_encode("update-order"); $order_level = base64_decode($_GET["order_level"]); $order_usertype = "2"; if ($order_usertype == "2" && $order_level == "2") { $query_update_order = mysqli_query($con, "update orders set order_level='3', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); } if ($order_usertype == "2" && $order_level == "3") { $query_update_order = mysqli_query($con, "update orders set order_level='4', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); } header("Location:?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode($order_level) . "&submit=updatesucess"); } goto OVmUc; H5shI: if ($_GET["mode"] == "upload-orders" && isset($_POST["upload"])) { $mimes = array("application/vnd.ms-excel", "text/xls", "text/xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); if (in_array($_FILES["upload_orders"]["type"], $mimes)) { $upload_file_path = "uploads/" . basename($_FILES["upload_orders"]["name"]); move_uploaded_file($_FILES["upload_orders"]["tmp_name"], $upload_file_path); $Reader = new SpreadsheetReader($upload_file_path); $totalSheet = count($Reader->sheets()); for ($i = 0; $i < $totalSheet; $i++) { $Reader->ChangeSheet($i); $skip_row = 0; foreach ($Reader as $Row) { $order_series = "ORDER/" . date("Y"); $order_query = mysqli_query($con, "select orderno from orders order by id DESC LIMIT 1"); if (mysqli_num_rows($order_query) == 0) { $new_order_no = $order_series . "/00000001"; } if (mysqli_num_rows($order_query) == 1) { $fetch = mysqli_fetch_array($order_query); $last_order_no = $fetch["orderno"]; $get_order_no = substr_replace($last_order_no, '', 0, 11); $new_no = sprintf("%08d", ++$get_order_no); $new_order_no = $order_series . "/" . $new_no; } if ($skip_row == 0) { $orderdt = isset($Row[7]) ? $Row[7] : ''; $po_no = isset($Row[1]) ? $Row[1] : ''; $so_no = isset($Row[2]) ? $Row[2] : ''; $regno = isset($Row[5]) ? $Row[5] : ''; $regdate = isset($Row[3]) ? $Row[3] : ''; $chassisno = isset($Row[8]) ? $Row[8] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $part_number = isset($Row[4]) ? $Row[4] : ''; $platecolor = isset($Row[6]) ? $Row[6] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $code = isset($Row[0]) ? $Row[0] : ''; if ($orderdt != "order_dt" || $po_no != "po_no" || $so_no != "so_no" || $regno != "veh_reg_no" || $regdate != "veh_reg_date" || $chassisno != "chassis_no" || $engineno != "engine_no" || $part_number != "part_no" || $platecolor != "plate_color" || $code != "dealer_code") { header("Location:?mode=upload-orders&message=upload-format-error"); die; } } if ($skip_row > 0) { $orderdt = isset($Row[7]) ? $Row[7] : ''; $formatted_order_dt = date("Y-m-d", strtotime($orderdt)); $po_no = isset($Row[1]) ? $Row[1] : ''; $so_no = isset($Row[2]) ? $Row[2] : ''; $regno = isset($Row[5]) ? $Row[5] : ''; $regdate = isset($Row[3]) ? $Row[3] : ''; $formatted_reg_date = date("Y-m-d", strtotime($regdate)); $chassisno = isset($Row[8]) ? $Row[8] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $part_number = isset($Row[4]) ? $Row[4] : ''; $platecolor = isset($Row[6]) ? $Row[6] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $code = isset($Row[0]) ? $Row[0] : ''; $query_users_Id = mysqli_query($con, "select id, emb_Id, oem_Id from users where code='" . $code . "'"); if (mysqli_num_rows($query_users_Id) == 1) { $fetch_users_Id = mysqli_fetch_array($query_users_Id); $dealer_Id = $fetch_users_Id["id"]; $emb_Id = $fetch_users_Id["emb_Id"]; $oem_Id = $fetch_users_Id["oem_Id"]; $query_plate_data = mysqli_query($con, "select rivets, snaplock, rate, courier_charges, total from oem_price_list where part_number='" . $part_number . "'"); $fetch_plate_data = mysqli_fetch_array($query_plate_data); $snaplock = $fetch_plate_data["snaplock"]; $rivets = $fetch_plate_data["rivets"]; $rate = sprintf("%0.2f", $fetch_plate_data["rate"]); $courier_charges = sprintf("%0.2f", $fetch_plate_data["courier_charges"]); $sum_total = sprintf("%0.2f", $rate + $courier_charges); $tax_amount = sprintf("%0.2f", 0.18 * $sum_total); $net_total = sprintf("%0.2f", $sum_total + $tax_amount); $sql = "select count(*) as allcount from orders where regno='" . $regno . "' and po_no='" . $po_no . "'"; $retrieve_data = mysqli_query($con, $sql); $row = mysqli_fetch_array($retrieve_data); $count = $row["allcount"]; if ($count == 0 && !empty($code) && !empty($part_number) && !empty($regno) && !empty($chassisno) && !empty($engineno) && !empty($platecolor)) { $query = mysqli_query($con, "insert into orders(orderno, orderdt, processdt, invoiceno, invoicedt, po_no, so_no, regno, regdate, chassisno, engineno, front_laser_no, rear_laser_no, part_number, platecolor, snaplock, rivets, rate, courier_charges, sum_total, tax_type, tax_amount, net_total, payment_mode, payment_status, pg_payment_Id, pg_order_Id, pg_status, dispatch_details, dispatchdate, deliverydate, is_inv_created, order_level, fixation_date, image1, image2, reupload_dt, reupload_count, remark, order_by, oem_Id, emb_Id, created_on, updated_on, ip) values('" . $new_order_no . "','" . $formatted_order_dt . "','', '','','" . $po_no . "','" . $so_no . "','" . $regno . "','" . $formatted_reg_date . "','" . $chassisno . "','" . $engineno . "','0','0','" . $part_number . "', '" . $platecolor . "', '" . $snaplock . "','" . $rivets . "','" . $rate . "','" . $courier_charges . "', '" . $sum_total . "','1','" . $tax_amount . "','" . $net_total . "','1','1', '', '', '', '', '', '', '1','1', '', '', '', '', '', '', '" . $dealer_Id . "','" . $oem_Id . "','" . $emb_Id . "', '{$current_date_time}','{$current_date_time}', '{$user_ip_address}')"); $last_inserted_id = mysqli_insert_id($con); } } } $skip_row++; } } $files = glob("uploads/*"); foreach ($files as $file) { if (is_file($file)) { unlink($file); } } } else { header("Location:?mode=upload-orders&message=upload-error"); die; } if (!empty($last_inserted_id)) { $last_inserted_id; } else { $last_inserted_id = $fetch_max_id["max(id)"]; } header("Location:?mode=upload-orders&message=upload-success&trc=" . base64_encode($skip_row) . "&lsid=" . base64_encode($last_inserted_id) . "&maxidcount=" . base64_encode($fetch_max_id["max(id)"])); } goto aSnBY; X7xre: include "plugin/config.php"; goto Uahuf; lkDvw: function compressImage($source, $destination, $quality) { $imgInfo = getimagesize($source); $mime = $imgInfo["mime"]; switch ($mime) { case "image/jpeg": $image = imagecreatefromjpeg($source); imagejpeg($image, $destination, $quality); break; case "image/png": $image = imagecreatefrompng($source); imagepng($image, $destination, $quality); break; case "image/gif": $image = imagecreatefromgif($source); imagegif($image, $destination, $quality); break; default: $image = imagecreatefromjpeg($source); imagejpeg($image, $destination, $quality); } return $destination; } goto vGjxA; yFJ8r: $fetch_max_id = mysqli_fetch_array($select); goto H5shI; m1G2y: if ($_GET["mode"] == base64_encode("re-upload")) { $order_Id = base64_decode($_GET["auth-identity"]); $query_update_order = mysqli_query($con, "update orders set order_level='10', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("7") . "&submit=re-upload-forwarded"); die; } goto zltHt; NvJ2w: require "php-excel-import-package/SpreadsheetReader.php"; goto lkDvw; FjAnQ: session_start(); goto X7xre; zltHt: if ($_GET["mode"] == base64_encode("vahan-api-submission")) { $order_Id = base64_decode($_GET["auth-identity"]); $query_order_data = mysqli_query($con, "select regno, chassisno, fixation_date, front_laser_no, rear_laser_no from orders where id='{$order_Id}'"); $fetch_order_data = mysqli_fetch_array($query_order_data); $order_regno = $fetch_order_data["regno"]; $order_chassisno = substr($fetch_order_data["chassisno"], -5); $order_fixation_date = date("j-n-Y", strtotime($fetch_order_data["fixation_date"])); $order_front_laser_no = $fetch_order_data["front_laser_no"]; $query_front_laser_no = mysqli_query($con, "select serialno from unique_serials where id = '{$order_front_laser_no}'"); $fetch_front_laser_no = mysqli_fetch_array($query_front_laser_no); $front_laser_no = $fetch_front_laser_no["serialno"]; $order_rear_laser_no = $fetch_order_data["rear_laser_no"]; $query_rear_laser_no = mysqli_query($con, "select serialno from unique_serials where id = '{$order_rear_laser_no}'"); $fetch_rear_laser_no = mysqli_fetch_array($query_rear_laser_no); $rear_laser_no = $fetch_rear_laser_no["serialno"]; $data = array("userId" => "svaurora2023", "dobjListHsrp" => array(array("regnNO" => $order_regno, "frontLaserCode" => $front_laser_no, "rearLaserCode" => $rear_laser_no, "fixationDate" => $order_fixation_date, "flag" => "NB", "chasisNo" => $order_chassisno))); $data = json_encode($data); $url = "https://vahan.parivahan.gov.in/hsrpws/webresources/hsrpwebservice/hsrpEntry/"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json")); $response = curl_exec($ch); if (curl_errno($ch)) { echo "Error: " . curl_error($ch); } else { $response; } curl_close($ch); $cipher = "aes-128-cbc"; $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher)); $decrypted_data = openssl_decrypt(base64_decode($response), $cipher, "Aurora@202307h", OPENSSL_RAW_DATA, "Aurora@202307h"); $word = "Inserted"; if (strpos($decrypted_data, $word) !== false) { $query_update_order = mysqli_query($con, "update orders set order_level='8', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_Id . "'") or die(mysqli_error($con)); $query_update_unique_serials_data = $query_update_unique_serials_data = mysqli_query($con, "update unique_serials set serial_level='6', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id = '" . $order_front_laser_no . "' or id = '" . $order_rear_laser_no . "'") or die(mysqli_error($con)); header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("7") . "&submit=api-submitted&api_response=" . base64_encode($decrypted_data)); } else { header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("7") . "&submit=api-submitted&api_response=" . base64_encode($decrypted_data)); } } goto t1lDd; aSnBY: if ($_GET["mode"] == base64_encode("process-order")) { $order_Id = base64_decode($_GET["auth-identity"]); $query_order_data = mysqli_query($con, "select oem_price_list.front_dimension, oem_price_list.rear_dimension, orders.platecolor, orders.emb_Id, orders.regno, orders.chassisno, orders.engineno from orders, oem_price_list where orders.part_number=oem_price_list.part_number and orders.id='{$order_Id}'"); $fetch_order_data = mysqli_fetch_array($query_order_data); $order_regno = $fetch_order_data["regno"]; $order_chassisno = substr($fetch_order_data["chassisno"], -5); $order_engineno = substr($fetch_order_data["engineno"], -5); $order_front_dimension = $fetch_order_data["front_dimension"]; $order_rear_dimension = $fetch_order_data["rear_dimension"]; $order_plate_color = $fetch_order_data["platecolor"]; $order_emb_Id = $fetch_order_data["emb_Id"]; $front_dimension_code = substr($order_front_dimension, 0, 3) . substr($order_plate_color, 0, 1); $rear_dimension_code = substr($order_rear_dimension, 0, 3) . substr($order_plate_color, 0, 1); $processdt = date("Y-m-d", strtotime($current_date_time)); $decrypted_data = "Vehicle Present and you are authorized vendor for this vehicle"; if ($decrypted_data == "Vehicle Present and you are authorized vendor for this vehicle") { if ($front_dimension_code == $rear_dimension_code) { $execute_query = "select id, serialno from unique_serials where dimension like '%" . $front_dimension_code . "%' and dimension like '%" . $rear_dimension_code . "%' and acquired_by_Id='{$order_emb_Id}' and serial_level='3' order by id asc limit 2"; } if ($front_dimension_code != $rear_dimension_code) { $execute_query = "(select id, serialno from unique_serials where dimension like '%" . $front_dimension_code . "%' and acquired_by_Id='{$order_emb_Id}' and serial_level='3' order by id asc limit 1) union (select id, serialno from unique_serials where dimension like '%" . $rear_dimension_code . "%' and acquired_by_Id='{$order_emb_Id}' and serial_level='3' order by id asc limit 1)"; } $query_unique_serials = mysqli_query($con, $execute_query); if (mysqli_num_rows($query_unique_serials) == 0) { header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("1") . "&submit=process-error"); die; } if (mysqli_num_rows($query_unique_serials) > 0) { while ($fetch_unique_serials_data = mysqli_fetch_array($query_unique_serials)) { $data_array[] = $fetch_unique_serials_data; } $front_unique_serial_Id = $data_array[0]["id"]; $rear_unique_serial_Id = $data_array[1]["id"]; if (!empty($front_unique_serial_Id) && !empty($rear_unique_serial_Id)) { $update_order = mysqli_query($con, "update orders set front_laser_no = '" . $front_unique_serial_Id . "', rear_laser_no = '" . $rear_unique_serial_Id . "', order_level='2', processdt='{$processdt}', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id='{$order_Id}'"); $update_unqiue_serials = mysqli_query($con, "update unique_serials set serial_level = '4', updated_on='{$current_date_time}', ip='{$user_ip_address}' where id='{$front_unique_serial_Id}' or id='{$rear_unique_serial_Id}'"); header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("1") . "&submit=process-completed"); } else { header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("1") . "&submit=process-error"); die; } } } else { header("Location:orders.php?mode=c2hvdw==&dir=ZGFzaGJvYXJk&order_level=" . base64_encode("1") . "&submit=vehicle-status-info&result=" . base64_encode($decrypted_data)); die; } }
goto coiKr; gCfcM: ?>
Did this file decode correctly?
Original Code
goto oMBn3; R8Wrf:
if ($_GET["\155\x6f\144\x65"] == base64_encode("\165\160\x64\141\164\145\55\157\x72\144\145\162") && isset($_POST["\141\x73\163\x69\x67\x6e"])) { $get_order_details = mysqli_query($con, "\x73\145\154\x65\x63\x74\x20\x2a\x20\146\162\x6f\x6d\x20\157\162\x64\145\x72\163\40\x77\x68\145\x72\x65\x20\x69\144\x20\x3d\x20\x27" . base64_decode($_POST["\157\162\x64\145\162\x5f\111\144"]) . "\47"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["\x69\144"]; $front_unique_serial_Id = $_POST["\x66\x72\157\x6e\x74\137\163\x65\x72\x69\141\154\137\x6e\157"]; $rear_unique_serial_Id = $_POST["\x72\145\141\x72\137\163\x65\162\151\x61\x6c\x5f\x6e\x6f"]; $query_update_order = mysqli_query($con, "\x75\160\144\141\x74\145\40\x6f\x72\144\x65\x72\163\x20\163\x65\x74\40\146\162\157\156\164\x5f\154\x61\x73\x65\x72\x5f\156\x6f\75\47{$front_unique_serial_Id}\47\54\x20\x72\145\x61\x72\x5f\154\141\163\x65\x72\x5f\156\157\x20\x3d\40\x27{$rear_unique_serial_Id}\47\54\40\x75\160\x64\141\x74\x65\144\137\x6f\x6e\x3d\47{$current_date_time}\47\54\40\151\x70\75\47{$user_ip_address}\x27\40\x77\x68\x65\162\145\40\x69\x64\x20\x3d\40\x27" . $order_Id . "\47") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "\165\x70\x64\x61\x74\145\x20\165\156\151\161\165\x65\x5f\x73\x65\162\x69\x61\154\163\x20\163\145\x74\x20\163\145\x72\x69\141\x6c\x5f\x6c\145\x76\145\x6c\40\75\x20\x27\64\x27\54\x20\165\x70\144\141\164\145\144\137\x6f\x6e\75\47{$current_date_time}\47\54\x20\x69\160\x3d\x27{$user_ip_address}\47\40\40\x77\150\x65\162\145\x20\x69\144\75\x27{$front_unique_serial_Id}\x27\40\157\162\x20\x69\x64\x3d\x27{$rear_unique_serial_Id}\47\40"); header("\x4c\157\143\141\164\x69\x6f\x6e\72\x3f\x6d\x6f\144\x65\x3d" . base64_encode("\x75\x70\x64\141\x74\145\55\157\162\144\x65\162") . "\46\x61\x75\164\150\x2d\151\144\x65\156\x74\151\164\x79\75" . base64_encode($order_Id) . "\x26\163\165\x62\x6d\x69\164\75\160\162\157\x63\x65\163\x73\x2d\141\163\163\151\x67\x6e\151\156\x67\55\144\x6f\x6e\145"); die; } goto kECao; OVmUc: if (isset($_POST["\160\162\157\143\x65\145\144\137\x6f\x72\144\x65\162\163"])) { $post_order_id = $_POST["\157\162\x64\145\162\137\151\x64"]; $count_orders = count($post_order_id); for ($i = 0; $i < $count_orders; $i++) { $order_id = $post_order_id[$i]; $query_update_order = mysqli_query($con, "\x75\160\x64\x61\164\145\x20\157\162\144\145\x72\x73\40\163\145\x74\x20\x6f\x72\x64\x65\x72\x5f\154\145\166\x65\154\x3d\157\x72\x64\145\x72\137\154\x65\x76\145\154\53\x31\x2c\x20\165\x70\x64\x61\164\x65\144\137\157\156\x3d\47{$current_date_time}\47\x2c\x20\x69\x70\x3d\x27{$user_ip_address}\x27\x20\167\x68\x65\x72\145\40\151\x64\x20\75\x20\47" . $order_id . "\x27") or die(mysqli_error($con)); } header("\114\157\x63\x61\164\x69\x6f\156\x3a\x3f\155\157\144\x65\75\x63\x32\x68\x76\x64\167\75\x3d\x26\144\151\162\75\x5a\x47\106\x7a\141\107\112\x76\131\x58\112\x6b\46\157\x72\x64\145\162\137\154\x65\x76\145\154\75" . $_GET["\x6f\162\144\145\162\137\x6c\145\166\145\154"] . "\46\x73\165\x62\x6d\151\x74\75\x75\x70\144\141\x74\145\163\165\x63\x65\x73\163"); } goto kDIVR; Uahuf: require "\x70\x68\x70\55\x65\170\x63\145\154\55\x69\x6d\160\x6f\x72\x74\55\x70\x61\x63\x6b\x61\x67\x65\57\x70\150\x70\x2d\x65\x78\143\145\x6c\x2d\x72\145\141\144\145\162\x2f\x65\x78\x63\x65\x6c\137\x72\145\x61\x64\x65\x72\x32\x2e\x70\x68\x70"; goto NvJ2w; IbGP7: if (isset($_POST["\160\162\x69\x6e\164\137\x66\157\162\x5f\x65\155\x62\157\x73\x73\x69\156\x67"]) && $usertype == "\62") { $frmdate = $_POST["\146\x72\155\x64\141\164\145"]; $todate = $_POST["\x74\x6f\144\x61\164\x65"]; $search_by_dealer_Id = $_POST["\144\145\x61\154\145\162\x5f\x49\144"]; if ($_POST["\x64\x65\x61\154\x65\x72\x5f\x49\144"] == "\101\114\x4c") { $search_by_dealer_Id = "\157\162\144\x65\162\x5f\x62\171"; } else { $search_by_dealer_Id = $_POST["\144\145\x61\154\x65\162\x5f\x49\x64"]; } header("\x4c\157\x63\141\x74\151\157\156\x3a\x70\x72\x69\156\x74\55\145\155\x62\x6f\x73\x73\x69\156\x67\x2d\157\x72\x64\145\x72\163\x2e\x70\150\160\77\146\x72\155\x64\141\164\145\75" . $frmdate . "\x26\x74\157\x64\x61\164\x65\75" . $todate . "\x26\144\x69\x64\75" . base64_encode($search_by_dealer_Id) . ''); } goto gCfcM; oMBn3: error_reporting(0); goto FjAnQ; kDIVR: if ($_GET["\x6d\x6f\144\145"] == base64_encode("\x75\x70\x64\141\x74\145\55\157\162\144\x65\162") && isset($_POST["\x75\160\144\141\164\x65\x5f\157\162\144\145\x72"])) { $mode = base64_encode("\x75\x70\144\x61\164\145\55\x6f\x72\144\x65\162"); $order_level = $_POST["\157\162\x64\x65\x72\137\154\x65\x76\x65\x6c"]; $order_usertype = base64_decode($_POST["\x6f\x72\x64\x65\162\x5f\x75\163\145\x72\x74\x79\x70\145"]); if ($order_usertype == "\x32" && $order_level == "\63") { $query_update_order = mysqli_query($con, "\165\x70\144\141\x74\x65\40\157\162\x64\145\x72\x73\x20\163\145\164\40\x6f\162\144\145\x72\137\154\x65\166\145\154\75\47{$order_level}\x27\x2c\x20\165\x70\144\141\x74\x65\x64\137\157\156\75\47{$current_date_time}\47\x2c\x20\x69\160\75\47{$user_ip_address}\x27\x20\x77\x68\x65\162\145\x20\151\x64\x20\x3d\x20\x27" . base64_decode($_POST["\x6f\x72\144\x65\x72\x5f\x49\x64"]) . "\x27") or die(mysqli_error($con)); } if ($order_usertype == "\x32" && $order_level == "\64") { $query_update_order = mysqli_query($con, "\x75\x70\x64\141\164\145\40\157\x72\x64\145\x72\x73\40\163\145\164\x20\x6f\162\144\x65\162\x5f\x6c\145\166\x65\154\75\x27{$order_level}\47\54\40\165\x70\144\141\164\x65\144\137\157\156\x3d\x27{$current_date_time}\47\54\40\151\160\75\x27{$user_ip_address}\47\x20\167\150\x65\162\145\x20\x69\x64\40\x3d\x20\47" . base64_decode($_POST["\157\x72\x64\x65\x72\137\x49\144"]) . "\x27") or die(mysqli_error($con)); } if ($order_usertype == "\62" && $order_level == "\65") { $dispatch_details = $_POST["\x64\151\x73\160\x61\x74\143\x68\x5f\144\145\164\x61\151\154\163"]; $fixation_date = date("\131\x2d\155\x2d\x64", strtotime($_POST["\x66\x69\170\141\x74\x69\x6f\x6e\137\x64\x61\164\x65"])); $pod_upload_path = "\x70\x6f\144\137\146\x69\154\x65\x73\x2f"; if (!empty($_FILES["\x70\157\x64"]["\156\x61\155\145"])) { $uploading_pod_file_name = basename($_FILES["\160\x6f\144"]["\x6e\x61\x6d\145"]); $temp_pod_file_name = explode("\x2e", $uploading_pod_file_name); $pod_file_name = rand(0, 9) . date("\x64\x6d\x59\x68\x69\163") . "\x2e" . end($temp_pod_file_name); $pod_upload_path_name = $pod_upload_path . $pod_file_name; $pod_file_type = pathinfo($pod_upload_path_name, PATHINFO_EXTENSION); $allowed_pod_image_extn = array("\152\160\x67", "\160\x6e\147", "\x6a\x70\145\x67", "\147\x69\146", "\160\144\146", "\x50\104\x46"); if (in_array($pod_file_type, $allowed_pod_image_extn)) { $pod_temp_file_name = $_FILES["\160\x6f\x64"]["\x74\x6d\x70\x5f\x6e\141\155\145"]; if ($pod_file_type == "\152\x70\x67" || $pod_file_type == "\160\156\147" || $pod_file_type == "\x6a\160\x65\x67" || $pod_file_type == "\147\151\x66") { $uploaded_pod_file = compressImage($pod_temp_file_name, $pod_upload_path_name, 40); } if (($pod_file_type == "\160\144\146" || $pod_file_type == "\x50\x44\106") && move_uploaded_file($pod_temp_file_name, $pod_upload_path_name)) { $uploaded_pod_file = $pod_upload_path_name; } if ($uploaded_pod_file) { $pod_file = $uploaded_pod_file; unlink($_POST["\145\x78\151\163\x74\x69\x6e\x67\x5f\x70\157\144"]); } else { $pod_file = ''; } } else { $pod_file = ''; } } else { $pod_file = $_POST["\145\170\x69\163\164\x69\156\x67\x5f\160\x6f\144"]; } $query_update_order = mysqli_query($con, "\x75\x70\x64\141\x74\x65\40\157\x72\x64\145\162\163\40\163\x65\x74\x20\x6f\162\x64\145\x72\x5f\x6c\x65\166\x65\154\x3d\47{$order_level}\x27\x2c\40\x70\x6f\x64\75\x27{$pod_file}\47\54\x20\x64\151\x73\160\141\164\143\x68\137\144\x65\164\x61\151\154\x73\x20\x3d\40\x27{$dispatch_details}\47\54\40\x66\151\170\x61\x74\151\157\x6e\137\144\x61\x74\145\x3d\47{$fixation_date}\x27\x2c\x20\165\160\x64\141\164\145\x64\137\157\x6e\75\x27{$current_date_time}\x27\x2c\40\151\x70\x3d\x27{$user_ip_address}\47\40\x77\x68\x65\x72\x65\x20\151\144\x20\x3d\40\47" . base64_decode($_POST["\157\x72\144\x65\162\137\111\x64"]) . "\x27") or die(mysqli_error($con)); } if ($order_usertype == "\x32" && $order_level == "\x36") { $query_update_order = mysqli_query($con, "\x75\x70\144\x61\x74\145\x20\x6f\162\144\x65\x72\163\40\x73\x65\164\40\157\162\144\145\162\137\x6c\145\x76\145\x6c\x3d\x27{$order_level}\x27\x2c\40\165\160\144\x61\x74\145\x64\137\x6f\156\x3d\x27{$current_date_time}\x27\x2c\x20\x69\160\x3d\x27{$user_ip_address}\x27\x20\x77\150\145\x72\x65\x20\x69\x64\x20\75\x20\47" . base64_decode($_POST["\x6f\162\x64\x65\x72\x5f\x49\144"]) . "\x27") or die(mysqli_error($con)); } if (($order_usertype == "\64" || $order_usertype == "\x35") && ($order_level == "\x37" || $order_level == "\x31\x31")) { $uploadPath = "\146\151\170\141\164\151\157\156\137\x69\x6d\x61\x67\x65\x73\x2f"; if (!empty($_FILES["\x69\x6d\x61\147\145\61"]["\156\x61\x6d\145"])) { $uploading_file_name1 = basename($_FILES["\151\155\x61\x67\x65\x31"]["\x6e\141\x6d\x65"]); $temp1 = explode("\x2e", $uploading_file_name1); $fileName1 = rand(0, 9) . date("\144\x6d\x59\150\151\x73") . "\56" . end($temp1); $imageUploadPath1 = $uploadPath . $fileName1; $fileType1 = pathinfo($imageUploadPath1, PATHINFO_EXTENSION); $allowTypes1 = array("\x6a\x70\x67", "\152\160\145\147"); if (in_array($fileType1, $allowTypes1)) { $imageTemp1 = $_FILES["\151\155\x61\147\145\x31"]["\x74\x6d\x70\x5f\x6e\141\x6d\x65"]; $compressedImage1 = compressImage($imageTemp1, $imageUploadPath1, 90); if ($compressedImage1) { $image1 = $compressedImage1; unlink($_POST["\x65\x78\x69\163\x74\x69\x6e\147\137\x69\155\x61\x67\x65\x31"]); } else { $image1 = ''; } } else { $image1 = ''; } } else { $image1 = $_POST["\x65\170\151\163\x74\151\x6e\147\137\151\x6d\x61\x67\145\x31"]; } if (!empty($_FILES["\x69\155\141\147\145\62"]["\156\x61\x6d\x65"])) { $uploading_file_name2 = basename($_FILES["\151\x6d\141\147\x65\62"]["\156\x61\x6d\x65"]); $temp2 = explode("\56", $uploading_file_name2); $fileName2 = rand(0, 9) . date("\144\155\131\x68\x69\163") . "\x2e" . end($temp2); $imageUploadPath2 = $uploadPath . $fileName2; $fileType2 = pathinfo($imageUploadPath2, PATHINFO_EXTENSION); $allowTypes2 = array("\152\160\x67", "\x6a\x70\x65\147"); if (in_array($fileType2, $allowTypes2)) { $imageTemp2 = $_FILES["\151\155\141\x67\145\62"]["\x74\155\160\x5f\x6e\141\155\x65"]; $compressedImage2 = compressImage($imageTemp2, $imageUploadPath2, 90); if ($compressedImage2) { $image2 = $compressedImage2; unlink($_POST["\x65\170\x69\x73\164\x69\156\x67\x5f\x69\155\141\x67\x65\x32"]); } else { $image2 = ''; } } else { $image2 = ''; } } else { $image2 = $_POST["\145\170\151\x73\x74\x69\x6e\147\x5f\151\x6d\x61\147\x65\x32"]; } if ($order_level == "\x37") { $fixation_date = date("\x59\55\x6d\55\x64", strtotime($_POST["\x66\151\170\141\x74\x69\x6f\156\137\x64\141\164\145"])); $query_update_order = mysqli_query($con, "\x75\160\x64\x61\164\145\x20\x6f\162\x64\x65\162\163\x20\163\145\164\x20\x6f\x72\144\145\162\x5f\x6c\145\166\x65\154\x3d\47{$order_level}\47\x2c\40\x66\151\170\141\x74\151\x6f\x6e\x5f\144\141\x74\x65\x3d\x27{$fixation_date}\47\54\x20\151\x6d\141\147\145\x31\x3d\x27{$image1}\x27\54\40\151\155\x61\x67\145\62\75\47{$image2}\47\54\x20\165\160\x64\x61\x74\145\x64\137\157\156\x3d\x27{$current_date_time}\x27\x2c\x20\151\160\x3d\47{$user_ip_address}\x27\40\167\x68\x65\x72\x65\x20\x69\144\40\x3d\x20\x27" . base64_decode($_POST["\x6f\x72\144\145\162\x5f\x49\144"]) . "\47") or die(mysqli_error($con)); $query_update_unique_serials_data = mysqli_query($con, "\x75\160\144\141\x74\x65\x20\165\x6e\151\161\x75\x65\137\163\145\162\x69\x61\x6c\x73\40\163\145\164\x20\x73\x65\x72\151\x61\x6c\137\x6c\x65\166\145\x6c\75\47\x35\47\54\40\x75\x70\144\141\x74\x65\x64\x5f\x6f\156\75\x27{$current_date_time}\x27\54\40\151\160\x3d\47{$user_ip_address}\x27\x20\x77\x68\145\162\x65\40\x69\x64\40\x3d\x20\47" . base64_decode($_POST["\x66\x72\x6f\156\164\x5f\x75\x6e\x69\x71\165\145\137\163\145\x72\151\141\154\x5f\x49\x64"]) . "\x27\40\x6f\162\x20\151\x64\40\75\x20\x27" . base64_decode($_POST["\162\145\141\x72\137\165\x6e\151\x71\x75\x65\137\163\x65\162\x69\141\154\137\x49\x64"]) . "\47") or die(mysqli_error($con)); } if ($order_level == "\61\61") { $reupload_dt = date("\x59\x2d\155\x2d\x64", strtotime($current_date_time)); $query_update_order = mysqli_query($con, "\165\x70\144\x61\164\145\x20\x6f\162\x64\x65\x72\163\40\x73\x65\x74\x20\157\162\x64\145\162\x5f\154\145\166\x65\x6c\75\47{$order_level}\47\54\40\162\145\165\160\154\157\x61\144\x5f\144\164\40\x3d\40\47{$reupload_dt}\47\x2c\x20\x72\x65\165\x70\154\157\x61\144\x5f\143\157\x75\x6e\164\x20\75\x20\162\145\165\160\154\157\141\x64\x5f\143\157\x75\156\164\x20\53\x20\61\40\x2c\x20\x20\x69\x6d\141\x67\145\61\75\x27{$image1}\47\54\x20\151\x6d\141\147\x65\x32\x3d\47{$image2}\x27\54\40\165\160\144\141\x74\145\144\137\157\x6e\75\47{$current_date_time}\47\54\40\151\x70\75\x27{$user_ip_address}\47\x20\167\150\x65\162\145\40\x69\x64\x20\x3d\x20\47" . base64_decode($_POST["\157\162\144\x65\162\x5f\111\144"]) . "\47") or die(mysqli_error($con)); } } header("\114\x6f\143\x61\164\x69\x6f\x6e\x3a\77\155\157\144\145\75" . $mode . "\46\x61\165\164\x68\55\151\x64\145\156\x74\x69\164\171\x3d" . $_POST["\157\162\x64\x65\162\x5f\x49\x64"] . "\x26\x73\x75\142\x6d\x69\164\x3d\165\x70\144\141\x74\x65\x73\x75\143\145\163\x73"); } goto Kdo6u; vGjxA: $select = mysqli_query($con, "\163\145\x6c\145\x63\x74\x20\x6d\141\x78\x28\151\144\x29\40\146\x72\157\x6d\40\157\162\144\x65\x72\163"); goto yFJ8r; kECao: if ($_GET["\155\157\144\x65"] == base64_encode("\165\x70\144\141\164\x65\55\157\x72\144\145\x72") && isset($_POST["\x76\x65\x72\x69\146\171\x5f\x76\145\x68\151\143\x6c\x65\x5f\163\x74\141\x74\x75\x73"])) { $mode = base64_encode("\165\160\144\141\x74\145\x2d\157\x72\x64\145\162"); $order_Id = base64_decode($_POST["\157\162\144\x65\x72\137\111\144"]); $regno = $_POST["\162\x65\147\x6e\157"]; $chassisno = substr($_POST["\x63\150\x61\x73\x73\x69\x73\x6e\157"], -5); $engineno = substr($_POST["\145\156\147\151\x6e\145\x6e\x6f"], -5); $data = array("\162\145\x67\156\116\117" => "\104\x4c\60\61\x41\x31\61\62\x33", "\143\x68\141\163\151\x73\116\157" => "\x48\x46\x47\x48\65", "\x75\163\145\162\x49\x64" => "\163\166\x61\165\162\x6f\162\141\62\x30\62\63", "\145\x6e\147\x69\x6e\145\116\x6f" => "\x34\65\x34\63\x32"); $data = json_encode($data); $url = "\150\x74\x74\x70\163\72\57\x2f\166\x61\150\141\x6e\x2e\x70\x61\162\x69\166\x61\x68\141\156\56\147\157\166\x2e\151\x6e\57\150\163\162\x70\x77\163\57\x77\x65\142\162\x65\163\157\165\x72\x63\145\x73\57\x68\x73\x72\160\x77\x65\x62\163\145\x72\166\x69\143\x65\57\x76\145\x68\x69\x63\x6c\x65\123\x74\141\164\x75\x73\x2f"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "\x47\x45\x54"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, array("\x43\x6f\x6e\x74\145\156\x74\55\x54\x79\x70\145\x3a\x20\141\x70\x70\x6c\151\143\141\x74\x69\157\x6e\x2f\x6a\x73\157\156")); $response = curl_exec($ch); if (curl_errno($ch)) { echo "\x45\x72\162\x6f\x72\x3a\x20" . curl_error($ch); } else { $response; } curl_close($ch); $test = base64_decode($response); $cipher = "\101\x45\123\55\61\62\x38\x2d\103\102\x43"; $iv = base64_decode(openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher))); $decrypted_data = trim(openssl_decrypt($test, $cipher, "\x41\165\x72\157\x72\x61\x40\62\60\x32\x33\60\x37\x68", OPENSSL_RAW_DATA | OPENSSL_PKCS1_PADDING, "\x41\165\162\x6f\162\x61\100\62\x30\x32\x33\60\67\x68")); header("\x4c\157\x63\x61\x74\151\157\x6e\72\x3f\155\x6f\x64\x65\75" . base64_encode("\165\160\x64\x61\164\145\x2d\157\162\x64\x65\x72") . "\x26\141\165\x74\150\55\151\x64\145\156\x74\x69\x74\171\x3d" . base64_encode($order_Id) . "\x26\x73\x75\142\155\x69\164\x3d\x76\x65\x68\151\x63\154\145\55\163\x74\x61\x74\x75\163\x2d\x69\x6e\x66\x6f\x26\x72\x65\x73\165\x6c\164\75" . base64_encode($decrypted_data)); } goto m1G2y; Kdo6u: if ($_GET["\x6d\157\144\145"] == base64_encode("\x73\150\157\167") && $_GET["\141\143\x74\x69\x6f\x6e"] == base64_encode("\x63\141\x6e\x63\x65\x6c")) { $get_order_details = mysqli_query($con, "\x73\x65\154\145\143\164\x20\52\40\x66\x72\157\155\40\x6f\x72\x64\145\162\x73\40\167\150\145\162\145\x20\151\x64\40\x3d\40\x27" . base64_decode($_GET["\x63\137\141\165\164\150\137\x69\144"]) . "\47"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["\x69\x64"]; $query_cancel_order = mysqli_query($con, "\x75\160\x64\141\x74\145\40\157\162\x64\x65\162\163\40\x73\145\164\x20\x6f\162\x64\x65\162\x5f\x6c\145\166\x65\154\40\75\x20\x27\71\47\54\x20\165\160\144\141\164\x65\144\x5f\157\x6e\75\47{$current_date_time}\47\54\x20\151\x70\75\47{$user_ip_address}\47\x20\x77\x68\x65\x72\145\40\151\144\x20\75\40\x27" . $order_Id . "\x27") or die(mysqli_error($con)); header("\x4c\157\x63\141\164\151\157\x6e\x3a\x3f\x6d\157\144\145\x3d" . base64_encode("\x73\150\x6f\167") . "\46\x73\165\142\x6d\x69\164\75\x6f\162\x64\145\162\143\x61\156\143\x65\154\x6c\145\x64"); die; } goto CcNA9; t1lDd: if (isset($_POST["\163\145\x61\162\x63\150"])) { $mode = $_GET["\x6d\157\144\145"]; $frmdate = $_POST["\146\162\155\144\141\x74\145"]; $todate = $_POST["\x74\157\x64\x61\x74\x65"]; $order_level = $_POST["\157\x6c"]; if ($usertype == "\x32") { if ($_POST["\x64\x65\141\154\145\x72\x5f\x49\144"] == "\101\114\114") { $search_by_dealer_Id = "\157\x72\144\145\x72\x5f\142\171"; } else { $search_by_dealer_Id = $_POST["\144\x65\141\x6c\145\x72\137\111\x64"]; } header("\x4c\157\143\141\x74\x69\157\x6e\x3a\x3f\x6d\157\144\145\x3d" . $mode . "\x26\x66\x72\x6d\x64\141\x74\x65\75" . $frmdate . "\46\x74\157\x64\141\x74\x65\x3d" . $todate . "\46\157\154\x3d" . $order_level . "\46\144\x69\x64\75" . base64_encode($search_by_dealer_Id) . "\46\x73\145\x61\x72\143\150\x3d\x73\x75\143\143\x65\163\x73"); } else { header("\114\x6f\143\141\x74\151\157\156\x3a\77\155\x6f\144\145\x3d" . $mode . "\x26\146\x72\155\144\141\x74\145\x3d" . $frmdate . "\46\164\157\x64\x61\x74\145\x3d" . $todate . "\46\x6f\154\75" . $order_level . "\x26\x73\x65\x61\162\143\x68\x3d\163\x75\143\x63\x65\x73\163"); } } goto IbGP7; CcNA9: if ($_GET["\155\x6f\x64\145"] == base64_encode("\165\x70\x64\x61\164\145\55\x6f\162\144\145\162") && isset($_POST["\162\145\143\x74\x69\x66\x79\137\157\x72\x64\145\x72"])) { $get_order_details = mysqli_query($con, "\x73\145\154\x65\143\x74\40\x2a\x20\x66\x72\157\x6d\40\157\162\x64\x65\x72\163\40\x77\150\x65\162\145\x20\x69\x64\40\75\x20\x27" . base64_decode($_POST["\x6f\162\144\x65\x72\x5f\x49\144"]) . "\47"); $order_data = mysqli_fetch_array($get_order_details); $order_Id = $order_data["\x69\144"]; $front_unique_serial_Id = $order_data["\x66\162\157\156\164\137\x6c\141\163\145\162\137\156\x6f"]; $rear_unique_serial_Id = $order_data["\162\145\141\x72\x5f\x6c\x61\163\x65\x72\137\x6e\x6f"]; $order_rectification = $_POST["\x6f\x72\144\145\x72\137\x72\145\x63\x74\x69\146\151\143\x61\x74\x69\x6f\x6e"]; $remark = $_POST["\162\x65\x6d\141\x72\x6b"]; if ($order_rectification == "\61") { $query_cancel_order = mysqli_query($con, "\165\160\x64\x61\x74\x65\40\157\162\144\x65\162\163\40\163\x65\164\x20\146\x72\157\x6e\x74\137\154\x61\x73\x65\162\137\x6e\157\x3d\x27\x30\x27\54\40\162\145\x6d\141\x72\153\75\x27{$remark}\47\x2c\x20\165\160\x64\x61\x74\145\144\x5f\157\x6e\x3d\x27{$current_date_time}\47\x2c\x20\151\160\75\47{$user_ip_address}\x27\x20\167\x68\145\x72\145\x20\151\144\40\75\40\47" . $order_Id . "\47") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "\165\160\144\x61\x74\145\x20\x75\x6e\x69\x71\165\145\137\163\145\162\151\141\x6c\163\40\x73\145\x74\x20\163\145\x72\151\141\154\x5f\x6c\145\166\x65\154\x20\x3d\x20\x27\x37\x27\54\40\x75\x70\x64\141\164\145\x64\137\157\156\x3d\47{$current_date_time}\47\x2c\40\151\x70\75\47{$user_ip_address}\x27\x20\40\167\150\145\x72\x65\40\151\144\75\x27{$front_unique_serial_Id}\47"); } if ($order_rectification == "\62") { $query_cancel_order = mysqli_query($con, "\x75\x70\144\x61\164\145\40\157\x72\144\x65\x72\x73\x20\163\145\164\x20\162\145\x61\x72\137\154\x61\x73\145\162\137\156\157\75\x27\x30\x27\54\x20\x72\x65\155\141\162\153\x3d\x27{$remark}\47\x2c\40\165\160\144\141\x74\145\x64\x5f\157\156\x3d\47{$current_date_time}\x27\54\40\151\x70\x3d\47{$user_ip_address}\47\x20\x77\x68\x65\162\x65\40\x69\144\40\x3d\40\47" . $order_Id . "\47") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "\165\x70\144\x61\x74\145\x20\165\156\x69\x71\165\145\137\163\x65\162\151\141\x6c\163\x20\x73\x65\x74\x20\x73\x65\x72\x69\141\x6c\x5f\x6c\x65\x76\x65\154\40\75\x20\47\x37\x27\54\x20\165\160\144\141\164\x65\x64\137\157\156\x3d\x27{$current_date_time}\x27\54\40\151\160\75\47{$user_ip_address}\47\x20\x20\167\150\x65\162\145\x20\151\144\x3d\x27{$rear_unique_serial_Id}\47"); } if ($order_rectification == "\x33") { $query_cancel_order = mysqli_query($con, "\165\x70\144\141\x74\x65\x20\157\x72\x64\145\x72\163\40\163\x65\x74\x20\146\x72\157\x6e\164\137\x6c\x61\163\145\x72\137\156\x6f\75\x27\x30\x27\54\40\162\x65\x61\x72\x5f\154\x61\163\145\x72\137\156\x6f\75\47\x30\47\x2c\40\162\145\x6d\141\x72\x6b\x3d\47{$remark}\47\54\40\x20\x75\160\144\x61\164\145\x64\x5f\157\x6e\x3d\x27{$current_date_time}\x27\54\x20\151\x70\x3d\x27{$user_ip_address}\x27\40\167\150\x65\x72\x65\x20\x69\x64\x20\75\x20\47" . $order_Id . "\x27") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "\165\x70\x64\x61\x74\145\40\x75\156\151\161\x75\145\137\x73\145\162\151\141\154\x73\40\163\145\164\40\163\x65\162\x69\x61\x6c\x5f\x6c\x65\x76\x65\x6c\x20\x3d\40\x27\x37\47\x2c\x20\165\160\x64\141\x74\x65\x64\x5f\x6f\x6e\75\x27{$current_date_time}\47\x2c\x20\151\x70\75\47{$user_ip_address}\x27\x20\40\167\150\x65\x72\145\x20\151\x64\40\x3d\40\x27{$front_unique_serial_Id}\47\x20\x6f\162\40\151\144\x3d\x27{$rear_unique_serial_Id}\x27"); } if ($order_rectification == "\64") { $query_cancel_order = mysqli_query($con, "\x75\160\144\x61\164\x65\40\157\162\x64\x65\x72\163\40\163\145\x74\x20\x66\x72\x6f\x6e\164\x5f\154\x61\163\x65\162\x5f\156\157\75\47\60\47\x2c\40\162\145\141\x72\x5f\154\141\163\145\162\x5f\x6e\x6f\75\x27\60\x27\54\x20\162\145\155\x61\x72\153\x3d\47{$remark}\47\54\40\157\162\x64\x65\x72\x5f\154\145\166\x65\154\75\47\71\47\x2c\40\40\x75\160\x64\141\x74\x65\x64\x5f\x6f\x6e\x3d\x27{$current_date_time}\x27\x2c\x20\x69\x70\x3d\47{$user_ip_address}\x27\40\x77\x68\145\x72\x65\x20\x69\144\40\x3d\40\47" . $order_Id . "\x27") or die(mysqli_error($con)); $update_unqiue_serials = mysqli_query($con, "\165\160\x64\x61\164\x65\x20\165\x6e\151\161\x75\145\137\x73\x65\162\151\x61\x6c\163\40\x73\x65\164\x20\163\145\x72\x69\141\154\x5f\154\145\x76\145\154\x20\x3d\x20\47\x37\x27\54\x20\x75\x70\144\x61\164\145\144\x5f\157\x6e\75\47{$current_date_time}\x27\54\40\x69\x70\x3d\x27{$user_ip_address}\47\x20\x20\167\x68\145\x72\x65\40\x69\144\x20\75\40\47{$front_unique_serial_Id}\x27\40\157\162\40\151\144\75\x27{$rear_unique_serial_Id}\47"); } header("\x4c\x6f\x63\x61\x74\x69\157\156\72\77\x6d\157\x64\x65\x3d" . base64_encode("\165\x70\x64\141\x74\145\x2d\157\162\x64\145\x72") . "\46\141\x75\164\x68\x2d\151\144\x65\156\x74\151\164\x79\75" . base64_encode($order_Id) . "\46\163\165\142\x6d\x69\164\x3d\162\x65\143\164\x69\x66\151\x63\x61\164\x69\x6f\x6e\x2d\x64\157\x6e\145"); die; } goto R8Wrf; coiKr: if ($_GET["\x6d\x6f\x64\x65"] == base64_encode("\x64\x69\x72\x65\143\x74\x2d\165\x70\x64\x61\164\145\x2d\x6f\162\x64\x65\x72")) { $order_Id = base64_decode($_GET["\141\x75\164\150\x2d\x69\144\x65\x6e\x74\151\x74\x79"]); $mode = base64_encode("\165\160\144\x61\164\x65\x2d\x6f\x72\144\145\162"); $order_level = base64_decode($_GET["\x6f\162\144\145\162\x5f\154\145\166\x65\x6c"]); $order_usertype = "\62"; if ($order_usertype == "\x32" && $order_level == "\x32") { $query_update_order = mysqli_query($con, "\x75\x70\x64\x61\x74\x65\x20\157\x72\x64\x65\162\163\x20\x73\145\x74\x20\x6f\162\x64\x65\x72\x5f\x6c\145\166\x65\154\75\x27\x33\x27\x2c\40\165\x70\x64\141\x74\x65\x64\137\157\x6e\75\x27{$current_date_time}\x27\x2c\x20\151\160\x3d\x27{$user_ip_address}\47\40\167\150\145\162\145\40\x69\x64\x20\75\40\47" . $order_Id . "\x27") or die(mysqli_error($con)); } if ($order_usertype == "\62" && $order_level == "\63") { $query_update_order = mysqli_query($con, "\x75\x70\x64\x61\164\x65\x20\x6f\162\144\145\x72\x73\x20\x73\145\x74\x20\157\x72\144\145\162\137\154\x65\x76\145\154\75\x27\64\47\54\x20\x75\160\144\x61\164\145\x64\x5f\x6f\156\75\47{$current_date_time}\47\54\40\x69\x70\75\x27{$user_ip_address}\x27\40\167\150\x65\x72\x65\40\151\144\40\x3d\40\x27" . $order_Id . "\x27") or die(mysqli_error($con)); } header("\114\x6f\143\141\x74\151\x6f\156\x3a\x3f\155\x6f\144\x65\x3d\x63\62\150\x76\144\167\75\x3d\x26\144\151\x72\75\x5a\x47\106\x7a\141\107\112\166\131\x58\x4a\153\46\x6f\x72\144\x65\x72\x5f\154\145\166\x65\x6c\x3d" . base64_encode($order_level) . "\x26\x73\165\142\155\x69\x74\75\x75\160\144\x61\164\145\x73\165\x63\145\163\163"); } goto OVmUc; H5shI: if ($_GET["\155\x6f\x64\145"] == "\x75\x70\x6c\157\x61\144\55\157\162\144\x65\x72\x73" && isset($_POST["\165\160\x6c\x6f\x61\x64"])) { $mimes = array("\x61\x70\x70\x6c\151\143\x61\164\x69\x6f\156\57\x76\x6e\x64\56\x6d\163\55\x65\x78\143\x65\x6c", "\164\145\x78\x74\57\x78\x6c\x73", "\164\145\170\x74\x2f\x78\x6c\x73\170", "\141\160\160\154\x69\143\x61\164\151\157\156\x2f\x76\156\144\56\157\x70\x65\156\x78\155\x6c\x66\x6f\x72\155\x61\x74\163\x2d\157\146\x66\151\x63\145\144\157\x63\x75\x6d\145\156\x74\56\x73\x70\x72\x65\141\144\163\x68\x65\145\x74\x6d\x6c\56\163\x68\145\x65\x74"); if (in_array($_FILES["\x75\160\154\157\x61\x64\x5f\x6f\x72\x64\x65\162\x73"]["\164\x79\x70\145"], $mimes)) { $upload_file_path = "\165\160\154\x6f\x61\144\x73\57" . basename($_FILES["\x75\x70\x6c\157\141\144\x5f\157\162\x64\x65\x72\163"]["\156\x61\155\145"]); move_uploaded_file($_FILES["\x75\160\x6c\157\141\144\137\x6f\x72\144\x65\x72\163"]["\x74\x6d\x70\137\x6e\x61\x6d\145"], $upload_file_path); $Reader = new SpreadsheetReader($upload_file_path); $totalSheet = count($Reader->sheets()); for ($i = 0; $i < $totalSheet; $i++) { $Reader->ChangeSheet($i); $skip_row = 0; foreach ($Reader as $Row) { $order_series = "\x4f\122\x44\x45\122\x2f" . date("\131"); $order_query = mysqli_query($con, "\x73\x65\x6c\145\x63\164\40\x6f\162\144\x65\162\x6e\157\40\146\162\157\x6d\x20\157\162\x64\145\162\163\x20\x6f\x72\144\145\162\x20\x62\x79\x20\x69\x64\x20\x44\x45\x53\103\x20\x4c\x49\115\x49\124\x20\61"); if (mysqli_num_rows($order_query) == 0) { $new_order_no = $order_series . "\57\x30\x30\x30\60\x30\x30\60\61"; } if (mysqli_num_rows($order_query) == 1) { $fetch = mysqli_fetch_array($order_query); $last_order_no = $fetch["\x6f\x72\x64\x65\x72\156\157"]; $get_order_no = substr_replace($last_order_no, '', 0, 11); $new_no = sprintf("\45\60\70\x64", ++$get_order_no); $new_order_no = $order_series . "\x2f" . $new_no; } if ($skip_row == 0) { $orderdt = isset($Row[7]) ? $Row[7] : ''; $po_no = isset($Row[1]) ? $Row[1] : ''; $so_no = isset($Row[2]) ? $Row[2] : ''; $regno = isset($Row[5]) ? $Row[5] : ''; $regdate = isset($Row[3]) ? $Row[3] : ''; $chassisno = isset($Row[8]) ? $Row[8] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $part_number = isset($Row[4]) ? $Row[4] : ''; $platecolor = isset($Row[6]) ? $Row[6] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $code = isset($Row[0]) ? $Row[0] : ''; if ($orderdt != "\157\162\144\x65\162\x5f\144\164" || $po_no != "\x70\x6f\x5f\156\157" || $so_no != "\x73\x6f\137\156\157" || $regno != "\x76\x65\x68\x5f\x72\145\147\137\x6e\x6f" || $regdate != "\x76\145\150\x5f\x72\145\147\x5f\x64\141\x74\145" || $chassisno != "\x63\x68\x61\x73\x73\151\163\137\x6e\157" || $engineno != "\145\156\147\x69\156\x65\137\156\x6f" || $part_number != "\160\x61\162\164\137\x6e\157" || $platecolor != "\160\x6c\141\164\x65\x5f\x63\157\154\157\162" || $code != "\144\x65\141\154\x65\x72\x5f\143\157\144\x65") { header("\x4c\157\x63\x61\x74\x69\157\156\x3a\x3f\x6d\157\144\x65\75\165\160\154\x6f\x61\x64\x2d\157\162\x64\145\x72\163\x26\x6d\x65\x73\x73\141\147\145\x3d\165\160\154\x6f\x61\144\55\x66\157\x72\x6d\x61\164\x2d\145\162\x72\x6f\162"); die; } } if ($skip_row > 0) { $orderdt = isset($Row[7]) ? $Row[7] : ''; $formatted_order_dt = date("\x59\55\155\x2d\x64", strtotime($orderdt)); $po_no = isset($Row[1]) ? $Row[1] : ''; $so_no = isset($Row[2]) ? $Row[2] : ''; $regno = isset($Row[5]) ? $Row[5] : ''; $regdate = isset($Row[3]) ? $Row[3] : ''; $formatted_reg_date = date("\131\55\x6d\x2d\144", strtotime($regdate)); $chassisno = isset($Row[8]) ? $Row[8] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $part_number = isset($Row[4]) ? $Row[4] : ''; $platecolor = isset($Row[6]) ? $Row[6] : ''; $engineno = isset($Row[9]) ? $Row[9] : ''; $code = isset($Row[0]) ? $Row[0] : ''; $query_users_Id = mysqli_query($con, "\163\145\154\145\x63\x74\40\x69\x64\54\40\145\155\142\137\111\x64\54\x20\157\145\x6d\x5f\x49\144\40\146\x72\x6f\155\x20\x75\163\145\x72\x73\40\x77\150\145\162\145\x20\x63\x6f\x64\145\75\x27" . $code . "\47"); if (mysqli_num_rows($query_users_Id) == 1) { $fetch_users_Id = mysqli_fetch_array($query_users_Id); $dealer_Id = $fetch_users_Id["\x69\x64"]; $emb_Id = $fetch_users_Id["\x65\x6d\142\x5f\x49\144"]; $oem_Id = $fetch_users_Id["\x6f\145\155\x5f\111\x64"]; $query_plate_data = mysqli_query($con, "\x73\145\x6c\x65\x63\x74\x20\x72\151\x76\x65\x74\163\54\40\x73\x6e\x61\x70\x6c\157\x63\x6b\54\40\x72\141\164\x65\x2c\x20\x63\157\165\162\151\x65\162\137\x63\150\141\x72\147\x65\x73\x2c\x20\164\157\x74\141\x6c\40\x66\162\x6f\x6d\x20\x6f\145\155\137\x70\x72\151\x63\145\x5f\x6c\x69\163\x74\40\x77\x68\145\162\145\40\x70\x61\162\x74\x5f\156\165\155\142\x65\x72\x3d\47" . $part_number . "\47"); $fetch_plate_data = mysqli_fetch_array($query_plate_data); $snaplock = $fetch_plate_data["\x73\156\141\160\154\157\143\153"]; $rivets = $fetch_plate_data["\162\x69\x76\x65\164\x73"]; $rate = sprintf("\x25\x30\56\x32\146", $fetch_plate_data["\x72\x61\x74\x65"]); $courier_charges = sprintf("\45\x30\56\62\146", $fetch_plate_data["\x63\157\x75\x72\x69\x65\x72\x5f\x63\x68\141\162\147\x65\163"]); $sum_total = sprintf("\x25\x30\56\62\x66", $rate + $courier_charges); $tax_amount = sprintf("\45\x30\56\62\x66", 0.18 * $sum_total); $net_total = sprintf("\x25\x30\x2e\62\146", $sum_total + $tax_amount); $sql = "\163\145\154\145\143\164\40\x63\157\x75\156\164\50\x2a\51\40\141\163\40\x61\x6c\x6c\143\157\x75\156\164\40\x66\162\157\x6d\x20\157\x72\144\145\162\x73\x20\167\x68\x65\162\145\x20\162\145\147\156\x6f\x3d\x27" . $regno . "\x27\x20\x61\156\144\x20\160\157\x5f\x6e\157\x3d\47" . $po_no . "\47"; $retrieve_data = mysqli_query($con, $sql); $row = mysqli_fetch_array($retrieve_data); $count = $row["\x61\154\x6c\x63\157\x75\x6e\x74"]; if ($count == 0 && !empty($code) && !empty($part_number) && !empty($regno) && !empty($chassisno) && !empty($engineno) && !empty($platecolor)) { $query = mysqli_query($con, "\151\x6e\163\145\162\164\40\x69\x6e\164\157\40\x6f\x72\144\x65\162\x73\x28\x6f\x72\144\x65\162\156\157\x2c\40\x6f\x72\144\x65\162\144\164\54\40\160\x72\x6f\143\145\x73\x73\144\164\x2c\x20\151\156\166\157\151\143\145\156\157\54\x20\151\x6e\x76\157\151\143\x65\x64\x74\x2c\40\160\x6f\x5f\156\157\54\x20\163\157\137\156\157\54\x20\x72\x65\x67\x6e\157\x2c\40\162\x65\x67\x64\x61\x74\145\x2c\x20\143\x68\x61\163\163\x69\163\x6e\x6f\54\x20\x65\156\147\x69\x6e\x65\156\x6f\54\40\146\x72\x6f\156\164\137\x6c\x61\x73\x65\162\x5f\156\157\54\x20\162\x65\141\x72\137\154\x61\163\x65\162\137\x6e\157\x2c\40\x70\x61\x72\x74\x5f\x6e\x75\155\142\145\162\54\40\160\x6c\141\x74\145\x63\x6f\x6c\157\x72\54\x20\x73\x6e\141\160\x6c\x6f\x63\153\x2c\40\x72\x69\x76\145\x74\x73\x2c\x20\x72\x61\164\x65\54\x20\143\157\x75\162\x69\145\162\x5f\143\x68\141\x72\147\145\x73\x2c\x20\163\165\155\137\164\157\164\141\154\54\x20\x74\141\170\x5f\164\171\160\145\54\x20\164\141\170\137\x61\x6d\x6f\165\x6e\x74\54\x20\156\x65\x74\137\x74\x6f\164\141\x6c\54\x20\160\141\x79\155\145\156\x74\137\x6d\x6f\144\x65\x2c\x20\x70\x61\171\155\145\x6e\x74\x5f\x73\164\x61\164\165\x73\x2c\x20\160\x67\x5f\x70\141\171\155\x65\156\164\137\x49\x64\54\40\160\147\x5f\x6f\x72\x64\x65\x72\137\x49\144\x2c\x20\x70\x67\x5f\x73\164\x61\x74\165\163\54\x20\x64\151\163\160\x61\x74\143\150\137\144\x65\x74\x61\x69\x6c\163\54\40\x64\151\x73\160\x61\x74\x63\150\x64\x61\x74\x65\54\40\x20\144\145\154\151\166\x65\x72\171\x64\141\164\x65\54\x20\x69\163\137\151\156\166\137\x63\x72\145\x61\164\145\144\54\x20\157\x72\x64\x65\162\x5f\154\x65\166\x65\x6c\54\x20\146\x69\170\141\164\x69\157\156\137\x64\141\x74\x65\x2c\x20\151\155\141\147\145\61\x2c\x20\x69\x6d\141\x67\x65\x32\x2c\40\x72\145\x75\160\x6c\x6f\x61\x64\x5f\144\164\54\x20\x72\145\x75\x70\x6c\x6f\141\144\137\143\157\x75\156\x74\x2c\x20\x72\145\155\141\x72\x6b\x2c\40\157\x72\144\x65\162\137\x62\171\x2c\x20\x6f\x65\x6d\137\x49\144\54\40\145\x6d\x62\137\111\x64\x2c\x20\x63\162\145\x61\x74\145\144\137\157\x6e\54\40\x75\x70\x64\x61\164\145\x64\137\157\156\x2c\40\151\160\51\40\x76\x61\154\165\x65\x73\x28\x27" . $new_order_no . "\47\x2c\x27" . $formatted_order_dt . "\47\54\x27\x27\54\x20\x27\47\x2c\x27\47\54\x27" . $po_no . "\47\54\x27" . $so_no . "\x27\x2c\x27" . $regno . "\47\x2c\x27" . $formatted_reg_date . "\47\54\47" . $chassisno . "\x27\54\x27" . $engineno . "\x27\x2c\47\x30\47\x2c\47\x30\47\x2c\x27" . $part_number . "\x27\54\40\47" . $platecolor . "\x27\x2c\40\47" . $snaplock . "\47\x2c\x27" . $rivets . "\47\x2c\x27" . $rate . "\x27\x2c\x27" . $courier_charges . "\47\x2c\x20\47" . $sum_total . "\x27\54\47\61\x27\x2c\x27" . $tax_amount . "\47\x2c\x27" . $net_total . "\47\54\47\x31\x27\54\x27\x31\x27\x2c\40\47\47\54\40\47\47\x2c\40\47\x27\54\40\47\x27\54\x20\x27\x27\54\40\x27\x27\54\40\x27\x31\x27\x2c\47\61\x27\x2c\40\x27\47\54\40\47\x27\54\x20\47\47\x2c\40\47\47\54\40\x27\47\54\40\47\x27\x2c\x20\47" . $dealer_Id . "\47\x2c\47" . $oem_Id . "\x27\54\x27" . $emb_Id . "\x27\54\x20\x27{$current_date_time}\x27\54\x27{$current_date_time}\x27\x2c\40\47{$user_ip_address}\47\x29"); $last_inserted_id = mysqli_insert_id($con); } } } $skip_row++; } } $files = glob("\165\160\154\x6f\141\x64\163\57\52"); foreach ($files as $file) { if (is_file($file)) { unlink($file); } } } else { header("\x4c\x6f\143\141\x74\151\x6f\x6e\x3a\77\155\157\x64\145\75\165\x70\154\157\x61\x64\x2d\157\x72\144\x65\162\x73\46\155\145\x73\x73\x61\147\145\75\x75\x70\154\x6f\x61\x64\55\145\x72\x72\157\162"); die; } if (!empty($last_inserted_id)) { $last_inserted_id; } else { $last_inserted_id = $fetch_max_id["\x6d\141\170\x28\151\x64\51"]; } header("\x4c\x6f\143\x61\x74\151\157\156\72\77\155\x6f\x64\x65\x3d\165\160\x6c\x6f\x61\x64\x2d\x6f\x72\x64\145\x72\163\46\155\x65\163\163\141\147\145\75\x75\x70\x6c\157\x61\x64\x2d\x73\x75\143\x63\x65\163\163\x26\164\x72\x63\75" . base64_encode($skip_row) . "\46\154\163\x69\x64\75" . base64_encode($last_inserted_id) . "\46\x6d\141\x78\151\144\x63\157\x75\156\x74\x3d" . base64_encode($fetch_max_id["\155\141\x78\x28\x69\x64\x29"])); } goto aSnBY; X7xre: include "\160\154\165\147\151\156\x2f\143\157\156\x66\151\x67\56\160\150\x70"; goto Uahuf; lkDvw: function compressImage($source, $destination, $quality) { $imgInfo = getimagesize($source); $mime = $imgInfo["\155\x69\x6d\145"]; switch ($mime) { case "\x69\x6d\x61\147\145\57\x6a\x70\145\147": $image = imagecreatefromjpeg($source); imagejpeg($image, $destination, $quality); break; case "\x69\x6d\141\147\145\x2f\160\x6e\147": $image = imagecreatefrompng($source); imagepng($image, $destination, $quality); break; case "\x69\x6d\x61\x67\145\x2f\147\151\146": $image = imagecreatefromgif($source); imagegif($image, $destination, $quality); break; default: $image = imagecreatefromjpeg($source); imagejpeg($image, $destination, $quality); } return $destination; } goto vGjxA; yFJ8r: $fetch_max_id = mysqli_fetch_array($select); goto H5shI; m1G2y: if ($_GET["\155\157\144\x65"] == base64_encode("\x72\145\x2d\165\x70\154\157\x61\144")) { $order_Id = base64_decode($_GET["\x61\165\164\x68\x2d\x69\144\x65\156\164\x69\164\x79"]); $query_update_order = mysqli_query($con, "\x75\160\144\x61\164\145\x20\x6f\162\144\145\162\x73\x20\163\145\164\40\x6f\162\144\x65\162\x5f\154\145\x76\145\154\75\x27\61\60\47\54\40\x75\160\x64\x61\164\145\x64\137\x6f\156\75\47{$current_date_time}\47\54\40\151\x70\75\x27{$user_ip_address}\47\x20\x77\x68\x65\162\145\x20\x69\144\x20\x3d\x20\47" . $order_Id . "\x27") or die(mysqli_error($con)); header("\114\x6f\x63\x61\164\x69\x6f\x6e\x3a\157\x72\x64\x65\162\x73\56\x70\x68\160\77\155\x6f\144\x65\75\x63\x32\x68\166\x64\x77\75\x3d\46\144\151\162\75\x5a\x47\x46\172\141\x47\112\166\131\x58\x4a\x6b\46\157\x72\x64\x65\162\x5f\x6c\145\x76\x65\x6c\x3d" . base64_encode("\x37") . "\46\x73\x75\142\155\x69\164\75\162\145\x2d\165\x70\x6c\x6f\x61\x64\55\146\x6f\162\167\x61\x72\144\x65\144"); die; } goto zltHt; NvJ2w: require "\160\150\x70\x2d\145\170\143\145\x6c\x2d\151\x6d\160\157\162\x74\55\160\x61\x63\x6b\141\x67\x65\57\x53\160\162\x65\141\144\x73\x68\145\x65\164\122\145\x61\144\145\x72\56\x70\x68\160"; goto lkDvw; FjAnQ: session_start(); goto X7xre; zltHt: if ($_GET["\155\x6f\x64\x65"] == base64_encode("\x76\141\150\x61\156\x2d\x61\x70\151\x2d\x73\165\142\x6d\151\163\x73\151\157\156")) { $order_Id = base64_decode($_GET["\141\x75\164\x68\x2d\x69\x64\x65\156\164\x69\x74\171"]); $query_order_data = mysqli_query($con, "\x73\x65\154\145\x63\x74\x20\x72\x65\x67\x6e\x6f\x2c\40\143\x68\141\163\x73\151\x73\156\x6f\x2c\x20\x66\151\x78\x61\x74\x69\157\156\x5f\144\141\164\145\54\40\x66\162\157\x6e\x74\x5f\x6c\x61\163\145\162\137\156\x6f\54\40\162\x65\141\x72\137\154\x61\x73\x65\x72\x5f\x6e\x6f\x20\x66\x72\x6f\155\40\x6f\x72\x64\x65\x72\x73\40\x77\x68\145\162\145\x20\151\144\x3d\x27{$order_Id}\47"); $fetch_order_data = mysqli_fetch_array($query_order_data); $order_regno = $fetch_order_data["\162\x65\x67\x6e\x6f"]; $order_chassisno = substr($fetch_order_data["\143\x68\x61\163\163\151\x73\156\x6f"], -5); $order_fixation_date = date("\x6a\55\156\55\x59", strtotime($fetch_order_data["\146\151\x78\x61\164\151\157\x6e\x5f\144\x61\164\145"])); $order_front_laser_no = $fetch_order_data["\x66\162\x6f\156\164\x5f\154\x61\x73\x65\162\x5f\x6e\157"]; $query_front_laser_no = mysqli_query($con, "\x73\145\x6c\145\x63\x74\x20\163\145\x72\151\x61\x6c\156\157\40\x66\x72\x6f\155\x20\165\x6e\x69\161\165\145\137\163\x65\162\151\x61\x6c\x73\40\167\150\x65\162\145\40\151\144\40\x3d\40\47{$order_front_laser_no}\x27"); $fetch_front_laser_no = mysqli_fetch_array($query_front_laser_no); $front_laser_no = $fetch_front_laser_no["\x73\x65\x72\151\x61\154\x6e\x6f"]; $order_rear_laser_no = $fetch_order_data["\x72\x65\x61\162\137\154\141\163\x65\x72\137\x6e\x6f"]; $query_rear_laser_no = mysqli_query($con, "\x73\x65\x6c\x65\x63\164\x20\x73\145\x72\151\x61\x6c\156\157\40\x66\x72\x6f\x6d\40\x75\156\151\x71\165\145\137\163\145\162\151\x61\154\x73\40\167\150\x65\x72\x65\x20\x69\144\x20\75\x20\47{$order_rear_laser_no}\47"); $fetch_rear_laser_no = mysqli_fetch_array($query_rear_laser_no); $rear_laser_no = $fetch_rear_laser_no["\163\145\x72\151\141\x6c\156\x6f"]; $data = array("\165\x73\145\x72\x49\x64" => "\163\166\x61\x75\x72\157\x72\141\x32\x30\62\x33", "\144\157\x62\x6a\114\151\x73\x74\x48\x73\x72\160" => array(array("\162\x65\x67\156\116\x4f" => $order_regno, "\x66\162\157\x6e\164\114\141\x73\x65\x72\103\x6f\x64\145" => $front_laser_no, "\x72\145\141\x72\114\x61\163\145\162\103\157\144\145" => $rear_laser_no, "\x66\151\x78\x61\164\x69\x6f\156\x44\141\x74\145" => $order_fixation_date, "\x66\x6c\141\x67" => "\116\102", "\143\150\x61\163\151\163\x4e\x6f" => $order_chassisno))); $data = json_encode($data); $url = "\x68\x74\x74\160\163\x3a\x2f\x2f\166\x61\x68\x61\x6e\x2e\x70\141\x72\x69\166\141\150\x61\x6e\56\x67\157\166\x2e\151\156\57\x68\163\x72\160\x77\163\57\167\145\x62\162\x65\x73\157\x75\162\x63\x65\163\57\x68\x73\162\160\167\145\x62\163\x65\x72\x76\151\x63\145\x2f\150\x73\162\x70\x45\x6e\x74\162\171\57"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "\120\x4f\x53\124"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, array("\x43\157\156\164\x65\156\164\55\124\171\x70\145\x3a\40\141\160\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\57\152\x73\x6f\x6e")); $response = curl_exec($ch); if (curl_errno($ch)) { echo "\x45\x72\x72\157\x72\72\40" . curl_error($ch); } else { $response; } curl_close($ch); $cipher = "\141\x65\x73\x2d\x31\x32\x38\x2d\143\142\x63"; $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($cipher)); $decrypted_data = openssl_decrypt(base64_decode($response), $cipher, "\101\165\x72\157\162\141\x40\x32\60\x32\x33\x30\x37\150", OPENSSL_RAW_DATA, "\101\165\x72\157\x72\x61\100\62\60\x32\63\60\x37\x68"); $word = "\111\156\x73\145\x72\164\x65\144"; if (strpos($decrypted_data, $word) !== false) { $query_update_order = mysqli_query($con, "\165\160\144\x61\164\x65\40\157\162\144\x65\x72\x73\40\x73\x65\x74\x20\157\x72\144\x65\x72\x5f\154\145\x76\145\x6c\75\47\70\47\x2c\40\x20\x75\x70\x64\x61\164\x65\144\137\157\x6e\75\x27{$current_date_time}\47\54\40\151\160\75\47{$user_ip_address}\47\x20\167\150\x65\x72\x65\x20\151\144\x20\x3d\40\x27" . $order_Id . "\47") or die(mysqli_error($con)); $query_update_unique_serials_data = $query_update_unique_serials_data = mysqli_query($con, "\x75\x70\144\141\164\x65\x20\165\156\151\161\165\145\137\x73\x65\162\x69\141\x6c\163\40\163\145\x74\x20\163\x65\x72\151\141\x6c\137\154\x65\166\145\154\x3d\47\x36\x27\x2c\40\x75\160\144\x61\164\x65\x64\x5f\157\x6e\75\47{$current_date_time}\47\54\40\151\160\x3d\x27{$user_ip_address}\47\40\167\x68\x65\162\x65\40\151\144\x20\x3d\x20\47" . $order_front_laser_no . "\x27\x20\157\162\40\x69\x64\x20\75\40\47" . $order_rear_laser_no . "\47") or die(mysqli_error($con)); header("\114\157\143\x61\164\151\x6f\x6e\x3a\x6f\162\x64\x65\x72\163\x2e\x70\x68\160\77\155\157\x64\x65\75\x63\x32\x68\166\x64\x77\x3d\x3d\x26\x64\x69\x72\x3d\132\x47\106\x7a\141\107\x4a\166\x59\130\x4a\x6b\46\x6f\162\x64\145\x72\x5f\154\x65\x76\145\154\75" . base64_encode("\x37") . "\46\163\165\142\155\x69\164\x3d\x61\x70\151\55\163\165\142\x6d\151\164\x74\x65\144\46\141\x70\x69\x5f\x72\145\163\x70\x6f\156\163\x65\75" . base64_encode($decrypted_data)); } else { header("\x4c\x6f\x63\141\x74\x69\x6f\x6e\72\157\x72\x64\145\x72\163\56\x70\150\x70\77\x6d\x6f\x64\x65\75\143\x32\150\166\x64\167\x3d\x3d\x26\144\151\x72\x3d\132\x47\x46\172\x61\x47\112\166\131\130\112\153\46\x6f\162\144\x65\x72\137\x6c\x65\166\145\154\x3d" . base64_encode("\x37") . "\x26\163\165\x62\x6d\151\164\x3d\x61\160\x69\x2d\163\165\x62\x6d\151\x74\x74\145\144\x26\x61\x70\x69\137\x72\x65\163\160\157\x6e\163\x65\x3d" . base64_encode($decrypted_data)); } } goto t1lDd; aSnBY: if ($_GET["\155\157\x64\x65"] == base64_encode("\x70\162\x6f\x63\145\163\x73\x2d\157\x72\144\145\162")) { $order_Id = base64_decode($_GET["\141\165\x74\150\55\151\x64\x65\x6e\x74\x69\164\x79"]); $query_order_data = mysqli_query($con, "\x73\145\x6c\145\143\x74\x20\x6f\145\x6d\137\160\x72\x69\143\145\137\x6c\x69\163\164\x2e\x66\x72\x6f\x6e\x74\x5f\144\151\155\145\156\x73\151\x6f\x6e\54\40\x6f\145\x6d\137\160\x72\151\143\x65\137\x6c\x69\163\164\x2e\x72\x65\x61\162\137\144\151\155\145\x6e\163\151\157\156\54\x20\157\162\x64\145\162\x73\56\160\x6c\x61\164\x65\143\x6f\x6c\x6f\x72\x2c\x20\157\x72\144\x65\x72\163\x2e\145\x6d\x62\x5f\x49\x64\54\40\x6f\x72\x64\x65\x72\x73\x2e\x72\x65\147\x6e\157\54\x20\157\x72\x64\145\x72\x73\x2e\143\150\x61\x73\163\151\x73\156\157\54\40\x6f\162\x64\x65\162\x73\56\x65\x6e\x67\151\x6e\x65\156\x6f\x20\x66\x72\x6f\155\40\157\x72\x64\x65\x72\163\54\40\x6f\x65\x6d\137\160\x72\151\x63\145\137\154\151\x73\164\x20\167\x68\x65\162\145\40\157\162\x64\145\x72\x73\x2e\x70\x61\x72\x74\x5f\156\x75\155\x62\145\x72\75\x6f\145\155\x5f\160\x72\151\143\145\137\x6c\151\163\x74\56\160\x61\162\164\137\156\165\x6d\x62\x65\x72\x20\x61\x6e\x64\40\157\162\144\145\x72\x73\56\x69\144\75\47{$order_Id}\47"); $fetch_order_data = mysqli_fetch_array($query_order_data); $order_regno = $fetch_order_data["\x72\x65\147\156\157"]; $order_chassisno = substr($fetch_order_data["\x63\150\141\x73\x73\151\x73\x6e\x6f"], -5); $order_engineno = substr($fetch_order_data["\x65\x6e\x67\151\156\145\156\157"], -5); $order_front_dimension = $fetch_order_data["\146\x72\157\x6e\x74\137\144\151\155\x65\156\163\151\157\156"]; $order_rear_dimension = $fetch_order_data["\x72\x65\x61\162\137\x64\151\x6d\x65\x6e\163\151\x6f\x6e"]; $order_plate_color = $fetch_order_data["\x70\x6c\141\164\145\143\157\154\157\162"]; $order_emb_Id = $fetch_order_data["\145\155\x62\137\111\x64"]; $front_dimension_code = substr($order_front_dimension, 0, 3) . substr($order_plate_color, 0, 1); $rear_dimension_code = substr($order_rear_dimension, 0, 3) . substr($order_plate_color, 0, 1); $processdt = date("\x59\x2d\155\55\144", strtotime($current_date_time)); $decrypted_data = "\126\x65\150\151\x63\154\x65\x20\x50\162\145\163\x65\156\x74\x20\141\x6e\144\x20\x79\x6f\x75\40\x61\x72\x65\40\x61\165\x74\150\157\x72\x69\172\x65\x64\x20\166\x65\156\144\157\x72\x20\146\157\162\x20\164\150\x69\163\40\x76\x65\x68\151\143\154\145"; if ($decrypted_data == "\x56\x65\150\x69\x63\x6c\145\x20\x50\x72\145\x73\x65\156\164\x20\141\x6e\144\x20\x79\x6f\165\x20\x61\x72\145\40\141\x75\164\150\157\x72\151\x7a\145\144\x20\166\145\156\144\x6f\162\x20\x66\157\162\40\x74\150\151\x73\40\x76\145\x68\151\143\154\145") { if ($front_dimension_code == $rear_dimension_code) { $execute_query = "\163\x65\154\145\x63\x74\40\151\144\54\x20\x73\145\162\151\x61\154\156\157\40\146\162\157\x6d\40\x75\x6e\151\x71\x75\x65\137\x73\x65\162\x69\x61\154\163\x20\x77\150\145\162\x65\40\x64\x69\155\x65\156\x73\x69\157\156\x20\154\x69\x6b\145\40\47\45" . $front_dimension_code . "\x25\x27\x20\141\156\144\x20\x64\151\155\145\x6e\x73\x69\157\156\x20\x6c\x69\153\x65\x20\x27\x25" . $rear_dimension_code . "\45\x27\x20\x61\x6e\x64\40\x61\143\x71\x75\151\162\145\144\x5f\142\171\x5f\111\x64\75\x27{$order_emb_Id}\47\x20\141\156\x64\40\x73\x65\162\x69\x61\154\137\154\x65\x76\145\154\x3d\x27\x33\x27\40\157\x72\144\x65\x72\40\142\x79\x20\x69\144\40\141\163\143\x20\154\x69\155\x69\x74\x20\62"; } if ($front_dimension_code != $rear_dimension_code) { $execute_query = "\x28\163\x65\x6c\145\143\x74\x20\x69\x64\54\x20\x73\145\162\151\141\x6c\x6e\x6f\x20\146\x72\157\x6d\x20\x75\x6e\x69\161\x75\145\x5f\163\145\162\x69\141\154\x73\x20\167\150\145\x72\x65\x20\144\x69\155\x65\x6e\x73\x69\x6f\x6e\40\x6c\x69\153\145\40\x27\x25" . $front_dimension_code . "\45\x27\x20\141\x6e\x64\40\141\143\x71\165\x69\x72\x65\x64\x5f\x62\171\137\111\144\x3d\x27{$order_emb_Id}\47\x20\141\x6e\x64\x20\163\145\x72\x69\141\x6c\x5f\x6c\x65\166\x65\x6c\x3d\47\63\47\x20\x6f\x72\x64\x65\162\x20\x62\171\x20\151\144\x20\x61\x73\x63\40\x6c\151\x6d\x69\x74\40\x31\51\40\x75\156\151\157\156\x20\50\163\x65\154\x65\143\164\40\x69\144\x2c\x20\x73\145\162\151\x61\x6c\x6e\x6f\40\x66\162\157\x6d\40\x75\x6e\151\x71\165\x65\x5f\163\x65\162\x69\141\x6c\x73\x20\167\150\x65\x72\145\x20\144\x69\155\145\156\163\151\157\156\40\154\x69\x6b\145\x20\x27\x25" . $rear_dimension_code . "\45\x27\x20\x61\x6e\x64\x20\x61\x63\x71\165\151\162\145\x64\137\x62\171\x5f\x49\x64\75\47{$order_emb_Id}\47\x20\x61\x6e\x64\x20\x73\x65\x72\x69\141\154\137\x6c\145\166\145\x6c\75\47\x33\47\x20\x6f\x72\x64\x65\162\40\x62\x79\40\x69\x64\40\x61\163\x63\x20\154\151\x6d\x69\x74\40\61\51"; } $query_unique_serials = mysqli_query($con, $execute_query); if (mysqli_num_rows($query_unique_serials) == 0) { header("\114\x6f\143\141\164\151\157\x6e\72\x6f\162\144\x65\162\163\x2e\160\150\160\x3f\155\x6f\x64\x65\x3d\143\62\150\166\144\167\75\75\x26\144\151\162\75\132\x47\x46\x7a\141\x47\112\x76\x59\130\x4a\153\x26\x6f\x72\144\x65\162\x5f\154\145\x76\x65\154\x3d" . base64_encode("\x31") . "\46\x73\x75\x62\155\x69\164\75\x70\162\x6f\143\x65\163\x73\55\145\162\162\x6f\162"); die; } if (mysqli_num_rows($query_unique_serials) > 0) { while ($fetch_unique_serials_data = mysqli_fetch_array($query_unique_serials)) { $data_array[] = $fetch_unique_serials_data; } $front_unique_serial_Id = $data_array[0]["\151\144"]; $rear_unique_serial_Id = $data_array[1]["\x69\x64"]; if (!empty($front_unique_serial_Id) && !empty($rear_unique_serial_Id)) { $update_order = mysqli_query($con, "\x75\x70\x64\x61\x74\145\40\x6f\x72\x64\x65\162\x73\x20\163\145\164\x20\146\x72\x6f\156\x74\x5f\154\141\x73\x65\162\x5f\156\157\x20\75\40\47" . $front_unique_serial_Id . "\47\x2c\40\162\x65\x61\x72\137\154\141\163\145\162\x5f\x6e\157\40\x3d\x20\47" . $rear_unique_serial_Id . "\47\54\x20\x20\157\162\x64\x65\x72\x5f\154\x65\x76\x65\x6c\x3d\47\62\x27\54\x20\160\x72\157\143\145\163\x73\x64\x74\x3d\x27{$processdt}\x27\x2c\40\x75\160\x64\x61\x74\145\x64\137\x6f\156\x3d\47{$current_date_time}\x27\54\40\151\x70\x3d\x27{$user_ip_address}\x27\40\167\150\x65\162\145\40\x69\144\75\x27{$order_Id}\x27"); $update_unqiue_serials = mysqli_query($con, "\165\x70\144\141\x74\145\40\x75\156\151\x71\x75\x65\137\x73\145\162\151\x61\154\163\x20\163\145\x74\x20\163\x65\x72\151\x61\154\137\x6c\145\x76\145\x6c\x20\75\40\47\x34\x27\54\x20\165\x70\144\141\x74\145\x64\x5f\x6f\156\75\x27{$current_date_time}\47\54\40\x69\x70\x3d\47{$user_ip_address}\47\40\x20\x77\150\x65\162\145\40\x69\x64\x3d\47{$front_unique_serial_Id}\x27\40\157\162\x20\x69\x64\x3d\x27{$rear_unique_serial_Id}\47"); header("\114\157\x63\141\x74\151\157\x6e\x3a\x6f\x72\x64\x65\x72\x73\56\x70\150\x70\77\x6d\157\x64\145\75\x63\x32\150\x76\144\167\x3d\x3d\46\144\x69\162\x3d\x5a\107\x46\172\x61\107\x4a\x76\131\x58\112\x6b\x26\x6f\162\144\x65\162\x5f\x6c\x65\x76\x65\154\75" . base64_encode("\61") . "\46\163\x75\x62\x6d\151\164\x3d\x70\x72\x6f\x63\x65\163\163\x2d\x63\157\155\160\x6c\x65\x74\x65\144"); } else { header("\114\157\x63\141\164\151\x6f\156\x3a\157\x72\144\145\162\163\x2e\x70\150\160\x3f\x6d\x6f\x64\x65\75\143\62\x68\166\x64\167\75\75\46\x64\x69\162\x3d\x5a\x47\106\x7a\x61\x47\112\x76\131\x58\x4a\x6b\x26\157\x72\x64\x65\x72\137\154\145\x76\145\x6c\75" . base64_encode("\x31") . "\46\x73\x75\142\x6d\x69\164\75\x70\162\157\143\145\163\x73\x2d\x65\x72\162\157\x72"); die; } } } else { header("\x4c\x6f\x63\x61\x74\151\157\x6e\72\157\x72\144\x65\162\x73\x2e\160\x68\x70\77\155\157\144\x65\x3d\143\x32\x68\x76\144\x77\x3d\75\x26\144\151\162\75\132\107\106\x7a\141\107\112\x76\131\130\x4a\x6b\46\157\x72\144\x65\x72\x5f\x6c\x65\166\145\x6c\75" . base64_encode("\61") . "\x26\x73\x75\142\x6d\x69\164\75\166\x65\150\151\143\x6c\145\55\x73\164\x61\164\165\x73\55\x69\156\146\x6f\46\x72\145\163\x75\154\x74\75" . base64_encode($decrypted_data)); die; } }
goto coiKr; gCfcM:
Function Calls
None |
Stats
MD5 | 96dc4ea5d32e19bfab2529f0f2386e9e |
Eval Count | 0 |
Decode Time | 100 ms |