- Voice enhancements, user management, payment method
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
define('CYBERCHAT_API', true);
|
||||
require_once __DIR__ . '/../bootstrap.php';
|
||||
sendCorsHeaders();
|
||||
|
||||
$user = authUser(false);
|
||||
$type = preg_replace('/[^a-z0-9_.-]/i', '', (string)($_POST['event'] ?? 'visit')) ?: 'visit';
|
||||
$path = (string)($_POST['path'] ?? '');
|
||||
trackEvent($type, $path, $user ? (int)$user['id'] : null);
|
||||
jsonResponse(['success' => true]);
|
||||
Reference in New Issue
Block a user