OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
groupchat
/
backup
/
backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/31/2024 11:08:47 AM
rwxr-xr-x
📄
bfunction.php
11.61 KB
08/31/2024 11:08:23 AM
rw-r--r--
📄
bgroup.php
14.44 KB
08/31/2024 11:08:27 AM
rw-r--r--
📄
bindex.php
26.59 KB
08/31/2024 11:08:23 AM
rw-r--r--
📄
create_group.php
1.03 KB
08/31/2024 11:08:27 AM
rw-r--r--
📄
dashboard.php
8.53 KB
08/31/2024 11:08:27 AM
rw-r--r--
📄
db_connect.php
614 bytes
08/31/2024 11:08:28 AM
rw-r--r--
📄
delete_chat.php
369 bytes
08/31/2024 11:08:28 AM
rw-r--r--
📄
delete_group.php
362 bytes
08/31/2024 11:08:28 AM
rw-r--r--
📁
dump
-
08/31/2024 11:08:51 AM
rwxr-xr-x
📄
exit_group.php
404 bytes
08/31/2024 11:08:28 AM
rw-r--r--
📄
function.php
12.33 KB
08/31/2024 11:08:29 AM
rw-r--r--
📄
group.php
19.26 KB
08/31/2024 11:08:31 AM
rw-r--r--
📄
index.php
27.94 KB
08/31/2024 11:08:30 AM
rw-r--r--
📄
memberSearch.php
1.32 KB
08/31/2024 11:08:30 AM
rw-r--r--
📄
register.php
5.08 KB
08/31/2024 11:08:30 AM
rw-r--r--
📄
sendreview.php
626 bytes
08/31/2024 11:08:30 AM
rw-r--r--
📄
signin.php
5.52 KB
08/31/2024 11:08:31 AM
rw-r--r--
📄
signout.php
295 bytes
08/31/2024 11:08:31 AM
rw-r--r--
📄
test.php
2 KB
08/31/2024 11:08:32 AM
rw-r--r--
📄
test1.html
1.4 KB
08/31/2024 11:08:31 AM
rw-r--r--
📄
test1.php
125 bytes
08/31/2024 11:08:31 AM
rw-r--r--
📄
update_member.php
729 bytes
08/31/2024 11:08:31 AM
rw-r--r--
📄
validate.logged.php
580 bytes
08/31/2024 11:08:31 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>