update activation 3
This commit is contained in:
parent
2426432e9e
commit
bf167c7921
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user