$codice_pag=$_REQUEST['id']; $id_news=$_REQUEST['id']; include("../../connections/config.inc.php"); require_once("../../elementi/include.php"); include("../../elementi/funzioni.php"); $select = "SELECT * FROM appuntamenti WHERE flag!='no' AND conta='$id_news'"; if($result = $conn->query($select)){ $row_evento = $result->num_rows; $array = $result->fetch_array(MYSQLI_ASSOC); $tipeventi = tipEventi($array['tipo_evento']); $tipeventiVett=explode("-",$tipeventi); $tip=$tipeventiVett[0]; $color_tip=$tipeventiVett[1]; $tipeve=$tipeventiVett[2]; } else {echo "error";exit;} /////////////////////////////////////////////////////////////////////////////////////gestione lingue $titolo_lang="titolo_".$lang; $testo_lang="testo_".$lang; $descrizione_lang="descrizione_".$lang; /////////////////////////////////////////////////////////////////////////////////////////////////// //dettaglio evento //gruppo=0 -> 'pubblico' //gruppo=1 -> 'Privato solo soci Gruppo Regionale' //gruppo=2 -> 'Privato tutti soci' $strsoci=""; if (isset($_SESSION['UtSocio']) and $_SESSION['UtSocio']==0){ $strsoci=" AND socio!='on'"; // visibile a tutti i soci } elseif(isset($_SESSION['UtSocio']) and $_SESSION['UtSocio']==1){ $strsoci=""; } $select_app = "SELECT * FROM allegato_app WHERE codice='$codice_pag'".$strsoci; $result_app = $conn->query($select_app); $row_app = $result_app->num_rows; ?> AIDP