X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/ed561d2841ddaac63922840cba8763874aba28a9..5efeba457ce2372a03e8eeae0a897e4116eedc49:/src/lib/file.log.php diff --git a/src/lib/file.log.php b/src/lib/file.log.php index 9777018..bcdcb41 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; }