X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..HEAD:/examples/view/get-images.php?ds=inline diff --git a/examples/view/get-images.php b/examples/view/get-images.php index 4f686dbd..3144ac63 100644 --- a/examples/view/get-images.php +++ b/examples/view/get-images.php @@ -1,14 +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); +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);