HEX
Server: LiteSpeed
System: Linux hippo 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: tsacademy (1021)
PHP: 8.1.29
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/tsacademy/domains/tsacademy.ir/public_html/chat-api-dollar.php
<?php

require_once("wp-load.php");

global $wpdb;

$last = intval($_GET['last'] ?? 0);

$messages = $wpdb->get_results(
"SELECT * FROM wp_bale_messages_dollar WHERE id > $last ORDER BY id ASC"
);

header('Content-Type: application/json; charset=utf-8');

echo json_encode($messages, JSON_UNESCAPED_UNICODE);