/
home
/
desid573
/
public_html
/
angel
/
/home/desid573/public_html/angel
mkdir
upload
Name
Size
Mode
Actions
assets/
-
0755
rm
drivers/
-
0755
rm
font/
-
0755
rm
lib/
-
0755
rm
payment/
-
0755
rm
stripe/
-
0755
rm
twilio-php-master/
-
0755
rm
vendor/
-
0755
rm
after_booking_page.php
2595
0644
edit
dl
rm
angeldrivers.png
132095
0644
edit
dl
rm
a_name_address.php
1289
0644
edit
dl
rm
booking.php
9621
0644
edit
dl
rm
booking_28-04-2017.php
947
0644
edit
dl
rm
booking_29-04-2017.php
3717
0644
edit
dl
rm
cancel.php
2430
0644
edit
dl
rm
cancel_booking.php
5367
0644
edit
dl
rm
composer.json
65
0644
edit
dl
rm
composer.lock
2355
0644
edit
dl
rm
confirmsend.php
2582
0644
edit
dl
rm
contact_us_mail.php
903
0644
edit
dl
rm
dispatch.php
864
0644
edit
dl
rm
error_log
436257456
0644
edit
dl
rm
generate_credit.php
3187
0644
edit
dl
rm
generate_referall.php
2779
0644
edit
dl
rm
getPrice.php
738
0644
edit
dl
rm
getuser_byid.php
2341
0644
edit
dl
rm
getuser_bymail.php
1968
0644
edit
dl
rm
get_all_booking.php
779
0644
edit
dl
rm
get_booking_bybooking_id.php
813
0644
edit
dl
rm
get_booking_byuser.php
1057
0644
edit
dl
rm
get_booking_status.php
2219
0644
edit
dl
rm
get_completed_bookings.php
727
0644
edit
dl
rm
get_directions.php
813
0644
edit
dl
rm
get_lead_message.php
673
0644
edit
dl
rm
get_open_bookings.php
1465
0644
edit
dl
rm
get_payment_byuser.php
1064
0644
edit
dl
rm
home.php
1660
0644
edit
dl
rm
homekey_img.png
14037
0644
edit
dl
rm
hook.php
21267
0644
edit
dl
rm
hook_set_up.php
654
0644
edit
dl
rm
index.php
12007
0644
edit
dl
rm
index_backup.php
4791
0644
edit
dl
rm
jobdetails.php
12197
0644
edit
dl
rm
lib_tr.zip
105047
0644
edit
dl
rm
login_api.php
7798
0644
edit
dl
rm
login_api_old.php
5653
0644
edit
dl
rm
noteconfirm.php
9259
0644
edit
dl
rm
online_booking.php
28283
0644
edit
dl
rm
passwordResetLink.php
5195
0644
edit
dl
rm
pay_file.php
7302
0644
edit
dl
rm
pay_file_back.php
5326
0644
edit
dl
rm
placehold.html
2184
0644
edit
dl
rm
priceCheck.php
0
0644
edit
dl
rm
reset_email.php
1755
0644
edit
dl
rm
search.php
830
0644
edit
dl
rm
send_bulk_notif.php
1692
0644
edit
dl
rm
setprice.php
4429
0644
edit
dl
rm
setprice_database.php
585
0644
edit
dl
rm
smsconfirm.php
9830
0644
edit
dl
rm
smssend.php
2354
0644
edit
dl
rm
stripe-php-master.zip
254366
0644
edit
dl
rm
test1.php
159
0644
edit
dl
rm
test_222.php
845
0644
edit
dl
rm
thankyou.php
17470
0644
edit
dl
rm
update_api.php
6290
0644
edit
dl
rm
update_api_on_mail.php
4677
0644
edit
dl
rm
validatecode.php
1094
0644
edit
dl
rm
validatephone.php
1034
0644
edit
dl
rm
Edit:
/home/desid573/public_html/angel/smsconfirm.php
(9830B)
<?php $invoice_ref = time().rand(10,5000); $message = $_GET['message']; $phone = $_GET['phone']; $ref = $_GET['reference']; if($message == "") { $type = $_GET['type']; $ref = $_GET['ref']; require('lib/config.php'); $message = "Hi ".$name.",\n\nYour booking has been confirmed as below. Please contact us on 0411301301 if anything changes.\n\nDate ".$booking_date."\nTime ".$booking_time."\nPick Up ".str_replace(", Western Australia, Australia", "", $pickup)."\nTO\nDrop Off ".str_replace(", Western Australia, Australia", "", $dropoff)."\n".$seats_string; } ?> <!DOCTYPE html> <html lang="en"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>SMS Sender</title> <!-- Bootstrap --> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesnt work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <style> #map { height:300px; } body{ background-color: #d9d9d9; } .bgloader { display: none; position: fixed; width: 100%; height: 100%; background-color:#f26f18; opacity : 0.4; z-index: 100; } .loader { display: none; position: fixed; left: 50%; top: 50%; z-index: 101; margin: -60px 0 0 -60px; border: 16px solid #f3f3f3; /* Light grey */ border-top: 16px solid #000080; /* Blue */ border-radius: 50%; width: 120px; height: 120px; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <div class="loader"></div> <div class="bgloader"></div> <div class="container"> <div class="row"> <div class="col-xs-12 col-md-6 no-padding"> <input type="hidden" required data-validation="required" class="form-control" placeholder="Reference" value="<?=$ref?>" name="reference" id="reference" readonly> <input type="text" required data-validation="required" class="form-control" placeholder="Phone" value="<?=$phone?>" name="phone" id="phone" readonly> <input type="hidden" required data-validation="required" class="form-control" placeholder="Type" value="<?=$_GET['type']?>" name="type" id="type" readonly> <textarea style="width:100%;height:300px;" name="message" id="message" ><?=$message?></textarea> </div> </div> <div class="row"> <div class="col-xs-12 col-md-6 no-padding"> <input type="button" name="myButton" style="background: rgb(2, 117, 216) none repeat scroll 0% 0%;padding-top:10px;color:#FFFFFF;" class="btn-block col-xs-12 col-md-6 name="button id="button" value="Submit"> </div> </div> <!--<div class="row">--> <!-- <div class="col-xs-12 col-md-6 no-padding">--> <!-- <input type="button" name="checkButton" style="background: rgb(2, 117, 216) none repeat scroll 0% 0%;padding-top:10px;color:#FFFFFF;" class="btn-block col-xs-12 col-md-6 name="button id="checkButton" value="Check if Sent">--> <!-- </div>--> <!--</div>--> <br> <div class="row"> <div class="col-xs-12 col-md-6 no-padding"> <? $result = $conn->query("SELECT id, driver FROM drivers"); if(!$result) { error_log("driver error ".$conn->error); } echo "Dispatch to:   <select id='driver_id' name='id'>"; while ($row = $result->fetch_assoc()) { unset($id, $name); $id = $row['id']; $name = $row['driver']; echo '<option value="'.$id.'">'.$name.'</option>'; } echo "</select>"; ?> <br> <input type="button" name="dispatch" style="background: rgb(0, 255, 100) none repeat scroll 0% 0%;padding-top:10px;color:#FFFFFF;" class="btn-block col-xs-12 col-md-6" id="dispatch" value="Dispatch"> <br></div></div> <br> <div class="row"> <div class="col-xs-12 col-md-6 no-padding" style="text-align:center"> Current Status <span style="" id="test2"></span><br> On Click <span style="color:#FF0000;font-size: 150%;text-align: center;" id="test"></span><br> </div> </div> <div class="row" style="margin-top:30px"> <div class="col-xs-12 col-md-6 no-padding" style="text-align:center"> <a href="jobcancel.php?ref=<?=$ref?>&type=<?=$type?>">Go to update page</a> </div> </div> </div> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.23/jquery.form-validator.min.js"></script> <script type="text/javascript"> var spat_ref = "<?php echo $spatula_id ?>"; var reference = $("#reference").val(); var type = $("#type").val(); function checkSent() { var check = "yes"; var company = "AngelDrivers"; $.post("smssend.php", {check: check, from: company, reference: reference}, function (data) { console.log(data); if(data == "no"){ $("#test2").text("NOT SENT"); $("#test2").attr('style', 'color:#FF0000;font-size: 150%;text-align: center;'); } else { $("#test2").text(data); $("#test2").attr('style', 'color:#006400;font-size: 110%;text-align: center;'); } }) } $(document).ready(function(){ checkSent(); }) $("#checkButton").click(function(){ checkSent(); }) $("#button").click(function(){ var phone = $("#phone").val(); var company = "AngelDrivers"; var message = $("#message").val(); console.log(reference); $(".loader, .bgloader").show(); $.post("smssend.php", {to: phone, from: company, message: message, reference: reference}, function (data) { console.log(data); $(".loader, .bgloader").hide(); if(data == "OK"){ $("#test").text("SMS Sent"); $("#test").attr('style', 'color:#00FF00;font-size: 150%;text-align: center;background-color: #ffffff;'); } if(data != "OK"){ $("#test").text(data); $("#test").attr('style', 'color:#FF0000;font-size: 100%;text-align: center;background-color: #ffffff;'); } }) }) $("#dispatch").click(function(){ var driver_id = $("#driver_id").val(); if(spat_ref != "none") { dispatch(driver_id, spat_ref); } else { $(".loader, .bgloader").show(); data = {type: type, ref: reference}; $.ajax({ type: "POST", url: "new_spatula_job.php", data: data, dataType: 'json', success: function (data) { $(".loader, .bgloader").hide(); console.log(data); if(data.status == "OK"){ $("#test").text("Job Created"); $("#test").attr('style', 'color:#00FF00;font-size: 150%;text-align: center;background-color: #ffffff;'); dispatch(driver_id, data.id); } else { $("#test").text("Error creating Job"); $("#test").attr('style', 'color:#FF0000;font-size: 150%;text-align: center;background-color: #ffffff;'); } } }) } }) function dispatch(driver_id, spat_ref) { $(".loader, .bgloader").show(); $.post("dispatch.php", {driver_id: driver_id, spat_ref: spat_ref}, function (data) { $(".loader, .bgloader").hide(); console.log(data); if(data == "OK"){ $("#test").text("Dispatched"); $("#test").attr('style', 'color:#00FF00;font-size: 150%;text-align: center;background-color: #ffffff;'); } else { $("#test").text("Error dispatching"); $("#test").attr('style', 'color:#FF0000;font-size: 150%;text-align: center;background-color: #ffffff;'); } }) } </script> </body> </html>
Save
SMS Sender
=$message?>
$result = $conn->query("SELECT id, driver FROM drivers"); if(!$result) { error_log("driver error ".$conn->error); } echo "Dispatch to:  
"; while ($row = $result->fetch_assoc()) { unset($id, $name); $id = $row['id']; $name = $row['driver']; echo '
'.$name.'
'; } echo "
"; ?>
Current Status
On Click
Go to update page