OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
CreateLeadPage
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📁
NW_images
-
03/13/2025 09:27:20 AM
rwxrwxrwx
📁
assets
-
03/13/2025 09:27:20 AM
rwxr-xr-x
📄
db_gallery.php
292 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
edit_template.php
658 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
fetch_data.php
773 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
fetch_titles.php
0 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
form.js
7.64 KB
03/13/2025 09:27:10 AM
rw-r--r--
📄
getAnalyticsData.php
1.45 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
images2
-
03/13/2025 10:38:29 AM
rwxr-xr-x
📁
images3
-
03/13/2025 10:38:30 AM
rwxr-xr-x
📁
images4
-
03/13/2025 10:38:31 AM
rwxr-xr-x
📄
index.php
11.42 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
load_template.php
2.21 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
nleditor_navbar.php
22.6 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
pages
-
03/13/2025 09:27:22 AM
rwxrwxrwx
📁
process
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
process.js
30.77 KB
03/15/2025 04:35:27 AM
rw-r--r--
📄
processb.js
31.21 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
save-template.php
2.69 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
savedPages.php
21.06 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
script.js
34.02 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
styles.css
2.43 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
upload.php
858 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📁
uploads
-
06/05/2025 11:43:53 AM
rwxrwxrwx
Editing: upload.php
Close
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['image'])) { $uploadDir = 'uploads/NW_images/'; // Folder to store images if (!is_dir($uploadDir)) { mkdir($uploadDir, 0777, true); // Create folder if not exists } $file = $_FILES['image']; $fileName = time() . '_' . basename($file['name']); // Unique file name $filePath = $uploadDir . $fileName; // Check if the file is an image $allowedTypes = ['image/jpeg', 'image/png', 'image/gif']; if (in_array($file['type'], $allowedTypes)) { if (move_uploaded_file($file['tmp_name'], $filePath)) { echo $filePath; // Return file path } else { echo "Error uploading the file."; } } else { echo "Invalid file type."; } } else { echo "No image uploaded."; } ?>