/home/desid573/public_html/angel
NameSizeModeActions
assets/-0755rm
drivers/-0755rm
font/-0755rm
lib/-0755rm
payment/-0755rm
stripe/-0755rm
twilio-php-master/-0755rm
vendor/-0755rm
after_booking_page.php25950644editdlrm
angeldrivers.png1320950644editdlrm
a_name_address.php12890644editdlrm
booking.php96210644editdlrm
booking_28-04-2017.php9470644editdlrm
booking_29-04-2017.php37170644editdlrm
cancel.php24300644editdlrm
cancel_booking.php53670644editdlrm
composer.json650644editdlrm
composer.lock23550644editdlrm
confirmsend.php25820644editdlrm
contact_us_mail.php9030644editdlrm
dispatch.php8640644editdlrm
error_log4362574560644editdlrm
generate_credit.php31870644editdlrm
generate_referall.php27790644editdlrm
getPrice.php7380644editdlrm
getuser_byid.php23410644editdlrm
getuser_bymail.php19680644editdlrm
get_all_booking.php7790644editdlrm
get_booking_bybooking_id.php8130644editdlrm
get_booking_byuser.php10570644editdlrm
get_booking_status.php22190644editdlrm
get_completed_bookings.php7270644editdlrm
get_directions.php8130644editdlrm
get_lead_message.php6730644editdlrm
get_open_bookings.php14650644editdlrm
get_payment_byuser.php10640644editdlrm
home.php16600644editdlrm
homekey_img.png140370644editdlrm
hook.php212670644editdlrm
hook_set_up.php6540644editdlrm
index.php120070644editdlrm
index_backup.php47910644editdlrm
jobdetails.php121970644editdlrm
lib_tr.zip1050470644editdlrm
login_api.php77980644editdlrm
login_api_old.php56530644editdlrm
noteconfirm.php92590644editdlrm
online_booking.php282830644editdlrm
passwordResetLink.php51950644editdlrm
pay_file.php73020644editdlrm
pay_file_back.php53260644editdlrm
placehold.html21840644editdlrm
priceCheck.php00644editdlrm
reset_email.php17550644editdlrm
search.php8300644editdlrm
send_bulk_notif.php16920644editdlrm
setprice.php44290644editdlrm
setprice_database.php5850644editdlrm
smsconfirm.php98300644editdlrm
smssend.php23540644editdlrm
stripe-php-master.zip2543660644editdlrm
test1.php1590644editdlrm
test_222.php8450644editdlrm
thankyou.php174700644editdlrm
update_api.php62900644editdlrm
update_api_on_mail.php46770644editdlrm
validatecode.php10940644editdlrm
validatephone.php10340644editdlrm
Edit: /home/desid573/public_html/angel/index_backup.php (4791B)
query($sql); if ($result->num_rows > 0) { $Res["mail"] = $_REQUEST["email"]; $Res["message"] = "User already exist with this mail id"; $Res["customer_status"] = "already exist"; } else { if($_REQUEST['user_agree']=="1") { $pass = MD5($_REQUEST["pass"]); //$fullname = $_REQUEST["fname"]." ".$_REQUEST["lname"]; $fullname = $_REQUEST["name"]; $name_s = explode(" ",$fullname); $fname = $name_s[0] ; $lname = $name_s[1] ; $sql = "INSERT INTO `customers` (`id`, `name`, `mobile`, `email`,`password`,`is_delete`, `created`, `modified`) VALUES (NULL, '".$fullname."', '".$_REQUEST["phone"]."', '".$_REQUEST["email"]."', '".$pass."', '0',NOW() ,NOW() )"; if ($conn->query($sql) === TRUE) { //$Res["customer_id"] = $conn->insert_id; if($conn->insert_id) { $exp = $_REQUEST["exp"]; $exp_s = explode("/",$exp); $expmonth = $exp_s[0]; $expyear = $exp_s[1]; $cid = $conn->insert_id; $cvv = $_REQUEST["CVV"]; $card_zipcode = $_REQUEST["card_zipcode"]; $addr_lat = $_REQUEST["addr_la"]; $addr_long = $_REQUEST["addr_long"]; $sql_detail = "INSERT INTO `perthdes_new_pro_api`.`customer_details` (`id`, `cid`, `address`, `addr_lat`, `addr_long`, `card_number`, `cvv`, `card_holder_name`, `card_zipcode`, `ExpiryMonth`, `Expiryyear`) VALUES (NULL, '".$cid."', '".$_REQUEST['address']."', '".$addr_lat."','".$_REQUEST['addr_long']."', '".$_REQUEST['credit_card']."', '".$_REQUEST['CVV']."', '".$_REQUEST['card_holder']."', '".$_REQUEST['card_zipcode']."', '".$expmonth."', '".$expyear."')"; if ($conn->query($sql_detail) === TRUE) { //$Res["customer_detail_id"] = $conn->insert_id; //$Res["customer_detail_status"] = "OK"; $success[] = "Ok" ; } else { //$Res["customer_detail_status"] = "Error"; $error[] = "Error"; } //========================token Id =================================== $apiKey = '60CF3Ce97nRS1Z1Wp5m9kMmzHHEh8Rkuj31QCtVxjPWGYA9FymyqsK0Enm1P6mHJf0THbR'; $apiPassword = 'API-P4ss'; $apiEndpoint = \Eway\Rapid\Client::MODE_SANDBOX; // Use \Eway\Rapid\Client::MODE_PRODUCTION when you go live $client = \Eway\Rapid::createClient($apiKey, $apiPassword, $apiEndpoint); /*$customer = [ 'Title' => 'Mr.', 'FirstName' => 'coder', 'LastName' => 'test', 'Country' => 'au', 'CardDetails' => [ 'Name' => 'coder test', 'Number' => '4444333322221111', 'ExpiryMonth' => '12', 'ExpiryYear' => '25', 'CVN' => '123', ] ];*/ $customer = [ 'Title' => 'Mr.', 'FirstName' => $fname, 'LastName' => $lname, 'Country' => 'au', 'CardDetails' => [ 'Name' => $fullname, 'Number' => $_REQUEST["credit_card"], 'ExpiryMonth' => $expmonth, 'ExpiryYear' => $expyear, 'CVN' => $_REQUEST["CVV"], ] ]; $response = $client->createCustomer(\Eway\Rapid\Enum\ApiMethod::DIRECT, $customer); $tokencustomerid = $response->Customer->TokenCustomerID; //===========================token id end here ======================== if($tokencustomerid) { $sql_token = "INSERT INTO `perthdes_new_pro_api`.`customer_tokens` (`id`, `cid`, `access_token_value`, `status`, `created`, `modified`) VALUES (NULL, '".$cid."', '".$tokencustomerid ."', '".$_REQUEST['user_agree']."', NOW(), NOW())"; if ($conn->query($sql_token) === TRUE) { //$Res["customer_token_id"] = $conn->insert_id; //$Res["customer_token_status"] = "OK"; $success[] = "Ok" ; } else { //$Res["customer_token_status"] = "Error"; $error[] = "Error"; } } } //$Res["data"] = $data; //$Res["token"] = $tokencustomerid; //$success[] = "Ok" ; $success = sizeof($success); $error = sizeof($error); if($success==2) { $Res["message"] = "New Customer is created successfully"; $Res["customer_status"] = "ok"; } if($error>0) { $Res["message"] = "User data not accurate"; $Res["customer_status"] = "error"; } } else { $Res["message"] = "Error: " . $sql . "
" . $conn->error; $Res["customer_status"] = "error"; //$error[] = "Error"; } } else { $Res["message"] = "user not accepted the user agreement! "; $Res["customer_status"] = "agreement error"; } } echo json_encode(new ArrayObject($Res)); //echo "
";
//print_r($Res);
//print_r($response);
//echo "
"; $conn->close(); // =============== New customer user api End Here ========================== ?>