session_start();
include("../params_sanitizer.php");
include_once('../config/config_DB_Arba.php');
$db=mysql_connect("$DBhost","$DBuser","$DBpass") or die("Cannot connect to the database");
@mysql_select_db("$DBName");
if (isset($_REQUEST['CodiceSegreto'])) {
$CodiceSegreto = $_REQUEST['CodiceSegreto'];
$_SESSION['CodiceSegreto'] = $CodiceSegreto;
} else if (isset($_SESSION['CodiceSegreto'])) {
$CodiceSegreto = $_SESSION['CodiceSegreto'];
}
if (isset($_GET['CodiceSegreto'])) $c = $_GET['CodiceSegreto'];
if (isset($_GET['c'])) $c = $_GET['c'];
$lin = (isset($_GET['lin'])) ? $_GET['lin'] : 'FR';
if ($lin == "IT") include ("Linguaggi/roadshow_it.php");
else if ($lin == "FR") include ("Linguaggi/roadshow_fr.php");
else if ($lin == "ES") include ("Linguaggi/roadshow_es.php");
else include ("Linguaggi/roadshow_en.php");
// IL CICLO SOTTO SERVE A TRASFORMARE I CARATTERI DELLE PAGINE DELLE TRADUZIONI DA LATIN1 AD ELEMENTI HTML VALIDI COME "
foreach ( array_keys($trad) as $chiave ) {
foreach ( array_keys($trad[$chiave]) as $chiaveInterna ) {
$trad[$chiave][$chiaveInterna]=htmlentities($trad[$chiave][$chiaveInterna], ENT_QUOTES);
$trad[$chiave][$chiaveInterna]=str_replace(array('<', '>','"'),array('<', '>','"'),$trad[$chiave][$chiaveInterna]);
// lo string replace sopra serve a ritornare a mettere il minore e maggiore per ricreare i tag html come il br e per sostituire
// le doppie virgolette con il backslash \" tradotto in "
}}
?>
$queryOld = "SELECT * FROM newsMail.view_seminari_web where fine_prenotazioni >= date(now()) and group_id = 4 and language = '$lin' order by data_inizio asc";
$rsOld = mysql_query($queryOld) or die(mysql_error());
?>
$queryOld = "SELECT * FROM newsMail.view_seminari_web where fine_prenotazioni < date(now()) and group_id = 4 and language = '$lin' order by data_inizio asc";
$rsOld = mysql_query($queryOld) or die(mysql_error());
?>