Rev 5 | Rev 8 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 7 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | usort($phpfiles, function($a,$b) { return filemtime($a) - filemtime($b); }); |
41 | usort($phpfiles, function($a,$b) { return filemtime($a) - filemtime($b); }); |
42 | 42 | ||
43 | $file_nr = 0; |
43 | $file_nr = 0; |
44 | $file_max = count($files) + count($phpfiles); |
44 | $file_max = count($files) + count($phpfiles); |
45 | 45 | ||
46 | $TMP_FILE = '/tmp/insert_logs.cache'; |
46 | $TMP_FILE = __DIR__ . '/.insertlogs.cache'; |
47 | if (file_exists($TMP_FILE)) { |
47 | if (file_exists($TMP_FILE)) { |
48 | $cont = file_get_contents($TMP_FILE); |
48 | $cont = file_get_contents($TMP_FILE); |
49 | $cache = unserialize($cont); |
49 | $cache = unserialize($cont); |
50 | } else { |
50 | } else { |
51 | $cache = array(); |
51 | $cache = array(); |