+++ /dev/null
-<?php\r
-$dir = dirname(__FILE__) ."/../view/images/thumbs/";\r
-\r
-$images = array();\r
-$d = dir($dir);\r
-while($name = $d->read()){\r
- if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue;\r
- \r
- \r
- $size = filesize($dir.$name);\r
- $lastmod = filemtime($dir.$name)*1000;\r
- $images[] = array('name'=>$name, 'size'=>$size, \r
- 'lastmod'=>$lastmod, 'url'=>"images/thumbs/".$name);\r
-}\r
-$d->close();\r
-$o = array('images'=>$images);\r
-\r
-echo json_encode($o);\r
+++ /dev/null
-<!--
-To change this template, choose Tools | Templates
-and open the template in the editor.
--->
-<!DOCTYPE html>
-<html>
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body>
- <div>TODO write content</div>
- </body>
-</html>