Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto HIUsT; yOaGc: global $DBConnection; goto ZgguJ; K3e3D: $cell_phone = $data->c..
Decoded Output download
<?php
goto HIUsT; yOaGc: global $DBConnection; goto ZgguJ; K3e3D: $cell_phone = $data->cell_phone; goto fWWe6; QAjdc: $refreshToken = $_REQUEST["refreshToken"]; goto nK0fl; oVeUM: error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); goto QAjdc; ssGFK: $date_updated = date("Y-m-d H:i:s"); goto hiRwI; NqO7I: $utm_source = str_replace("'", "`", $data->utm_source); goto F93Gs; ZgguJ: header("Access-Control-Allow-Origin: *"); goto lt53v; Rx63R: $customer_id = $data->customer_id; goto K3e3D; ZDKFW: $curr_time = $rs_timestamp["curr_time"]; goto guXFX; oDIUP: $comment = str_replace("'", "`", $data->comment); goto kaLgi; fWWe6: $service_id = $data->service_key; goto HgXcJ; XO20j: $rs_timestamp = mysqli_query($DBConnection, $chk_timestamp) or die(mysqli_error($DBConnection)); goto tgRH3; hiRwI: $chk_timestamp = "SELECT * FROM setmore_slot_pull"; goto XO20j; S1POY: if (time() - 7199 > $curr_time) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "https://developer.setmore.com/api/v1/o/oauth2/token?refreshToken={$refreshToken}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array())); $response_access_token = curl_exec($curl); $response_access_token = json_decode($response_access_token, true); $err = curl_error($curl); if ($err) { $erro_when = "Trying to get access token Line No.: 52, save_appointment.php"; $api_payload = "https://developer.setmore.com/api/v1/o/oauth2/token?refreshToken={$refreshToken}"; $sql_insert_error_1 = "INSERT INTO setmore_errors
(err_details, err_when, api_payload, date_added) VALUES \xa ('{$err}', '{$err_when}', '{$api_payload}', '{$date_added}')"; mysqli_query($DBConnection, $sql_insert_error_1); die; } curl_close($curl); $access_token = $response_access_token["data"]["token"]["access_token"]; $sql_update_timestamp = "UPDATE setmore_slot_pull SET access_token = '{$access_token}', date_updated = '{$date_added}' WHERE setmore_slot_pull_id = '{$setmore_slot_pull_id}'"; mysqli_query($DBConnection, $sql_update_timestamp) or die(mysqli_error($DBConnection)); } else { $access_token = $rs_timestamp["access_token"]; } goto zjv4A; gMr16: $last_name = str_replace("'", "`", $data->last_name); goto EtWk_; kaLgi: $utm_medium = str_replace("'", "`", $data->utm_medium); goto NqO7I; Jm5GP: $end_time = $data->end_time; goto oDIUP; guXFX: $setmore_slot_pull_id = $rs_timestamp["setmore_slot_pull_id"]; goto S1POY; KAf1b: $email_id = $data->email_id; goto Rx63R; KKTI8: error_log("----- DATA RECIEVED ----- " . $str_data_receieved); goto ynIEt; EtWk_: $name = $first_name . " " . $last_name; goto KAf1b; mX4dF: header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); goto oVeUM; zjv4A: $data = json_decode(file_get_contents("php://input")); goto CZaP2; Jy6I9: header("Access-Control-Max-Age: 3600"); goto mX4dF; PK9OJ: header("Access-Control-Allow-Methods: POST, DELETE, OPTIONS"); goto Jy6I9; HgXcJ: $slot_id = $data->slot_id; goto d7XGa; F93Gs: $str_data_receieved = "{\xa "first_name":"" . $first_name . "", \xa "last_name":"" . $last_name . "",
"customer_id":"" . $customer_id . "",
"email_id":"" . $email_id . "",
"service_id":"" . $service_id . "",\xa "slot_id":"" . $slot_id . "",\xa "start_time":"" . $start_time . "",\xa "end_time":"" . $end_time . "",\xa "comment":"" . $comment . "",
"utm_medium":"" . $utm_medium . "",
"utm_source":"" . $utm_source . "",
"country_code":"+91",
"cell_phone":"" . $cell_phone . ""
}"; goto KKTI8; ynIEt: if ($access_token == '' || $first_name == '' || $email_id == '' || $cell_phone == '') { $json["status"] = 400; $json["message"] = "access token and other basic data missing"; $json["api_name"] = "save_appointment"; echo json_encode($json); die; } else { $error_message = "booking data recieved"; $api_payload = "setmore/api/v1/bookingapi/customer/create"; $sql_insert_data_recieved = "INSERT INTO setmore_errors
(err_details, err_when, api_payload, date_added) VALUES \xa ('{$error_message}', '{$str_data_receieved}', '{$api_payload}', '{$date_added}')"; mysqli_query($DBConnection, $sql_insert_data_recieved); if ($customer_key == '') { $str_payload = "{
"first_name":"" . $first_name . "", \xa "last_name":"" . $last_name . "", \xa "email_id":"" . $email_id . "",
"country_code":"+91",
"cell_phone":"" . $cell_phone . ""\xa }"; error_log("save_appointment - custmomer create payload " . $str_payload); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "https://developer.setmore.com/api/v1/bookingapi/customer/create", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\xa "first_name":"" . $first_name . "", \xa "last_name":"" . $last_name . "", \xa "email_id":"" . $email_id . "",
"country_code":"+91",
"cell_phone":"" . $cell_phone . ""\xa }", CURLOPT_HTTPHEADER => array("Accept: application/json", "Content-Type: application/json", "Authorization: Bearer {$access_token}"))); $response = curl_exec($curl); error_log("save_appointment.php --->>> customer/create: " . $response); $response_decoded = json_decode($response, true); $err = curl_error($curl); if ($err) { $err_when = "Trying to create customer Line No.: 224, save_appointment.php"; $api_payload = "setmore/api/v1/bookingapi/customer/create, payload: " . $str_payload; $sql_insert_error_2 = "INSERT INTO setmore_errors
(err_details, err_when, api_payload, date_added) VALUES \xa ('{$err}', '{$err_when}', '{$api_payload}', '{$date_added}')"; mysqli_query($DBConnection, $sql_insert_error_2); die; } curl_close($curl); $customer_key = $response_decoded["data"]["customer"]["key"]; if ($err) { echo "{"status":"400","message":"Error saving customer","details":"" . $err . ""}"; die; } else { if ($customer_key == '') { echo "{"status":"400","message":"Error identifying customer"}"; die; } } } $sql_get_doc_id = "SELECT sa.doc_id \xa FROM \xa setmore_availability sa \xa INNER JOIN setmore_doc_mapping dm on sa.doc_id = dm.doc_id
WHERE \xa sa.slot_id= '{$slot_id}' AND
dm.service_id= '{$service_id}' AND
sa.is_available = 1
ORDER BY rand() \xa LIMIT 1"; error_log("save_appointment.php - >>> " . $sql_get_doc_id); $rs_get_doc_id = mysqli_query($DBConnection, $sql_get_doc_id) or die(mysqli_error($DBConnection)); $row_get_doc_id = mysqli_fetch_assoc($rs_get_doc_id); $doc_id = $row_get_doc_id["doc_id"]; if ($doc_id == '') { $json["status"] = 400; $json["message"] = "unable to get doctor"; $json["api_name"] = "save_appointment"; echo json_encode($json); die; } else { $curl = curl_init(); $str_payload_2 = "{
"staff_key": "" . $doc_id . "",\xa "service_key": "" . $service_id . "",
"customer_key": "" . $customer_key . "",
"start_time": "" . $start_time . "",\xa "end_time": "" . $end_time . "",
"comment": "" . $comment . ""
}"; curl_setopt_array($curl, array(CURLOPT_URL => "https://developer.setmore.com/api/v1/bookingapi/appointment/create", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\xa "staff_key": "" . $doc_id . "",\xa "service_key": "" . $service_id . "",\xa "customer_key": "" . $customer_key . "",\xa "start_time": "" . $start_time . "",
"end_time": "" . $end_time . "",\xa "comment": "" . $comment . ""
}", CURLOPT_HTTPHEADER => array("Accept: application/json", "Content-Type: application/json", "Authorization: Bearer {$access_token}"))); $response_booking = curl_exec($curl); error_log("save_appointment.php -->> appointment/create: " . $response_booking); $response_booking_decoded = json_decode($response_booking, true); $err = curl_error($curl); curl_close($curl); if ($err || $response_booking_decoded["response"] != true) { $error_message = "creating appointment"; $str_data_receieved = "response: " . htmlentities($response_booking_decoded["msg"], ENT_QUOTES); $sql_insert_data_recieved_ERR = "INSERT INTO setmore_errors \xa (err_details, err_when, api_payload, date_added) VALUES \xa ('{$response_booking}', '{$str_payload_2}', '{$str_data_receieved}', '{$date_added}')"; error_log($response_booking); error_log($sql_insert_data_recieved_ERR); mysqli_query($DBConnection, $sql_insert_data_recieved_ERR); echo "{"status":"400","message":"" . $response_booking_decoded["msg"] . "","details":"" . $err . ""}"; die; } else { $appointment_key = $response_booking_decoded["data"]["appointment"]["key"]; $start_time = $response_booking_decoded["data"]["appointment"]["start_time"]; $appointment_date_arr = explode("T", $start_time); $appointment_date = $appointment_date_arr[0]; $appointment_date_2 = $appointment_date_arr[1]; $appointment_date_new = date("m/d/Y", strtotime($appointment_date)); $appointment_date_db_dump = date("Y-m-d", strtotime($appointment_date)); $slot_time_arr = explode("Z", $appointment_date_2); $slot_time_raw = $slot_time_arr[0]; $start_time_new = date("h:i A", strtotime($slot_time_raw)); $end_time = $response_booking_decoded["data"]["appointment"]["end_time"]; $duration = $response_booking_decoded["data"]["appointment"]["duration"]; $customer_key = $response_booking_decoded["data"]["appointment"]["customer_key"]; $comment = $response_booking_decoded["data"]["appointment"]["comment"]; $sql_update_is_available = "UPDATE setmore_availability SET is_available = '0', date_updated = '{$date_updated}'
WHERE doc_id = '{$doc_id}' AND slot_id = '{$slot_id}'"; error_log("save_appointment.php - >>> " . $sql_update_is_available); mysqli_query($DBConnection, $sql_update_is_available); if ($customer_id == '') { $sql_insert_appointment = "INSERT INTO doc_consultation \xa (appointment_booking_id, `booking_timestamp`, slot_id, `customer_name`, `mobile`, `email`, `consultation_date`, `consult_time`, `customer_selected_therapy`, `doc_id`, `customer_comments`, `utm_source`, `sz`, `date_added`, `date_updated`, `active_status`) VALUES
('{$appointment_key}', '{$start_time}', '{$slot_id}', '{$name}', '{$cell_phone}', '{$email_id}', '{$appointment_date_db_dump}', '{$start_time_new}', '{$service_id}', '{$doc_id}', '{$comment}', '{$utm_source}', '{$utm_medium}', '{$date_added}', '{$date_added}', '1')"; } else { $sql_insert_appointment = "INSERT INTO doc_consultation \xa (appointment_booking_id, `booking_timestamp`, slot_id, `customer_name`, `mobile`, `email`, `consultation_date`, `consult_time`, `customer_selected_therapy`, `doc_id`, `customer_comments`, `utm_source`, `sz`, customer_id, `date_added`, `date_updated`, `active_status`) VALUES
('{$appointment_key}', '{$start_time}', '{$slot_id}', '{$name}', '{$cell_phone}', '{$email_id}', '{$appointment_date_db_dump}', '{$start_time_new}', '{$service_id}', '{$doc_id}', '{$comment}', '{$utm_source}', '{$utm_medium}', '{$customer_id}', '{$date_added}', '{$date_added}', '1')"; } error_log("*************** Booking appointment *************** " . $sql_insert_appointment); mysqli_query($DBConnection, $sql_insert_appointment); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "https://kapiva.app/webengage-api/phone-encrypt.php?phone=91" . $cell_phone, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array("Content-Type: application/json"))); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); $json = json_decode($response); $mobile_hash = $json->encrypted; $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "https://api.in.webengage.com/v1/accounts/in~14507c77b/users", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{
"userId":"" . $mobile_hash . "",\xa "email":"" . $email_id . "",
"phone":"" . $cell_phone . "",
"emailOptIn":true,\xa "whatsappOptIn":true,
"smsOptIn": true
}", CURLOPT_HTTPHEADER => array("Authorization: Bearer ed8a3c04-43b6-4e62-9488-bbf7c94426a3", "Content-Type: application/json", "Accept: application/json"))); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); $str_payload_3 = "{
"userId":"" . $mobile_hash . "",
"eventName": "dc_appointment_created",
"eventData": {\xa "Customer_Id":"" . $email_id . "",\xa "Phone":"" . $cell_phone . "",
"Email":"" . $email_id . "",\xa "consultation_type":"New-Consultation",
"dc_solution_category":"" . $service_id . "",
"dc_appointment_date":"" . $appointment_date_new . "",\xa "dc_appointment_id":"" . $appointment_key . "",\xa "dc_appointment_time":"" . $start_time_new . "",\xa "dc_doc_id":"" . $doc_id . ""
}}"; $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "https://api.in.webengage.com/v1/accounts/in~14507c77b/events", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{
"userId":"" . $mobile_hash . "",\xa "eventName": "dc_appointment_created",\xa "eventData": {
"Customer_Id":"" . $email_id . "",
"Phone":"" . $cell_phone . "",
"Email":"" . $email_id . "",
"consultation_type":"New-Consultation",\xa "dc_solution_category":"" . $service_id . "",
"dc_appointment_date":"" . $appointment_date_new . "",\xa "dc_appointment_id":"" . $appointment_key . "",
"dc_appointment_time":"" . $start_time_new . "",
"dc_doc_id":"" . $doc_id . ""\xa }}", CURLOPT_HTTPHEADER => array("Authorization: Bearer ed8a3c04-43b6-4e62-9488-bbf7c94426a3", "Content-Type: application/json", "Accept: application/json"))); $response = curl_exec($curl); $err = curl_error($curl); if ($err) { } curl_close($curl); } $data = array("status" => "200", "message" => "Appointment created successfully", "appointment_key" => $appointment_key, "staff_key" => $doc_id, "start_time" => $start_time, "end_time" => $end_time, "duration" => $duration, "customer_key" => $customer_key, "comment" => $comment); header("Content-type: application/json"); echo json_encode($data); die; } } goto H6QZ0; d7XGa: $start_time = $data->start_time; goto Jm5GP; HIUsT: session_start(); goto rDcLl; lt53v: header("Content-Type: application/json; charset=UTF-8"); goto PK9OJ; TaL_C: $date_added = date("Y-m-d H:i:s"); goto ssGFK; CZaP2: $first_name = str_replace("'", "`", $data->first_name); goto gMr16; tgRH3: $rs_timestamp = mysqli_fetch_assoc($rs_timestamp); goto ZDKFW; nK0fl: $refreshToken = "r1/cb72dbe0098HDmS_Ax0lw1FK4iDn3S0H056uWSl55q9vl"; goto TaL_C; rDcLl: require_once "../database/database.php"; goto yOaGc; H6QZ0: ?>
Did this file decode correctly?
Original Code
<?php
goto HIUsT; yOaGc: global $DBConnection; goto ZgguJ; K3e3D: $cell_phone = $data->cell_phone; goto fWWe6; QAjdc: $refreshToken = $_REQUEST["\x72\145\146\x72\145\163\150\124\157\153\x65\x6e"]; goto nK0fl; oVeUM: error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); goto QAjdc; ssGFK: $date_updated = date("\x59\x2d\x6d\x2d\144\40\110\x3a\x69\x3a\163"); goto hiRwI; NqO7I: $utm_source = str_replace("\x27", "\x60", $data->utm_source); goto F93Gs; ZgguJ: header("\101\x63\143\x65\x73\163\x2d\x43\157\156\164\x72\x6f\154\x2d\x41\x6c\x6c\x6f\167\x2d\117\162\151\x67\x69\156\72\40\x2a"); goto lt53v; Rx63R: $customer_id = $data->customer_id; goto K3e3D; ZDKFW: $curr_time = $rs_timestamp["\143\165\x72\x72\x5f\164\151\x6d\x65"]; goto guXFX; oDIUP: $comment = str_replace("\x27", "\140", $data->comment); goto kaLgi; fWWe6: $service_id = $data->service_key; goto HgXcJ; XO20j: $rs_timestamp = mysqli_query($DBConnection, $chk_timestamp) or die(mysqli_error($DBConnection)); goto tgRH3; hiRwI: $chk_timestamp = "\x53\x45\114\105\103\x54\40\x2a\x20\106\x52\x4f\x4d\40\x73\145\164\x6d\157\x72\x65\137\163\x6c\157\164\x5f\160\165\154\x6c"; goto XO20j; S1POY: if (time() - 7199 > $curr_time) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "\150\x74\x74\160\163\72\x2f\57\144\x65\x76\145\154\157\160\x65\162\x2e\163\x65\164\155\x6f\x72\x65\56\143\157\x6d\57\141\160\x69\57\x76\x31\x2f\157\57\x6f\x61\x75\x74\150\62\57\164\x6f\153\x65\x6e\77\x72\x65\x66\162\145\163\150\124\x6f\x6b\145\x6e\x3d{$refreshToken}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\107\105\124", CURLOPT_HTTPHEADER => array())); $response_access_token = curl_exec($curl); $response_access_token = json_decode($response_access_token, true); $err = curl_error($curl); if ($err) { $erro_when = "\x54\162\x79\x69\x6e\147\40\x74\157\40\147\145\164\x20\x61\143\143\145\x73\163\40\164\x6f\153\145\156\40\x4c\151\156\x65\x20\x4e\157\56\72\40\65\62\54\x20\163\141\166\145\137\141\160\x70\157\x69\156\x74\x6d\x65\156\164\x2e\x70\x68\x70"; $api_payload = "\150\x74\x74\x70\163\x3a\57\57\x64\x65\166\x65\x6c\x6f\x70\x65\x72\56\x73\145\164\x6d\x6f\x72\145\56\143\157\155\x2f\x61\x70\x69\57\166\x31\57\157\57\157\x61\x75\x74\x68\62\x2f\x74\157\x6b\x65\156\x3f\162\145\146\162\x65\x73\150\x54\157\153\x65\x6e\75{$refreshToken}"; $sql_insert_error_1 = "\111\x4e\x53\x45\x52\124\40\x49\116\124\x4f\x20\x73\145\164\155\157\x72\145\x5f\x65\x72\x72\x6f\162\163\x20\12\40\40\40\40\40\40\x20\x20\x20\40\40\x20\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\40\50\x65\162\162\x5f\x64\x65\x74\x61\151\154\163\x2c\40\145\162\x72\137\167\x68\x65\x6e\54\40\x61\x70\x69\137\160\141\171\x6c\x6f\141\144\54\40\144\141\164\145\137\141\x64\144\145\144\51\40\126\x41\x4c\125\105\x53\40\xa\x20\40\x20\40\x20\40\x20\40\40\x20\40\40\x20\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\x20\50\x27{$err}\47\x2c\x20\x27{$err_when}\47\54\x20\47{$api_payload}\x27\54\x20\47{$date_added}\47\51"; mysqli_query($DBConnection, $sql_insert_error_1); die; } curl_close($curl); $access_token = $response_access_token["\144\x61\164\x61"]["\164\157\153\145\x6e"]["\x61\x63\x63\145\x73\x73\137\x74\x6f\153\x65\156"]; $sql_update_timestamp = "\125\x50\x44\101\x54\x45\40\x73\x65\x74\155\x6f\162\x65\x5f\x73\154\x6f\x74\137\x70\x75\154\x6c\x20\123\105\x54\x20\x61\x63\143\x65\163\x73\x5f\164\x6f\153\x65\156\40\x3d\40\47{$access_token}\x27\54\x20\144\x61\164\x65\x5f\x75\x70\x64\141\x74\145\x64\40\75\40\47{$date_added}\47\40\127\110\x45\122\x45\x20\x73\x65\x74\155\157\162\x65\x5f\x73\154\x6f\164\x5f\x70\165\x6c\x6c\137\151\x64\40\x3d\40\x27{$setmore_slot_pull_id}\47"; mysqli_query($DBConnection, $sql_update_timestamp) or die(mysqli_error($DBConnection)); } else { $access_token = $rs_timestamp["\x61\143\143\x65\x73\163\x5f\164\157\153\x65\156"]; } goto zjv4A; gMr16: $last_name = str_replace("\x27", "\x60", $data->last_name); goto EtWk_; kaLgi: $utm_medium = str_replace("\47", "\140", $data->utm_medium); goto NqO7I; Jm5GP: $end_time = $data->end_time; goto oDIUP; guXFX: $setmore_slot_pull_id = $rs_timestamp["\163\x65\164\155\x6f\x72\x65\x5f\x73\x6c\157\x74\137\160\165\x6c\x6c\137\x69\x64"]; goto S1POY; KAf1b: $email_id = $data->email_id; goto Rx63R; KKTI8: error_log("\x2d\55\x2d\55\55\40\x44\101\x54\101\40\x52\105\103\x49\105\x56\105\104\x20\x2d\x2d\x2d\x2d\55\x20" . $str_data_receieved); goto ynIEt; EtWk_: $name = $first_name . "\40" . $last_name; goto KAf1b; mX4dF: header("\x41\x63\143\145\163\x73\x2d\x43\x6f\x6e\164\x72\x6f\154\55\101\x6c\x6c\x6f\x77\x2d\x48\x65\141\x64\145\162\163\72\40\103\157\156\164\145\x6e\x74\55\x54\x79\x70\145\x2c\x20\x41\x63\143\x65\163\163\55\103\157\156\164\162\157\x6c\x2d\x41\x6c\154\157\167\x2d\x48\x65\x61\x64\145\x72\163\x2c\x20\101\165\x74\x68\157\x72\x69\172\x61\164\151\x6f\156\x2c\40\x58\x2d\x52\x65\x71\x75\145\x73\x74\x65\x64\55\127\x69\x74\x68"); goto oVeUM; zjv4A: $data = json_decode(file_get_contents("\x70\x68\x70\72\x2f\57\151\156\x70\165\164")); goto CZaP2; Jy6I9: header("\x41\143\143\x65\x73\x73\x2d\103\x6f\x6e\x74\162\157\154\55\x4d\141\x78\x2d\101\x67\x65\72\x20\63\66\60\x30"); goto mX4dF; PK9OJ: header("\101\x63\x63\x65\163\163\x2d\x43\157\156\x74\x72\x6f\154\55\x41\x6c\x6c\157\167\x2d\x4d\x65\164\150\157\x64\163\x3a\x20\120\117\123\x54\54\x20\x44\105\x4c\105\124\x45\54\x20\117\x50\124\x49\117\x4e\x53"); goto Jy6I9; HgXcJ: $slot_id = $data->slot_id; goto d7XGa; F93Gs: $str_data_receieved = "\x7b\xa\40\x20\x20\x20\x22\146\151\162\x73\164\x5f\156\x61\155\145\42\x3a\42" . $first_name . "\x22\54\x20\x20\x20\x20\x20\40\xa\40\40\40\40\42\x6c\x61\163\164\x5f\156\x61\155\145\x22\72\42" . $last_name . "\42\x2c\40\40\40\x20\12\40\40\40\x20\x22\x63\165\x73\x74\x6f\x6d\x65\162\x5f\x69\144\42\x3a\x22" . $customer_id . "\42\54\12\40\x20\x20\x20\42\145\155\x61\x69\x6c\x5f\151\144\42\x3a\x22" . $email_id . "\x22\x2c\12\40\x20\x20\x20\42\x73\x65\x72\166\x69\x63\x65\137\151\x64\x22\x3a\x22" . $service_id . "\x22\54\xa\40\x20\x20\40\42\x73\154\x6f\x74\x5f\x69\x64\x22\72\x22" . $slot_id . "\x22\x2c\xa\40\40\40\40\42\x73\164\141\x72\164\137\x74\x69\155\145\42\72\42" . $start_time . "\x22\54\xa\x20\40\x20\40\42\x65\x6e\x64\137\x74\151\x6d\145\x22\x3a\42" . $end_time . "\42\x2c\xa\40\x20\40\40\42\143\157\155\x6d\145\156\x74\42\72\x22" . $comment . "\x22\54\12\x20\x20\40\x20\x22\165\x74\155\x5f\x6d\x65\x64\x69\x75\x6d\42\x3a\x22" . $utm_medium . "\x22\x2c\12\40\40\x20\40\42\165\164\x6d\x5f\x73\x6f\x75\162\143\x65\42\x3a\x22" . $utm_source . "\x22\54\12\x20\40\40\x20\x22\x63\157\165\156\164\162\171\137\143\157\x64\145\x22\x3a\x22\x2b\x39\61\42\54\12\40\x20\x20\x20\x22\143\145\154\x6c\137\160\150\157\x6e\x65\x22\x3a\42" . $cell_phone . "\x22\12\x7d"; goto KKTI8; ynIEt: if ($access_token == '' || $first_name == '' || $email_id == '' || $cell_phone == '') { $json["\x73\x74\x61\x74\x75\x73"] = 400; $json["\155\145\x73\x73\x61\147\145"] = "\141\x63\x63\x65\163\x73\40\x74\x6f\153\x65\x6e\40\x61\156\x64\40\x6f\x74\x68\145\x72\40\142\x61\x73\x69\x63\40\144\x61\164\141\40\155\x69\163\163\x69\x6e\x67"; $json["\x61\160\151\137\156\x61\155\145"] = "\163\141\x76\x65\137\141\x70\x70\157\151\x6e\164\155\145\156\164"; echo json_encode($json); die; } else { $error_message = "\x62\157\157\x6b\x69\156\x67\40\144\x61\164\141\40\162\145\x63\151\x65\166\x65\144"; $api_payload = "\163\145\164\155\x6f\162\x65\x2f\141\160\151\x2f\x76\61\57\142\x6f\x6f\x6b\x69\x6e\x67\x61\x70\x69\57\143\165\163\164\x6f\x6d\145\162\57\143\x72\145\141\164\145"; $sql_insert_data_recieved = "\111\x4e\123\105\x52\124\x20\x49\x4e\124\x4f\40\163\x65\x74\x6d\x6f\x72\145\137\x65\162\x72\x6f\x72\x73\40\12\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\40\50\145\x72\x72\137\144\x65\x74\x61\x69\154\163\x2c\40\x65\162\x72\137\x77\x68\145\x6e\54\x20\x61\160\151\137\x70\x61\171\154\157\x61\144\x2c\40\x64\141\164\x65\137\141\x64\144\145\x64\x29\40\126\101\114\125\105\123\40\xa\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x28\47{$error_message}\47\54\x20\47{$str_data_receieved}\x27\54\x20\x27{$api_payload}\47\x2c\x20\47{$date_added}\47\51"; mysqli_query($DBConnection, $sql_insert_data_recieved); if ($customer_key == '') { $str_payload = "\x7b\12\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\42\x66\151\162\x73\164\x5f\x6e\x61\155\x65\42\x3a\42" . $first_name . "\42\x2c\x20\x20\x20\x20\40\x20\xa\40\40\40\40\x20\40\x20\40\40\x20\40\x20\x22\x6c\141\163\164\x5f\156\141\155\x65\x22\x3a\x22" . $last_name . "\x22\x2c\40\40\x20\40\xa\x20\x20\40\x20\40\x20\x20\40\40\40\40\40\x22\145\155\141\x69\x6c\137\151\x64\x22\72\42" . $email_id . "\x22\x2c\12\40\x20\x20\x20\40\40\x20\x20\40\40\40\40\42\x63\x6f\x75\x6e\164\x72\x79\x5f\x63\157\144\x65\x22\72\x22\x2b\x39\x31\42\x2c\12\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\x22\143\x65\154\154\137\160\150\157\x6e\145\42\x3a\x22" . $cell_phone . "\x22\xa\x20\40\x20\x20\x20\x20\40\40\x7d"; error_log("\x73\x61\x76\x65\x5f\141\x70\160\x6f\x69\156\x74\155\145\x6e\x74\x20\x2d\x20\x63\x75\163\164\x6d\x6f\x6d\x65\162\x20\143\x72\145\141\164\145\40\160\141\x79\154\157\141\144\x20" . $str_payload); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "\150\x74\x74\160\x73\x3a\57\x2f\x64\x65\166\x65\x6c\157\160\x65\162\x2e\163\x65\x74\155\x6f\162\145\x2e\143\x6f\155\57\x61\x70\151\57\x76\61\x2f\142\157\x6f\153\151\x6e\x67\x61\x70\x69\57\x63\x75\163\x74\157\x6d\x65\x72\x2f\x63\162\x65\141\164\145", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\120\117\123\x54", CURLOPT_POSTFIELDS => "\x7b\xa\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\x22\x66\151\162\163\164\137\x6e\x61\155\x65\x22\72\42" . $first_name . "\x22\54\40\x20\x20\x20\40\40\xa\40\40\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\40\40\40\x20\x20\x22\154\x61\x73\x74\137\x6e\141\x6d\x65\x22\x3a\42" . $last_name . "\x22\54\x20\x20\x20\x20\xa\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x22\x65\x6d\141\151\154\x5f\x69\x64\x22\72\x22" . $email_id . "\x22\54\12\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\42\143\157\165\x6e\x74\162\x79\137\x63\157\144\145\x22\x3a\42\53\x39\61\x22\54\12\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\42\143\x65\x6c\154\x5f\x70\150\x6f\156\x65\42\x3a\x22" . $cell_phone . "\42\xa\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\175", CURLOPT_HTTPHEADER => array("\101\143\143\x65\x70\x74\x3a\40\x61\x70\160\x6c\x69\143\x61\164\151\157\156\57\x6a\163\157\x6e", "\103\x6f\156\x74\x65\x6e\x74\x2d\124\171\x70\145\x3a\40\141\x70\160\x6c\x69\x63\141\164\151\157\156\57\152\x73\x6f\x6e", "\101\165\164\x68\157\162\151\x7a\141\164\151\157\156\x3a\x20\102\x65\x61\162\x65\162\x20{$access_token}"))); $response = curl_exec($curl); error_log("\x73\x61\x76\x65\x5f\x61\160\x70\157\x69\156\x74\x6d\145\156\164\x2e\x70\x68\160\40\x2d\55\55\76\76\x3e\x20\x63\165\163\x74\x6f\x6d\x65\162\x2f\x63\x72\145\141\164\145\72\40" . $response); $response_decoded = json_decode($response, true); $err = curl_error($curl); if ($err) { $err_when = "\x54\x72\x79\x69\x6e\x67\x20\x74\x6f\x20\143\162\x65\x61\164\x65\40\143\165\x73\164\x6f\x6d\x65\x72\x20\x4c\x69\156\x65\x20\x4e\157\x2e\x3a\x20\62\62\x34\x2c\40\163\141\x76\x65\137\141\160\160\x6f\151\x6e\x74\155\x65\156\164\56\160\150\160"; $api_payload = "\x73\145\x74\155\157\162\145\57\x61\x70\x69\57\166\61\x2f\142\157\157\153\151\x6e\x67\141\x70\151\57\x63\x75\x73\x74\x6f\x6d\145\162\57\x63\162\x65\x61\x74\145\x2c\40\x70\141\x79\154\x6f\x61\144\x3a\40" . $str_payload; $sql_insert_error_2 = "\111\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\117\x20\163\145\164\155\x6f\x72\x65\x5f\145\162\162\x6f\x72\x73\40\12\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\40\x20\x20\50\145\162\x72\x5f\144\145\x74\x61\151\154\x73\54\x20\x65\x72\x72\x5f\167\x68\145\x6e\54\x20\x61\160\151\x5f\160\141\171\154\157\141\144\x2c\x20\144\141\164\x65\x5f\x61\144\x64\x65\x64\x29\40\126\101\x4c\125\105\123\x20\xa\40\40\x20\40\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x28\47{$err}\47\54\40\47{$err_when}\x27\x2c\40\47{$api_payload}\47\x2c\x20\47{$date_added}\x27\51"; mysqli_query($DBConnection, $sql_insert_error_2); die; } curl_close($curl); $customer_key = $response_decoded["\x64\x61\x74\x61"]["\x63\165\x73\164\x6f\x6d\145\162"]["\x6b\x65\x79"]; if ($err) { echo "\173\x22\x73\x74\141\x74\165\x73\x22\x3a\x22\x34\60\60\42\54\42\155\145\x73\163\x61\x67\145\42\72\x22\x45\x72\162\x6f\162\40\x73\141\x76\151\x6e\147\40\x63\x75\x73\x74\x6f\x6d\x65\162\42\x2c\x22\x64\145\164\141\151\154\163\x22\72\x22" . $err . "\x22\175"; die; } else { if ($customer_key == '') { echo "\173\x22\x73\164\141\x74\x75\163\42\72\42\x34\60\x30\x22\54\x22\155\145\x73\x73\x61\147\145\x22\x3a\42\x45\x72\x72\x6f\x72\40\151\144\145\156\164\x69\x66\171\151\156\147\40\143\165\163\164\157\x6d\145\x72\x22\175"; die; } } } $sql_get_doc_id = "\123\x45\114\105\103\x54\40\x73\141\56\x64\157\x63\x5f\x69\x64\x20\xa\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\40\40\40\40\106\122\117\115\x20\xa\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\40\40\40\x20\40\40\x20\x20\163\145\164\x6d\157\x72\145\x5f\141\166\141\151\154\141\x62\151\x6c\151\164\171\x20\163\141\40\xa\x20\40\40\40\40\40\40\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\40\x20\40\40\x20\40\x49\x4e\116\x45\x52\40\112\x4f\111\116\x20\x73\145\x74\155\x6f\162\x65\137\144\x6f\x63\x5f\155\x61\160\160\151\156\x67\40\144\155\x20\157\156\40\163\x61\x2e\144\157\143\x5f\x69\x64\40\75\x20\144\155\56\x64\x6f\143\137\151\x64\x20\12\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\40\x57\x48\105\122\x45\x20\xa\40\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\x20\40\40\40\40\40\163\x61\x2e\163\x6c\157\x74\137\x69\144\x3d\x20\47{$slot_id}\47\40\x41\116\104\x20\12\x20\40\40\40\40\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\40\x20\144\x6d\x2e\163\145\162\x76\x69\x63\145\x5f\x69\x64\75\x20\47{$service_id}\x27\x20\x41\116\104\x20\12\40\40\40\x20\40\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\40\x20\40\163\141\x2e\x69\x73\x5f\x61\x76\x61\x69\154\x61\142\x6c\145\40\75\x20\61\x20\12\x20\x20\x20\40\40\x20\40\x20\40\40\40\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\117\x52\x44\105\x52\40\102\131\40\x72\x61\x6e\x64\50\x29\x20\xa\40\x20\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x4c\x49\115\111\124\x20\x31"; error_log("\163\141\166\x65\x5f\x61\x70\x70\157\151\156\164\x6d\145\156\x74\56\160\150\x70\x20\x2d\x20\76\x3e\76\x20" . $sql_get_doc_id); $rs_get_doc_id = mysqli_query($DBConnection, $sql_get_doc_id) or die(mysqli_error($DBConnection)); $row_get_doc_id = mysqli_fetch_assoc($rs_get_doc_id); $doc_id = $row_get_doc_id["\x64\x6f\143\x5f\151\144"]; if ($doc_id == '') { $json["\163\x74\141\164\165\163"] = 400; $json["\155\x65\163\163\x61\147\x65"] = "\165\156\x61\x62\x6c\145\x20\x74\157\x20\147\x65\164\x20\144\157\x63\x74\x6f\162"; $json["\141\160\x69\137\156\x61\x6d\x65"] = "\163\141\x76\x65\137\141\x70\160\157\x69\x6e\164\155\145\x6e\164"; echo json_encode($json); die; } else { $curl = curl_init(); $str_payload_2 = "\x7b\12\x20\40\40\40\40\x20\x20\40\40\x20\40\x20\x22\163\164\x61\x66\x66\x5f\153\145\171\42\72\x20\x22" . $doc_id . "\x22\x2c\xa\40\x20\40\40\40\x20\40\40\x20\x20\x20\40\42\x73\x65\162\166\151\x63\x65\137\x6b\145\171\42\x3a\40\42" . $service_id . "\42\x2c\12\x20\x20\40\40\40\x20\40\x20\x20\40\x20\40\42\143\165\163\164\x6f\155\145\x72\x5f\153\x65\171\42\x3a\x20\42" . $customer_key . "\x22\x2c\12\40\40\x20\40\40\x20\40\40\40\40\40\x20\x22\163\164\141\x72\x74\x5f\164\151\155\145\x22\x3a\40\42" . $start_time . "\x22\x2c\xa\40\40\x20\40\x20\40\x20\40\40\40\40\x20\42\x65\156\144\x5f\164\x69\155\145\x22\72\40\42" . $end_time . "\x22\54\12\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\x22\x63\x6f\x6d\x6d\145\x6e\164\42\x3a\40\x22" . $comment . "\42\12\x20\x20\x20\x20\x20\40\x20\40\x7d"; curl_setopt_array($curl, array(CURLOPT_URL => "\x68\x74\164\160\163\72\x2f\x2f\x64\x65\166\x65\154\157\160\145\162\56\163\145\164\155\x6f\162\x65\x2e\143\x6f\155\x2f\x61\160\151\57\x76\x31\x2f\x62\x6f\157\153\151\x6e\x67\x61\160\x69\x2f\x61\160\x70\x6f\151\156\x74\155\x65\156\x74\57\143\162\x65\141\x74\x65", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\x50\x4f\123\124", CURLOPT_POSTFIELDS => "\x7b\xa\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\40\40\40\x20\x20\40\x20\40\40\x20\x22\163\x74\x61\146\x66\x5f\x6b\145\171\42\72\40\x22" . $doc_id . "\42\54\xa\x20\x20\40\x20\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x22\x73\x65\x72\x76\x69\x63\145\137\x6b\145\171\42\x3a\40\42" . $service_id . "\42\x2c\xa\x20\x20\40\40\40\40\x20\x20\40\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\40\x20\40\x20\42\x63\165\163\164\157\155\145\x72\137\x6b\145\171\42\72\x20\x22" . $customer_key . "\x22\54\xa\40\40\40\x20\40\40\x20\40\40\40\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\40\42\163\164\x61\x72\164\x5f\x74\x69\155\145\x22\x3a\x20\42" . $start_time . "\x22\54\12\40\x20\x20\40\40\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\x22\x65\x6e\144\x5f\x74\x69\155\145\42\x3a\40\42" . $end_time . "\x22\x2c\xa\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\40\x22\143\157\155\155\x65\156\164\42\x3a\x20\x22" . $comment . "\42\12\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x7d", CURLOPT_HTTPHEADER => array("\x41\x63\x63\145\160\164\x3a\40\x61\x70\160\x6c\x69\143\141\164\x69\x6f\x6e\57\152\x73\x6f\x6e", "\103\157\x6e\164\x65\156\164\55\124\x79\160\x65\x3a\x20\141\160\160\154\151\143\x61\x74\x69\157\156\x2f\152\163\157\x6e", "\101\x75\x74\x68\157\x72\151\172\x61\x74\x69\x6f\156\72\x20\102\145\x61\162\x65\x72\40{$access_token}"))); $response_booking = curl_exec($curl); error_log("\x73\x61\166\x65\137\x61\160\x70\x6f\151\x6e\164\x6d\x65\x6e\x74\x2e\x70\x68\160\40\55\55\x3e\76\x20\x61\160\x70\x6f\151\156\x74\155\145\156\x74\57\x63\x72\x65\x61\164\145\x3a\40" . $response_booking); $response_booking_decoded = json_decode($response_booking, true); $err = curl_error($curl); curl_close($curl); if ($err || $response_booking_decoded["\x72\x65\x73\x70\157\x6e\163\x65"] != true) { $error_message = "\143\x72\x65\x61\x74\151\x6e\x67\x20\x61\160\160\157\151\156\x74\x6d\145\x6e\164"; $str_data_receieved = "\162\145\163\160\x6f\x6e\x73\145\72\40" . htmlentities($response_booking_decoded["\x6d\x73\147"], ENT_QUOTES); $sql_insert_data_recieved_ERR = "\x49\116\123\x45\122\124\x20\x49\116\124\x4f\40\x73\145\164\155\157\x72\x65\137\x65\x72\162\x6f\x72\163\x20\xa\x20\40\40\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\50\145\x72\x72\x5f\144\145\164\141\x69\154\x73\x2c\x20\145\162\x72\137\x77\x68\145\156\x2c\40\141\x70\x69\x5f\160\141\171\x6c\157\x61\x64\x2c\x20\144\x61\x74\x65\x5f\141\x64\144\x65\x64\x29\40\x56\x41\x4c\125\105\x53\40\xa\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\x28\47{$response_booking}\x27\x2c\x20\x27{$str_payload_2}\47\54\x20\47{$str_data_receieved}\47\x2c\x20\47{$date_added}\x27\x29"; error_log($response_booking); error_log($sql_insert_data_recieved_ERR); mysqli_query($DBConnection, $sql_insert_data_recieved_ERR); echo "\173\x22\163\164\x61\x74\165\x73\x22\x3a\x22\64\60\60\x22\x2c\42\155\x65\x73\x73\x61\x67\145\42\x3a\42" . $response_booking_decoded["\x6d\163\147"] . "\42\x2c\42\144\145\x74\141\151\x6c\163\42\72\42" . $err . "\42\175"; die; } else { $appointment_key = $response_booking_decoded["\x64\141\164\141"]["\x61\160\160\x6f\x69\156\x74\x6d\x65\x6e\164"]["\x6b\x65\x79"]; $start_time = $response_booking_decoded["\144\x61\164\x61"]["\x61\x70\x70\157\151\156\164\x6d\145\x6e\x74"]["\163\164\x61\162\164\x5f\164\x69\x6d\x65"]; $appointment_date_arr = explode("\x54", $start_time); $appointment_date = $appointment_date_arr[0]; $appointment_date_2 = $appointment_date_arr[1]; $appointment_date_new = date("\x6d\x2f\144\x2f\x59", strtotime($appointment_date)); $appointment_date_db_dump = date("\x59\x2d\x6d\x2d\144", strtotime($appointment_date)); $slot_time_arr = explode("\x5a", $appointment_date_2); $slot_time_raw = $slot_time_arr[0]; $start_time_new = date("\x68\72\x69\40\101", strtotime($slot_time_raw)); $end_time = $response_booking_decoded["\144\x61\164\x61"]["\x61\160\x70\157\x69\156\164\155\145\x6e\x74"]["\145\x6e\x64\137\x74\151\155\145"]; $duration = $response_booking_decoded["\x64\141\164\141"]["\x61\x70\x70\157\x69\156\x74\155\x65\156\164"]["\x64\165\162\x61\164\151\157\x6e"]; $customer_key = $response_booking_decoded["\144\x61\x74\141"]["\x61\160\x70\157\x69\x6e\164\155\x65\x6e\x74"]["\143\x75\163\164\157\x6d\x65\x72\137\153\145\171"]; $comment = $response_booking_decoded["\x64\141\164\x61"]["\141\x70\x70\x6f\x69\156\x74\155\x65\156\x74"]["\143\157\155\x6d\x65\x6e\164"]; $sql_update_is_available = "\125\x50\104\x41\124\x45\40\x73\x65\x74\x6d\x6f\162\x65\137\141\x76\x61\151\154\x61\142\x69\x6c\151\164\171\40\123\105\x54\x20\x69\163\x5f\141\x76\141\x69\x6c\x61\x62\x6c\x65\40\x3d\40\47\60\47\54\40\x64\x61\x74\145\137\x75\x70\144\x61\x74\145\x64\40\x3d\40\x27{$date_updated}\47\x20\12\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\40\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\x20\127\110\x45\122\105\40\144\157\143\137\x69\144\x20\x3d\x20\47{$doc_id}\x27\x20\101\116\104\x20\x73\154\157\164\x5f\x69\x64\40\x3d\x20\47{$slot_id}\x27"; error_log("\x73\141\166\x65\x5f\x61\x70\160\x6f\151\156\x74\155\145\x6e\164\x2e\x70\150\160\x20\x2d\40\x3e\76\x3e\x20" . $sql_update_is_available); mysqli_query($DBConnection, $sql_update_is_available); if ($customer_id == '') { $sql_insert_appointment = "\x49\x4e\x53\x45\x52\124\40\111\116\124\x4f\x20\x64\x6f\x63\x5f\143\x6f\x6e\x73\165\x6c\164\141\164\151\157\156\x20\xa\40\x20\40\40\40\x20\40\40\40\x20\40\x20\40\40\40\40\40\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\40\40\40\x20\40\x20\40\40\40\40\x20\x20\40\40\40\50\x61\160\x70\157\x69\156\164\x6d\145\x6e\x74\137\142\x6f\x6f\153\x69\x6e\x67\x5f\151\x64\x2c\x20\x60\x62\157\x6f\153\x69\156\x67\x5f\164\x69\x6d\x65\163\x74\x61\x6d\160\x60\54\x20\163\x6c\157\x74\137\151\144\54\x20\x60\x63\165\x73\164\x6f\x6d\x65\162\137\x6e\x61\x6d\x65\140\x2c\x20\140\155\157\x62\x69\x6c\145\x60\x2c\40\x60\145\155\x61\x69\x6c\140\54\40\140\143\157\156\x73\165\154\164\x61\x74\151\x6f\156\137\x64\141\x74\145\x60\x2c\x20\x60\x63\157\156\x73\165\154\164\137\164\x69\155\145\x60\x2c\40\x60\x63\165\163\x74\x6f\x6d\x65\x72\x5f\163\x65\154\145\x63\164\x65\x64\x5f\x74\150\x65\162\x61\x70\171\x60\x2c\x20\x60\144\x6f\143\137\x69\x64\140\54\x20\x60\x63\165\163\x74\x6f\x6d\145\x72\x5f\143\157\x6d\x6d\x65\x6e\164\163\140\54\x20\140\x75\x74\x6d\x5f\x73\x6f\x75\162\x63\145\x60\x2c\40\x60\x73\x7a\x60\54\40\x60\x64\141\x74\x65\x5f\x61\x64\x64\145\x64\140\x2c\40\x60\144\141\x74\x65\x5f\x75\x70\144\141\x74\x65\144\140\54\x20\x60\141\143\x74\x69\x76\x65\x5f\x73\164\x61\x74\165\x73\140\51\40\x56\101\114\x55\105\123\40\12\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\x20\40\40\40\x28\x27{$appointment_key}\47\x2c\x20\x27{$start_time}\x27\54\x20\x27{$slot_id}\47\54\40\47{$name}\x27\x2c\40\x27{$cell_phone}\47\x2c\x20\47{$email_id}\x27\x2c\x20\x27{$appointment_date_db_dump}\47\54\40\47{$start_time_new}\x27\54\x20\47{$service_id}\x27\x2c\40\x27{$doc_id}\47\54\40\x27{$comment}\x27\54\x20\47{$utm_source}\x27\x2c\x20\x27{$utm_medium}\47\x2c\x20\x27{$date_added}\x27\x2c\40\47{$date_added}\47\54\x20\x27\61\47\51"; } else { $sql_insert_appointment = "\111\x4e\x53\105\x52\124\x20\x49\116\124\117\40\144\x6f\143\137\x63\x6f\156\x73\165\154\x74\141\164\x69\x6f\x6e\x20\xa\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\x20\x20\x20\x28\x61\x70\160\157\151\156\164\155\145\x6e\164\x5f\142\157\x6f\x6b\x69\x6e\147\137\x69\x64\x2c\40\x60\x62\157\x6f\x6b\151\x6e\147\137\x74\151\x6d\145\163\164\x61\x6d\x70\140\x2c\x20\163\154\157\164\x5f\151\144\54\40\x60\143\165\x73\x74\157\x6d\145\162\x5f\x6e\141\x6d\145\140\54\40\x60\x6d\157\142\151\x6c\145\140\54\x20\140\x65\155\141\x69\154\140\54\40\x60\x63\157\x6e\x73\x75\154\164\141\164\151\157\156\x5f\144\141\x74\x65\140\x2c\40\140\143\157\156\x73\165\x6c\164\137\x74\151\155\x65\x60\x2c\x20\140\143\165\x73\164\157\155\x65\x72\137\x73\x65\x6c\145\143\164\145\144\x5f\164\150\x65\162\141\x70\171\140\x2c\x20\x60\144\x6f\x63\137\x69\144\140\54\x20\x60\x63\x75\x73\x74\157\155\x65\162\x5f\x63\x6f\x6d\x6d\x65\x6e\x74\163\x60\x2c\x20\x60\165\164\155\137\x73\157\165\x72\x63\x65\140\x2c\x20\x60\163\172\140\54\40\x63\165\163\x74\157\155\145\x72\137\151\x64\54\40\x60\144\x61\164\x65\x5f\x61\144\x64\x65\144\140\54\x20\x60\x64\x61\164\145\137\x75\160\144\141\x74\x65\x64\x60\x2c\40\140\x61\x63\164\x69\166\x65\137\163\164\x61\164\165\163\140\51\40\x56\x41\x4c\x55\x45\x53\40\12\x20\x20\40\x20\x20\x20\x20\40\40\40\40\40\x20\40\40\40\x20\x20\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x20\x20\40\x20\40\50\47{$appointment_key}\x27\x2c\x20\x27{$start_time}\47\x2c\x20\x27{$slot_id}\47\x2c\x20\x27{$name}\47\54\x20\x27{$cell_phone}\x27\54\40\x27{$email_id}\x27\x2c\x20\x27{$appointment_date_db_dump}\x27\54\x20\47{$start_time_new}\x27\x2c\40\47{$service_id}\x27\54\x20\x27{$doc_id}\x27\54\x20\x27{$comment}\x27\x2c\40\x27{$utm_source}\x27\x2c\x20\47{$utm_medium}\x27\54\x20\x27{$customer_id}\47\x2c\x20\x27{$date_added}\47\x2c\x20\47{$date_added}\x27\54\x20\47\61\x27\51"; } error_log("\x2a\52\52\52\52\52\x2a\52\52\x2a\x2a\x2a\x2a\x2a\52\x20\102\x6f\x6f\153\x69\156\147\40\141\x70\160\x6f\x69\x6e\164\155\145\156\x74\x20\x2a\52\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\40" . $sql_insert_appointment); mysqli_query($DBConnection, $sql_insert_appointment); $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "\x68\164\x74\160\x73\72\x2f\x2f\x6b\x61\x70\151\166\x61\56\x61\160\160\57\x77\x65\142\x65\156\147\141\x67\145\x2d\141\x70\x69\57\160\150\157\156\145\55\x65\156\143\x72\171\160\x74\x2e\x70\x68\160\x3f\160\150\157\156\145\x3d\x39\x31" . $cell_phone, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\x47\x45\x54", CURLOPT_HTTPHEADER => array("\103\157\x6e\164\x65\156\x74\x2d\124\x79\x70\x65\x3a\40\x61\160\160\x6c\x69\143\141\164\151\x6f\156\57\x6a\x73\x6f\x6e"))); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); $json = json_decode($response); $mobile_hash = $json->encrypted; $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "\150\x74\164\160\x73\x3a\57\x2f\141\x70\151\56\151\156\56\167\145\142\x65\x6e\x67\141\147\145\x2e\143\x6f\x6d\57\166\61\x2f\x61\143\x63\157\165\156\x74\163\x2f\x69\x6e\x7e\61\64\65\60\67\143\x37\67\x62\57\165\x73\x65\162\163", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\120\x4f\123\124", CURLOPT_POSTFIELDS => "\x7b\12\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\40\40\40\40\40\40\40\40\40\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x22\165\x73\145\162\111\144\42\72\x22" . $mobile_hash . "\42\54\xa\x20\40\x20\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x22\x65\155\141\151\x6c\42\x3a\42" . $email_id . "\42\x2c\12\x20\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\x22\160\x68\157\x6e\x65\42\x3a\42" . $cell_phone . "\42\x2c\12\x20\40\x20\40\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\40\x20\40\42\145\x6d\141\x69\154\117\160\x74\x49\x6e\x22\x3a\x74\162\x75\145\x2c\xa\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\x20\x20\40\x22\167\x68\141\x74\x73\x61\160\160\117\x70\164\x49\156\42\72\x74\x72\165\145\54\12\40\40\40\x20\x20\40\40\x20\40\40\40\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\40\x20\x20\40\x20\40\x20\42\163\155\x73\117\x70\x74\x49\156\x22\72\40\164\162\x75\145\12\x20\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x7d", CURLOPT_HTTPHEADER => array("\101\x75\164\150\157\162\151\172\141\164\x69\157\156\x3a\40\x42\145\x61\162\145\x72\x20\145\x64\70\141\x33\x63\60\x34\x2d\64\63\142\x36\x2d\64\x65\x36\x32\x2d\71\x34\70\70\x2d\x62\x62\x66\x37\x63\71\x34\64\62\66\141\x33", "\103\x6f\x6e\x74\x65\x6e\164\x2d\x54\x79\x70\145\x3a\x20\141\x70\x70\154\151\143\141\x74\151\157\x6e\57\x6a\163\x6f\x6e", "\101\x63\x63\145\x70\164\x3a\40\141\x70\x70\x6c\x69\x63\141\164\x69\157\x6e\x2f\152\163\x6f\x6e"))); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); $str_payload_3 = "\173\12\x20\40\40\40\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\40\40\40\x22\x75\163\145\x72\111\144\x22\x3a\42" . $mobile_hash . "\x22\54\12\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\40\x20\40\x20\40\40\40\40\40\42\x65\x76\145\156\x74\116\x61\155\x65\42\x3a\40\42\x64\143\x5f\x61\160\160\157\x69\156\164\x6d\x65\156\x74\x5f\143\162\145\x61\x74\145\x64\42\x2c\12\x20\x20\x20\40\40\40\40\x20\40\x20\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x20\40\42\145\x76\x65\x6e\x74\x44\141\164\141\x22\72\40\173\xa\40\40\40\40\40\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\42\103\x75\163\164\157\x6d\145\162\137\111\144\x22\72\42" . $email_id . "\x22\x2c\xa\x20\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\40\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40\40\x22\x50\x68\x6f\156\x65\x22\x3a\42" . $cell_phone . "\x22\54\12\x20\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\x22\x45\x6d\141\151\154\x22\x3a\x22" . $email_id . "\42\54\xa\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\x22\143\157\156\x73\165\x6c\x74\x61\x74\x69\x6f\x6e\137\164\171\x70\x65\x22\72\42\x4e\145\167\x2d\103\157\156\x73\x75\154\164\x61\164\x69\x6f\x6e\x22\54\12\x20\x20\40\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\40\x20\40\40\x20\40\x20\40\42\144\x63\x5f\x73\x6f\x6c\165\x74\151\x6f\156\137\143\x61\164\145\147\157\162\x79\x22\x3a\42" . $service_id . "\x22\54\12\x20\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\x20\40\40\40\x20\x20\x20\40\40\x20\x20\40\x20\x22\144\x63\137\141\160\x70\157\151\156\164\x6d\145\156\x74\137\x64\x61\x74\x65\42\72\42" . $appointment_date_new . "\x22\x2c\xa\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\40\x22\144\x63\137\x61\160\x70\x6f\151\156\x74\x6d\145\156\x74\137\x69\x64\42\72\x22" . $appointment_key . "\x22\54\xa\40\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\x20\x20\x20\x20\40\40\x20\40\x20\x20\42\x64\143\x5f\x61\160\160\x6f\x69\156\x74\x6d\145\x6e\164\137\164\x69\x6d\145\x22\72\x22" . $start_time_new . "\x22\x2c\xa\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x22\144\x63\137\x64\157\x63\137\151\x64\x22\72\42" . $doc_id . "\42\12\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\40\40\40\x20\40\40\40\x20\40\x7d\x7d"; $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => "\x68\x74\x74\x70\163\x3a\57\57\141\160\x69\56\x69\156\x2e\x77\x65\x62\x65\x6e\147\141\x67\145\x2e\x63\x6f\155\x2f\166\x31\57\x61\143\x63\x6f\x75\x6e\x74\x73\57\x69\156\176\x31\x34\65\x30\x37\x63\x37\x37\142\57\x65\166\145\x6e\164\x73", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\x50\x4f\123\124", CURLOPT_POSTFIELDS => "\x7b\12\40\40\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\40\40\x22\165\x73\x65\x72\111\144\x22\x3a\x22" . $mobile_hash . "\42\54\xa\x20\40\x20\x20\x20\40\40\40\40\x20\40\40\40\40\40\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\40\42\x65\x76\x65\x6e\164\116\141\155\145\x22\72\40\42\x64\x63\137\x61\160\160\x6f\x69\x6e\164\155\145\x6e\164\x5f\x63\162\145\x61\x74\x65\x64\x22\54\xa\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\40\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\x20\42\x65\166\x65\156\x74\x44\141\164\x61\x22\x3a\40\173\12\x20\40\x20\40\x20\40\x20\40\40\40\40\40\x20\40\40\40\40\40\40\40\40\40\40\x20\x20\40\x20\x20\40\40\40\x20\40\40\40\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\x20\40\x20\x20\x20\42\x43\165\163\x74\x6f\x6d\x65\162\x5f\111\144\42\x3a\42" . $email_id . "\x22\54\12\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x22\120\150\x6f\156\x65\42\x3a\42" . $cell_phone . "\x22\x2c\12\40\x20\40\x20\40\x20\x20\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\x20\40\x20\x20\40\x20\42\105\155\141\x69\x6c\x22\72\x22" . $email_id . "\x22\54\12\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\40\40\40\x20\40\x20\x20\40\x20\x20\40\x20\40\40\40\x20\40\40\40\40\40\40\40\x20\x20\x20\x20\40\40\40\40\40\40\40\x20\x22\x63\x6f\x6e\x73\x75\154\x74\x61\x74\151\x6f\156\137\x74\171\160\x65\42\72\42\116\x65\167\x2d\x43\x6f\x6e\x73\x75\x6c\x74\141\x74\151\x6f\x6e\42\54\xa\x20\40\x20\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\40\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x22\144\x63\137\x73\x6f\x6c\x75\x74\x69\157\x6e\137\143\141\x74\x65\x67\x6f\162\171\42\x3a\42" . $service_id . "\x22\54\12\40\x20\40\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\40\42\x64\x63\x5f\x61\160\160\x6f\x69\x6e\164\155\x65\x6e\164\x5f\x64\x61\x74\x65\42\72\42" . $appointment_date_new . "\x22\54\xa\40\x20\40\x20\40\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x20\40\40\40\x20\42\144\x63\137\x61\x70\160\157\x69\156\x74\155\x65\x6e\x74\137\151\144\42\72\x22" . $appointment_key . "\42\x2c\12\40\x20\x20\x20\40\40\40\40\x20\x20\40\x20\x20\40\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\42\144\143\x5f\x61\x70\x70\157\151\156\164\155\x65\156\164\137\x74\x69\x6d\x65\42\72\x22" . $start_time_new . "\x22\x2c\12\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\40\40\x20\40\40\40\40\x20\x20\x20\42\144\143\137\144\x6f\x63\137\151\x64\x22\x3a\x22" . $doc_id . "\42\xa\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\40\40\x20\40\x20\40\40\x20\40\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\x20\40\x7d\175", CURLOPT_HTTPHEADER => array("\x41\x75\x74\150\x6f\162\151\x7a\x61\164\151\x6f\156\x3a\40\x42\145\141\x72\x65\162\x20\145\x64\70\x61\x33\143\60\x34\x2d\x34\x33\x62\66\55\x34\x65\66\x32\55\x39\64\70\70\55\x62\x62\x66\67\x63\71\x34\x34\62\x36\141\x33", "\x43\157\156\164\145\156\x74\55\x54\171\x70\x65\72\x20\x61\160\x70\x6c\x69\x63\141\164\151\x6f\x6e\x2f\x6a\x73\x6f\x6e", "\101\x63\x63\145\x70\x74\x3a\40\x61\160\x70\154\151\x63\141\x74\151\157\x6e\x2f\152\163\157\x6e"))); $response = curl_exec($curl); $err = curl_error($curl); if ($err) { } curl_close($curl); } $data = array("\163\164\x61\x74\x75\163" => "\62\60\x30", "\x6d\x65\163\163\x61\x67\x65" => "\101\160\160\157\151\x6e\164\x6d\145\x6e\164\40\x63\162\x65\x61\164\x65\144\x20\163\x75\x63\x63\x65\163\163\146\x75\x6c\154\x79", "\141\x70\x70\x6f\151\x6e\x74\x6d\x65\x6e\x74\x5f\x6b\x65\x79" => $appointment_key, "\x73\164\x61\146\146\137\153\x65\x79" => $doc_id, "\163\164\141\162\164\x5f\164\151\155\x65" => $start_time, "\x65\156\144\137\164\151\x6d\x65" => $end_time, "\x64\165\162\x61\164\x69\x6f\156" => $duration, "\143\165\x73\164\157\155\x65\162\x5f\153\145\171" => $customer_key, "\143\157\155\155\x65\156\x74" => $comment); header("\x43\x6f\156\x74\145\156\x74\x2d\164\x79\160\145\x3a\x20\x61\160\x70\154\151\x63\141\164\x69\157\x6e\x2f\x6a\163\157\x6e"); echo json_encode($data); die; } } goto H6QZ0; d7XGa: $start_time = $data->start_time; goto Jm5GP; HIUsT: session_start(); goto rDcLl; lt53v: header("\103\157\x6e\x74\145\156\x74\55\124\x79\160\x65\72\x20\141\160\x70\154\x69\143\x61\164\x69\157\156\x2f\152\163\157\156\73\x20\143\150\141\162\x73\145\x74\75\x55\124\x46\x2d\70"); goto PK9OJ; TaL_C: $date_added = date("\x59\55\155\x2d\x64\x20\x48\x3a\151\x3a\x73"); goto ssGFK; CZaP2: $first_name = str_replace("\47", "\x60", $data->first_name); goto gMr16; tgRH3: $rs_timestamp = mysqli_fetch_assoc($rs_timestamp); goto ZDKFW; nK0fl: $refreshToken = "\x72\61\x2f\x63\142\x37\62\144\142\145\60\60\x39\x38\110\x44\x6d\123\x5f\101\170\60\x6c\167\61\106\113\x34\151\104\156\63\x53\60\x48\x30\x35\x36\x75\127\123\154\x35\65\x71\71\166\154"; goto TaL_C; rDcLl: require_once "\56\56\57\144\141\x74\141\142\141\x73\x65\57\144\141\164\x61\142\x61\x73\145\x2e\x70\150\x70"; goto yOaGc; H6QZ0: ?>
Function Calls
None |
Stats
MD5 | 2e750aec04576329c567b0a522276590 |
Eval Count | 0 |
Decode Time | 59 ms |