35 lines
866 B
PHP
Executable File
35 lines
866 B
PHP
Executable File
<?php
|
|
header('Content-Type: application/json');
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
// API: cvc-factory.php pour cvc-vault.html
|
|
$action = $_GET['action'] ?? ($_POST['action'] ?? 'status');
|
|
|
|
$response = ['status' => 'success', 'data' => [], 'message' => ''];
|
|
|
|
try {
|
|
switch($action) {
|
|
case 'stats':
|
|
$response['data'] = [
|
|
'total' => 0,
|
|
'active' => 0,
|
|
'success_rate' => 0
|
|
];
|
|
break;
|
|
|
|
case 'list':
|
|
$response['data'] = [];
|
|
break;
|
|
|
|
default:
|
|
$response['message'] = 'cvc-factory API Ready';
|
|
}
|
|
} catch(Exception $e) {
|
|
$response['status'] = 'error';
|
|
$response['message'] = $e->getMessage();
|
|
error_log("API cvc-factory error: " . $e->getMessage());
|
|
}
|
|
|
|
echo json_encode($response);
|
|
?>
|