$v){
$id_album=$v;
/* Lista marchi associati */
$album_marchi=__raw_db_qry($conn,"SELECT * FROM `custom_files` INNER JOIN `custom_files_lang` ON `custom_files`.`id_file`=`custom_files_lang`.`id_file` WHERE `for`='A' AND `id_obj`='{$id_album}' AND `id_lang`='1';");
while($marchio=mysql_fetch_array($album_marchi)){
$img_path=$_SERVER['DOCUMENT_ROOT']."/man/files/".$marchio["md5"]; //FILE IMMAGINE
$img_name=htmlentities(__hex_to_ascii($marchio["nome"])); //NOME IMMAGINE
/* se non esiste il file */
if(!file_exists($img_path)){
$img_path=$_SERVER['DOCUMENT_ROOT']."/thumbs_support/not_found.gif"; //NOT FOUND
$img_name="404: NOT FOUND"; //NOME IMMAGINE
}
?>