/home/desid573/public_html/app
NameSizeModeActions
braintree/-0755rm
lib/-0755rm
twilio-php-master/-0755rm
vendor/-0755rm
after_booking_page.php25950644editdlrm
appoff.php47820644editdlrm
booking.php96550644editdlrm
cancel_booking.php49250644editdlrm
composer.json650644editdlrm
composer.lock23550644editdlrm
confirmsend.php29830644editdlrm
contact_us_mail.php8900644editdlrm
copy_account_to_homekey.php43340644editdlrm
dispatch.php8770644editdlrm
emailConfirmReset.php4010644editdlrm
error_log5868740644editdlrm
family-cab_small.jpg988530644editdlrm
generate_credit.php30980644editdlrm
generate_referall.php27790644editdlrm
getuser_byid.php23410644editdlrm
getuser_bymail.php21830644editdlrm
get_all_booking.php7790644editdlrm
get_booking_bybooking_id.php8130644editdlrm
get_booking_byuser.php10570644editdlrm
get_booking_status.php21700644editdlrm
get_completed_bookings.php7100644editdlrm
get_ETA.php63320644editdlrm
get_lead_message.php6730644editdlrm
get_open_bookings.php13990644editdlrm
get_payment_byuser.php10640644editdlrm
get_price.php7600644editdlrm
get_recipes.php63610644editdlrm
get_TE.php12170644editdlrm
index.php104110644editdlrm
index_backup.php47910644editdlrm
lib_tr.zip1050470644editdlrm
login_api.php57890644editdlrm
noteconfirm.php82080644editdlrm
off.php28540644editdlrm
passwordResetLink.php51900644editdlrm
pay_file.php73020644editdlrm
pay_file_back.php53260644editdlrm
placehold.html21410644editdlrm
post.php25350644editdlrm
reset_email.php17750644editdlrm
reset_phone.php57170644editdlrm
test_222.php8450644editdlrm
update_api.php59100644editdlrm
update_api_on_mail.php47230644editdlrm
validatecode.php10940644editdlrm
validatephone.php10550644editdlrm
Edit: /home/desid573/public_html/app/getuser_bymail.php (2183B)
query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $customer[] = $row; $sql = "SELECT * FROM `customer_details` where `cid` = '".$row["id"]."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row_details = $result->fetch_assoc()) { $cust_detail[] = $row_details; } } $sql = "SELECT * FROM `customer_tokens` where `cid` = '".$row["id"]."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row_token = $result->fetch_assoc()) { $cust_token[] = $row_token; } } } $Res["message"] = "user detail ok"; $Res["staus"] = "OK"; if(isset($_REQUEST["all"])) { $Res["data"] = $customer; $Res["cust_detail"] = $cust_detail; $Res["cust_token"] = $cust_token; } elseif(isset($_REQUEST["token"])) { $Res["cust_token"] = $cust_token; } else { $fullname = $customer[0]["name"]; $name_split = explode(" ", $fullname); $fname = $name_split[0]; $lname = $name_split[1]; $Res["data"]["fname"] = $fname ; $Res["data"]["lname"] = $lname ; $Res["data"]["mobile"] = $customer[0]["mobile"]; $Res["data"]["email"] = $customer[0]["email"]; $Res["data"]["address"] = $cust_detail[0]["address"]; $Res["data"]["addr_lat"] = $cust_detail[0]["addr_lat"]; $Res["data"]["addr_long"] = $cust_detail[0]["addr_long"]; $Res["data"]["fam_pax"] = $cust_detail[0]["no_pax"]; $Res["data"]["fam_rf"] = $cust_detail[0]["no_rf"]; $Res["data"]["fam_ff"] = $cust_detail[0]["no_ff"]; $Res["data"]["fam_b"] = $cust_detail[0]["no_b"]; } } else { $Res["message"] = "Username or Passowrd not correct!"; $Res["staus"] = "error"; } echo json_encode(new ArrayObject($Res)); /*echo "
";
print_r($Res);
//print_r($response);
echo "
";*/ $conn->close(); // =============== New customer user api End Here ========================== ?>