X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/examples/view/get-images.php?ds=inline diff --git a/examples/view/get-images.php b/examples/view/get-images.php index 4f686dbd..e84aaa35 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);