X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/ed561d2841ddaac63922840cba8763874aba28a9..4ba08745f1e611aad8fed681ca46d93c55b84b7a:/src/lib/file.log.php?ds=inline 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; }