X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/ed561d2841ddaac63922840cba8763874aba28a9..7929fc95feddfabac28e38f35cd7a5a45b4731ce:/src/lib/file.log.php?ds=inline diff --git a/src/lib/file.log.php b/src/lib/file.log.php index 9777018..fd073e1 100644 --- a/src/lib/file.log.php +++ b/src/lib/file.log.php @@ -17,7 +17,7 @@ require_once 'lib/file.php'; */ function file_log_open($user) { - return fopen($filename, 'r'); + return fopen("data/log.$user.csv", 'r'); } /** @@ -37,7 +37,7 @@ function file_log_next($fp) */ function file_log_seek($fp, $pos) { - while (!feof($f) and $pos--) fgetcsv($fp, 4096); + while (!feof($fp) and $pos--) fgetcsv($fp, 4096); return !$pos; } @@ -60,6 +60,7 @@ function file_log_seek_fecha($fp, $fecha_desde) else { fseek($fp, $seek); // Vuelvo al principio del registro. + break; } } return $pos;