'; // Caricamento template $file = !empty(get('edit')) ? 'edit' : 'add'; if (file_exists($docroot.$directory.'/custom/'.$file.'.php')) { include $docroot.$directory.'/custom/'.$file.'.php'; } elseif (file_exists($docroot.$directory.'/custom/'.$file.'.html')) { include $docroot.$directory.'/custom/'.$file.'.html'; } elseif (file_exists($docroot.$directory.'/'.$file.'.php')) { include $docroot.$directory.'/'.$file.'.php'; } elseif (file_exists($docroot.$directory.'/'.$file.'.html')) { include $docroot.$directory.'/'.$file.'.html'; } echo ' '; // Campi personalizzati echo '