OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
groupchat
/
dump
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/31/2024 11:08:59 AM
rwxr-xr-x
📄
create_group.php
1006 bytes
09/02/2024 06:58:59 AM
rw-r--r--
📄
db_connect.php
580 bytes
09/02/2024 06:58:59 AM
rw-r--r--
📄
function.php
7.99 KB
09/02/2024 06:58:59 AM
rw-r--r--
📄
group.php
4.6 KB
09/02/2024 06:58:59 AM
rw-r--r--
📄
index.php
20.74 KB
09/02/2024 06:58:59 AM
rw-r--r--
📄
memberSearch.php
1.32 KB
09/02/2024 06:58:59 AM
rw-r--r--
📄
register.php
5.08 KB
09/02/2024 06:58:59 AM
rw-r--r--
📄
sendreview.php
626 bytes
09/02/2024 06:58:59 AM
rw-r--r--
📄
signin.php
5.52 KB
09/02/2024 06:59:00 AM
rw-r--r--
📄
signout.php
295 bytes
09/02/2024 06:59:00 AM
rw-r--r--
📄
test.php
2 KB
09/02/2024 06:59:00 AM
rw-r--r--
📄
validate.logged.php
580 bytes
09/02/2024 06:59:00 AM
rw-r--r--
Editing: test.php
Close
<?php // Check if the form is submitted if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["photo"])) { $uploadDir = 'uploads/'; $uploadFile = $uploadDir . basename($_FILES['photo']['name']); $uploadOk = 1; $imageFileType = strtolower(pathinfo($uploadFile, PATHINFO_EXTENSION)); // Check if image file is a actual image or fake image $check = getimagesize($_FILES['photo']['tmp_name']); if ($check !== false) { echo "File is an image - " . $check['mime'] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } // Check file size if ($_FILES['photo']['size'] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // Allow certain file formats if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif") { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES['photo']['tmp_name'], $uploadFile)) { echo "The file ". basename( $_FILES['photo']['name']). " has been uploaded."; } else { echo "Sorry, there was an error uploading your file."; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>File Upload Example</title> </head> <body> <h1>File Upload Example</h1> <form id="uploadForm" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="POST" enctype="multipart/form-data"> <input type="file" name="photo" id="photoInput" accept="image/*"> <button type="submit">Upload</button> </form> </body> </html>