{source}[[?php $dir=’ftp/Hemeroteca/Presentacion_Gala/’; //nombre de la carpeta
$images = glob(«$dir{*.gif,*.jpg,*.png}», GLOB_BRACE); foreach($images as $v){ echo ‘[[div]][[a href=»‘.$v.'»]][[img src=»‘.$v.'» border=»0″ style=»width:100%;»]][[/a]][[/div]] ‘; echo ‘[[br /]]’;} ?]] {/source}
{source}[[?php $dir=’ftp/Hemeroteca/Presentacion_Gala/’; //nombre de la carpeta
$pdfs = glob(«$dir{*.pdf}», GLOB_BRACE); foreach($pdfs as $v){ echo ‘[[div]][[a href=»‘.$v.'»]]’.substr ( $v , 33 ).’[[/a]][[/div]] ‘; echo ‘[[br /]]’;} ?]] {/source}