- Replaced color picker form control with a more robust version.
This commit is contained in:
parent
6fe068e42d
commit
6e0470771e
1193 changed files with 342 additions and 223 deletions
15
www/extras/extjs/examples/view/get-images.php
vendored
Normal file
15
www/extras/extjs/examples/view/get-images.php
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?
|
||||
$dir = "images/thumbs/";
|
||||
$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);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue