-<?\r
+<?php\r
$dir = "images/thumbs/";\r
$images = array();\r
$d = dir($dir);\r
if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue;\r
$size = filesize($dir.$name);\r
$lastmod = filemtime($dir.$name)*1000;\r
- $images[] = array('name'=>$name, 'size'=>$size, \r
+ $images[] = array('name'=>$name, 'size'=>$size,\r
'lastmod'=>$lastmod, 'url'=>$dir.$name);\r
}\r
$d->close();\r
$o = array('images'=>$images);\r
echo json_encode($o);\r
-?>
\ No newline at end of file