Codice PHP:
if( ! isset($_GET['dettaglio']) )
{
    
//leggi la cartella
}
else
{
    
//non leggere la cartella