Programma una tua idea '; $tpl= ereg_replace("",$linkcreaprop,$tpl); $foot=file_get_contents("$template/footpagproglog.html"); $headl=file_get_contents("$template/headlog.html"); if (isset($_GET['vota'])) { vota($_GET['vota']); } } else { $foot=file_get_contents("$template/footpagnolog.html"); if (isset($_GET['vota'])) { header("Location: in_programma.php"); } } //$tpl2=contenuto_proposte($template,$foot,$step,$_GET['tipo']); $anno_corrente = date('Y'); $tpl2=contenuto_programmi($template,$foot,$headl,$step,$anno_corrente); $elencoarchivio=archivio_proposte($template,$step); $tpl= ereg_replace("",'Proposte promosse',$tpl); $tpl= ereg_replace("",$elencoarchivio,$tpl); $elencoarchivio=archivio_programmi($template,$step); $tpl= ereg_replace("",'Cerca per data',$tpl); $tpl= ereg_replace("",$elencoarchivio,$tpl); $titoletto = ''; switch ($_GET['view']) { case 'archivi': //visualizza il contenuto della categoria scelta $tpl2 =contenuto_proposte($template,$foot,$step,$_GET['tipo']); break; case 'programmi': //visualizza il contenuto della data scelta $tpl2 =contenuto_programmi($template,$foot,$headl,$step,$_GET['anno']); break; case 'single': //visualizza proposta singola $contenuto = contenuto_programma($template,$foot,$headl,$step,$_GET['eventi_id']); $tpl2 = $contenuto[0]; $tpl2 = ereg_replace("",$mepiace,$tpl2); $titoletto = ' - '.$contenuto[1]; break; } $tpl=ereg_replace("",$tpl2,$tpl); $tpl=ereg_replace("",$titoletto,$tpl); echo $tpl; ?>