X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/examples/view/get-images.php diff --git a/examples/view/get-images.php b/examples/view/get-images.php index 208ed83d..4f686dbd 100644 --- a/examples/view/get-images.php +++ b/examples/view/get-images.php @@ -1,4 +1,4 @@ -read()){ if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue; $size = filesize($dir.$name); $lastmod = filemtime($dir.$name)*1000; - $images[] = array('name'=>$name, 'size'=>$size, + $images[] = array('name'=>$name, 'size'=>$size, 'lastmod'=>$lastmod, 'url'=>$dir.$name); } $d->close(); $o = array('images'=>$images); echo json_encode($o); -?> \ No newline at end of file