",'Archivio per data',$tpl); $tpl = ereg_replace("",$elencoarchivio,$tpl); $elencoarchivio=archivio_proposte($template,$step); $tpl= ereg_replace("",'Archivio per categorie',$tpl); $tpl= ereg_replace("",$elencoarchivio,$tpl); if (isset($_SESSION['auth'])) { $editor = file_get_contents("visualizzatore.html"); $tpl=ereg_replace("",$editor,$tpl); switch ($_GET['event_id']) { case 'tutte': $eventi = new Events(); $event_id = $_GET['event_id']; $galleria = $eventi->elenco_tutte(); $tpl=ereg_replace("",$galleria,$tpl); break; case 'presente': $eventi = new Events(); $event_id = $_GET['event_id']; $galleria = $eventi->elenco_partecipato(); $tpl=ereg_replace("",$galleria,$tpl); break; default: $eventi = new Events(); $event_id = $_GET['event_id']; if (!is_numeric($event_id) OR $event_id == '' OR $event_id == '0') { header("Location: index.php"); break; } $galleria = $eventi->elenco_foto($event_id); $tpl=ereg_replace("",$galleria,$tpl); break; } $tuttetutte = 'Guarda tutte le foto
'; //Guarda tutte le foto a tua disposizione $tuttepresente = 'Tutte le foto dei tuoi eventi
'; //Guarda tutte le foto a tua disposizione $tuttefoto = $tuttetutte.'
'.$tuttepresente; } else { header("Location: index.php"); } $tpl = ereg_replace("",$tuttefoto,$tpl); echo $tpl; ?>