$max_char){ $stringa_tagliata=substr($stringa, 0,$max_char); $last_space=strrpos($stringa_tagliata," "); $stringa_ok=substr($stringa_tagliata, 0,$last_space); return strip_tags(trim($stringa_ok), $tag_ammessi).$holder; }else{ return strip_tags(trim($stringa), $tag_ammessi); } } ?> '; $dir = "products/img/".$folder[1]."/"; $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $estensione=pathinfo($filename, PATHINFO_EXTENSION); if($estensione == (("jpg")||("png")||("gif"))){ $files[] = $filename; } } sort($files); $totImages = count($files); } ?> TO.LAB design store | <?php if(isset($prodotto)){ echo $prodotto; }if((isset($cat1))&&(!isset($cat2))&&(!isset($cat3))){ echo 'Catalogo '.$cat1; }if((isset($cat1))&&(isset($cat2))&&(!isset($cat3))){ echo 'Catalogo '.$cat2; }if((isset($cat1))&&(isset($cat2))&&(isset($cat3))){ echo 'Catalogo '.$cat3; }if((!isset($cat1))&&(!isset($cat2))&&(!isset($cat3))&&(!isset($prodotto))){ echo 'Catalogo prodotti'; } ?>