Primer Commit

This commit is contained in:
LuisAngelSalinasl
2025-08-04 18:51:41 -06:00
commit 8fcbb98114
8990 changed files with 1407288 additions and 0 deletions

21
js/log_front.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
$uuid = $_POST['uuid'] ?? null;
$fragmentJson = $_POST['fragment'] ?? null;
if ($uuid !== null && $fragmentJson !== null) {
// Obtener la fecha actual
$fechaActual = date('Y-m-d H:i:s');
$contenido = "Fecha: $fechaActual\nUUID: $uuid\nError: $fragmentJson\n\n";
// Escribir en el archivo de registro
$archivo = 'log_front.txt';
file_put_contents($archivo, $contenido, FILE_APPEND);
// Respondemos al cliente indicando que la operación se completó correctamente
echo 'Datos recibidos y escritos en el archivo de registro correctamente.';
} else {
// Si faltan datos, respondemos con un mensaje de error
echo 'Error: Faltan datos en la solicitud.';
}
?>