/
home
/
desid573
/
public_html
/
test_api
/
/home/desid573/public_html/test_api
mkdir
upload
Name
Size
Mode
Actions
lib/
-
0755
rm
twilio-php-master/
-
0755
rm
vendor/
-
0755
rm
after_booking_page.php
2595
0644
edit
dl
rm
booking.php
10716
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_booking.php
5621
0644
edit
dl
rm
checkPrice.php
1306
0644
edit
dl
rm
composer.json
65
0644
edit
dl
rm
composer.lock
2355
0644
edit
dl
rm
confirmsend.php
2682
0644
edit
dl
rm
contact_us_mail.php
903
0644
edit
dl
rm
dispatch.php
877
0644
edit
dl
rm
emailConfirmReset.php
486
0644
edit
dl
rm
error_log
5922247
0644
edit
dl
rm
generate_credit.php
3187
0644
edit
dl
rm
generate_referall.php
2779
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
1527
0644
edit
dl
rm
get_payment_byuser.php
1064
0644
edit
dl
rm
homekey_img.png
14037
0644
edit
dl
rm
index.php
14272
0644
edit
dl
rm
index_backup.php
4791
0644
edit
dl
rm
lib_tr.zip
105047
0644
edit
dl
rm
login_api.php
8405
0644
edit
dl
rm
login_api_old.php
5653
0644
edit
dl
rm
noteconfirm.php
9259
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
reset_email.php
1755
0644
edit
dl
rm
send_bulk_notif.php
1692
0644
edit
dl
rm
test_222.php
845
0644
edit
dl
rm
update_api.php
6318
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/test_api/passwordResetLink.php
(5195B)
<?php require("lib/config.php"); $sql = "SELECT * FROM `customers` where email = '".$_GET['email']."'"; $result = $conn->query($sql); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); $cid = $row['id']; $sql = "SELECT * FROM `password_reset` where customer_id = '".$cid."' and `expiry` > '".time()."'"; $result = $conn->query($sql); if(!$result) { error_log($conn->error); } if ($result->num_rows > 0) { $reset = "yes"; } else { $reset = "no"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta 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>Password Reset</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: #ffffff; } * { padding: 0; margin: 0; } #over { //position:absolute; width:100%; height:100%; text-align: center; /*handles the horizontal centering*/ } /*handles the vertical centering*/ .Centerer { display: inline-block; height: 100%; vertical-align: middle; } .Centered { display: inline-block; vertical-align: middle; } </style> </head> <body> <div class="container"> <div id="over"> <span class="Centerer"></span> <img class="Centered" src="homekey_img.png" style="max-height:60px;"> </div> <br><br><br> <div class="row reset"> <div class="col-xs-12 no-padding"> <input type="password" required data-validation="required" class="form-control" placeholder="New Password" value="" name="password1" id="password1" > </div> </div> <div class="row reset" style="margin-top:10px;"> <div class="col-xs-12 no-padding"> <input type="password" required data-validation="required" class="form-control" placeholder="Re-enter New Password" value="" name="password2" id="password2" > </div> </div> <div class="row disallow"> <div class="col-xs-12 col-md-6 no-padding" style="text-align: center;"> <h3>Your password reset link has expired</h3> </div> </div> <br><br> <div class="row reset"> <div class="col-xs-12 col-md-12 no-padding"> <input type="button" name="myButton" class="btn-block btn btn-primary" name="button" id="button" value="Submit"> </div> </div> <div class="row reset"> <div class="col-xs-12 col-md-12 no-padding" style="text-align:center"> Status: <span style="color:#FF0000;font-size: 150%;text-align: center;" id="test"></span><br> </div> </div> <!-- jQuery (necessary for Bootstraps 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 reset = "<?=$reset?>"; $(document).ready(function(){ if(reset == "yes") { $('.reset').show(); $('.disallow').hide(); } else { $('.reset').hide(); $('.disallow').show(); } }) $("#button").click(function(){ if($('#password1').val() == $('#password2').val()) { var password = $('#password2').val(); var email = "<?=$_GET['email']?>"; $.post("emailConfirmReset.php", {password: password, email: email}, function (data) { console.log(data); if(data == "yes"){ $("#test").text("Password change successful"); $("#test").attr('style', 'color:#00FF00;font-size: 150%;text-align: center;background-color: #ffffff;'); } if(data != "yes"){ $("#test").text("Error"); $("#test").attr('style', 'color:#FF0000;font-size: 150%;text-align: center;background-color: #ffffff;'); } }) } else { $("#test").text("Passwords do not match"); $("#test").attr('style', 'color:#FF0000;font-size: 150%;text-align: center;background-color: #ffffff;'); } }) </script> </body> </html>
Save
cmd:
run