write(); Logging::info('uplink', $headers, $raw); } else { db_logging($_GET['type'] ?? 'error', $raw, $headers); Logging::info($_GET['type'] || 'error', $headers); } } catch (Throwable $e) { error_log($e->getMessage() . ' - see also /tmp/track-error.log'); Logging::info('error', $e->getMessage(), $headers, $_GET, $_POST, json_decode($raw)); } } else { Logging::info('error', "Not allowed", $headers, $_GET, $_POST, json_decode($raw)); } header("Content-Type: application/json", true, 200); echo "true"; exit(0);