require_once ("admin/config.php");
require_once ("admin/funzioni.php");
require_once ("traduzioni.php");
session_start();
?>
Bus terminal Cattolica
$l=1;
$res=mysql_query("select TITOLO1_2, TITOLO2_2, TITOLO3_2, TITOLO1, TITOLO2, TITOLO3, ".
" TESTO1,TESTO2,TESTO3,TESTO1_2,TESTO2_2,TESTO3_2,MINIATURA1,FOTO1,".
"MINIATURA2,FOTO2,MINIATURA3,FOTO3 from TBL_HOMEPAGE where 1=1");
$row=mysql_fetch_assoc($res);
///
if (isset($_GET["l"])){
$l=$_GET["l"];
}
if ($l==1){
$titolo11="TITOLO1";$titolo22="TITOLO2";$titolo33="TITOLO3";
$testo11="TESTO1";$testo22="TESTO2";$testo33="TESTO3";
}
elseif ($l==2){
$titolo11="TITOLO1_2";$titolo22="TITOLO2_2";$titolo33="TITOLO3_2";
$testo11="TESTO1_2";$testo22="TESTO2_2";$testo33="TESTO3_2";
}
$titolo=stripslashes(trim($row[$titolo11]));
$pos=strpos($titolo," ");
$primaparola1=substr($titolo,0,$pos);
$resto1=trim(str_replace($primaparola1," ",$titolo));
///
$titolo=stripslashes(trim($row[$titolo22]));
$pos=strpos($titolo," ");
$primaparola2=substr($titolo,0,$pos);
$resto2=trim(str_replace($primaparola2," ",$titolo));
///
$titolo=stripslashes(trim($row[$titolo33]));
$pos=strpos($titolo," ");
$primaparola3=substr($titolo,0,$pos);
$resto3=trim(str_replace($primaparola3," ",$titolo));
$testo1 =stripslashes(trim($row[$testo11]));
$testo2 =stripslashes(trim($row[$testo22]));
$testo3 =stripslashes(trim($row[$testo33]));
$miniatura1="images/nophoto.jpg";
if ($row["MINIATURA1"]!=''){
$miniatura1=str_replace("../","",$row["MINIATURA1"]);
$foto1=str_replace("../","",$row["FOTO1"]);
}
$miniatura2="images/nophoto.jpg";
if ($row["MINIATURA2"]!=''){
$miniatura2=str_replace("../","",$row["MINIATURA2"]);
$foto2=str_replace("../","",$row["FOTO2"]);
}
$miniatura3="images/nophoto.jpg";
if ($row["MINIATURA3"]!=''){
$miniatura3=str_replace("../","",$row["MINIATURA3"]);
$foto3=str_replace("../","",$row["FOTO3"]);
}
?>