Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / view / get-images.php
index 208ed83..3144ac6 100644 (file)
@@ -1,15 +1,14 @@
-<?\r
-$dir = "images/thumbs/";\r
-$images = array();\r
-$d = dir($dir);\r
-while($name = $d->read()){\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
-                       '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
+<?php
+$dir = "images/";
+$images = array();
+$d = dir($dir);
+while($name = $d->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);