Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_images() {
- $carpeta = get_subtitle();
- $carpeta = DIR_FOTOS . $carpeta;
- if(file_exists($carpeta)) {
- $dir = opendir($carpeta);
- } else {
- $dir = False;
- }
- $html_images = NULL;
- if ($dir !== False) {
- while(($imagen = readdir($dir)) !== False) {
- $ruta = DIR_FOTOS . $imagen;
- if(strpos(strtolower($imagen), '.jpg') !== False) {
- $html_images .= render_miniatura("$carpeta/$imagen");
- }
- }
- }
- return $html_images;
- }
Add Comment
Please, Sign In to add comment