header('Content-Type: text/html; charset=utf-8' ); include("../CMS/_CORE_config.php"); include("../inc/FUNCTIONS_date.php"); include("../inc/_CORE_function_string.php"); $db = mysql_connect($db_host, $db_user, $db_password); if ($db == FALSE) { die ("Errore nella connessione. Verificare i parametri nel file config.inc.php"); } mysql_select_db($db_name, $db); $idmagazinePASSED = 2087; $queryNEWSWELCOME = "select magazine.* from magazine WHERE datapubblicazione <= NOW() AND idmagazine = ".$idmagazinePASSED; $resultNEWSWELCOME = mysql_query($queryNEWSWELCOME, $db); while ($rowNEWSWELCOME = mysql_fetch_array($resultNEWSWELCOME)) { $titolopaginaNEWSWELCOME = stripslashes($rowNEWSWELCOME['titolopagina']); $metadescriptionNEWSWELCOME = $rowNEWSWELCOME['metadescription']; $metakeywordNEWSWELCOME = $rowNEWSWELCOME['metakeyword']; $idmagazineNEWSWELCOME = $rowNEWSWELCOME['idmagazine']; $titoloitaNEWSWELCOME = $rowNEWSWELCOME['titoloita']; $featuresNEWSWELCOME = $rowNEWSWELCOME['features']; $descrizioneitaNEWSWELCOME = $rowNEWSWELCOME['descrizioneita']; $filepdfNEWSWELCOME = $rowNEWSWELCOME['filepdf']; $imgHeaderNews = $rowNEWSWELCOME['imgcoldx']; $nomefileNEWSWELCOME = $rowNEWSWELCOME['nomefile'].".php"; $datapubblicazioneNEWSWELCOME = $rowNEWSWELCOME['datapubblicazione']; $arrdatapubblicazioneNEWSWELCOME = explode("-",$datapubblicazioneNEWSWELCOME); $datapubblicazioneNEWSWELCOME = $arrdatapubblicazioneNEWSWELCOME[2]." ".meseItaliano($arrdatapubblicazioneNEWSWELCOME[1])." ".$arrdatapubblicazioneNEWSWELCOME[0]; } ?>