update activation 3

This commit is contained in:
Flatlogic Bot 2026-02-18 18:58:14 +00:00
parent 2426432e9e
commit bf167c7921

View File

@ -18,13 +18,13 @@ if (strpos($request_uri, '/verify') !== false) $endpoint = 'verify';
if (strpos($request_uri, '/deactivate') !== false) $endpoint = 'deactivate';
if (strpos($request_uri, '/issue') !== false) $endpoint = 'issue';
$input = json_decode(file_get_contents('php://input'), true);
// If running as a simple script without proper URL rewriting
if (empty($endpoint)) {
$endpoint = $_GET['action'] ?? '';
$endpoint = $_GET['action'] ?? $input['action'] ?? '';
}
$input = json_decode(file_get_contents('php://input'), true);
try {
$pdo = db_manager();
} catch (Exception $e) {