X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..HEAD:/examples/view/get-images.php?ds=inline diff --git a/examples/view/get-images.php b/examples/view/get-images.php index 208ed83d..3144ac63 100644 --- a/examples/view/get-images.php +++ b/examples/view/get-images.php @@ -1,15 +1,14 @@ -read()){ - if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue; - $size = filesize($dir.$name); - $lastmod = filemtime($dir.$name)*1000; - $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 +read()){ + if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue; + $size = filesize($dir.$name); + $lastmod = filemtime($dir.$name)*1000; + $images[] = array('name'=>$name, 'size'=>$size, + 'lastmod'=>$lastmod, 'url'=>$dir.$name); +} +$d->close(); +$o = array('images'=>$images); +echo json_encode($o);