<?php require_once "/var/www/html/config.database.php"; ?>
<?php
require_once __DIR__ . '/config.php';
header('Content-Type: application/json');

$db = fxh_db();
$msg = trim($_GET['msg'] ?? '');
$license = trim($_GET['license'] ?? '');

if($msg==''){ exit; }

$stmt = $db->prepare("
INSERT INTO fxh_error_logs (source, license_key, error_message)
VALUES ('EA', ?, ?)
");
$stmt->bind_param("ss", $license, $msg);
$stmt->execute();

echo "OK";
?>
