pixmicat - Blame information for rev 852

Subversion Repositories:
Rev:
Rev Author Line No. Line
687 roytam1 1 <?php
2  
3 include('./config.php');
4  
5 include('./lib/fileio/ifs.php');
6  
7  
8 $fio = new IndexFS(FILEIO_INDEXLOG);
9  
10 $fio->openIndex();
11 clearstatcache();
12 $dirs = array(IMG_DIR, THUMB_DIR);
13 foreach ($dirs as $dir) {
14         if ($handle = opendir($dir)) {
15                 while (false !== ($file = readdir($handle))) {
16                         if ($file == "." || $file == "..")  continue;
17                         $fio->addRecord($file,filesize($dir.'/'.$file),'');
18                 }
19         }
20 }
21 $fio->saveIndex();
22 echo "done";