OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
eSamudaay
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/28/2024 11:03:35 AM
rwxrwxr-x
📄
about.html
3.05 KB
08/29/2024 12:13:31 PM
rw-r--r--
📄
activate.php
2.56 KB
08/29/2024 12:13:31 PM
rw-r--r--
📁
admin
-
08/29/2024 12:13:38 PM
rwxr-xr-x
📄
article.php
16.58 KB
08/29/2024 12:13:31 PM
rw-r--r--
📁
assets
-
08/29/2024 12:32:48 PM
rwxr-xr-x
📁
audio
-
08/29/2024 12:14:08 PM
rwxr-xr-x
📄
backend.php
11.94 KB
08/29/2024 12:13:32 PM
rw-r--r--
📄
bindex.html
11.81 KB
08/29/2024 12:13:32 PM
rw-r--r--
📄
colortest.php
24.1 KB
08/29/2024 12:13:32 PM
rw-r--r--
📄
contact.html
2.79 KB
08/29/2024 12:13:32 PM
rw-r--r--
📄
dashboard.php
12.84 KB
08/29/2024 12:13:32 PM
rw-r--r--
📁
eyecandy
-
08/29/2024 12:14:10 PM
rwxr-xr-x
📁
forms
-
08/29/2024 12:33:00 PM
rwxr-xr-x
📄
geo_location.php
3.55 KB
08/29/2024 12:13:32 PM
rw-r--r--
📁
grfx
-
08/29/2024 12:14:11 PM
rwxr-xr-x
📁
inc
-
08/29/2024 12:14:12 PM
rwxr-xr-x
📄
index.html
17.57 KB
08/29/2024 12:30:15 PM
rw-r--r--
📄
info.php
14 bytes
08/29/2024 12:13:32 PM
rw-r--r--
📄
navbar.php
0 bytes
08/29/2024 12:13:32 PM
rw-r--r--
📁
newReader
-
08/29/2024 12:17:22 PM
rwxr-xr-x
📄
phonedashboard.php
24.05 KB
08/29/2024 12:13:32 PM
rw-r--r--
📄
privacy.html
9.99 KB
08/29/2024 12:13:32 PM
rw-r--r--
📁
process
-
08/29/2024 12:17:55 PM
rwxr-xr-x
📄
readerTestComment.php
6.75 KB
08/29/2024 12:13:33 PM
rw-r--r--
📄
refund.html
7.34 KB
08/29/2024 12:13:33 PM
rw-r--r--
📄
reset.html
3.01 KB
08/29/2024 12:13:33 PM
rw-r--r--
📁
services
-
08/29/2024 12:33:02 PM
rwxr-xr-x
📄
signup.html
12.82 KB
08/29/2024 12:13:33 PM
rw-r--r--
📄
splash.html
1.11 KB
08/29/2024 12:13:33 PM
rw-r--r--
📁
texttovoice
-
08/29/2024 12:17:56 PM
rwxr-xr-x
📁
thumbsUp
-
08/29/2024 12:17:56 PM
rwxr-xr-x
📄
usage.html
30.88 KB
08/29/2024 12:13:33 PM
rw-r--r--
📄
zzzdashboard.php
11.95 KB
08/29/2024 12:13:33 PM
rw-r--r--
Editing: geo_location.php
Close
<!DOCTYPE html> <html> <head> <title>Get User Location</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> </head> <body> <button id="getLocationBtn">Get Location</button> <p id="location"></p> <script> $(document).ready(function() { $('#getLocationBtn').click(function() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); } else { $('#location').text("Geolocation is not supported by this browser."); } }); function showPosition(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // Send the data to the PHP server $.ajax({ type: "POST", url: "inc/function.php", // The current file data: { action: 'gps_loc', lat: latitude, lon: longitude }, dataType: 'json', // Expecting JSON response success: function(response) { // Store the entire JSON response in the variable addressData = response; // Optionally, you can now access and use the data if (addressData && addressData.address) { var address = addressData.address; $('#location').append("<br>Amenity: " + (address.amenity || 'N/A')); $('#location').append("<br>Road: " + (address.road || 'N/A')); $('#location').append("<br>Suburb: " + (address.suburb || 'N/A')); $('#location').append("<br>City: " + (address.city || 'N/A')); $('#location').append("<br>County: " + (address.county || 'N/A')); $('#location').append("<br>State: " + (address.state || 'N/A')); $('#location').append("<br>Postcode: " + (address.postcode || 'N/A')); $('#location').append("<br>Country: " + (address.country || 'N/A')); } else { $('#location').append("<br>Error: Address data not available."); } }, error: function() { $('#location').append("<br>Error sending location data."); } }); } function showError(error) { var errorMessage; switch (error.code) { case error.PERMISSION_DENIED: errorMessage = "User denied the request for Geolocation."; break; case error.POSITION_UNAVAILABLE: errorMessage = "Location information is unavailable."; break; case error.TIMEOUT: errorMessage = "The request to get user location timed out."; break; case error.UNKNOWN_ERROR: errorMessage = "An unknown error occurred."; break; } $('#location').text(errorMessage); } }); </script> </body> </html>