isMobile(); $isIphoneDevice=$detect->isiPhone(); $isIOSDevice=$detect->isIOS(); */ $GLOBAL_LINK_PATH="http://www.avvocatimanfredonia.it/"; include("bAdmin/include/config.php"); include("bAdmin/include/basic.php"); $IMPOSTAZIONI=getPreferenze(); $GLOBAL_FACEBOOK=false; $GLOBAL_FACEBOOK_APP_ID=$IMPOSTAZIONI["FB_APPID"]; $GLOBAL_FACEBOOK_SECRET_ID=$IMPOSTAZIONI["FB_SECRET"]; if($IMPOSTAZIONI["FB"]=="SI"){ $GLOBAL_FACEBOOK=true; } $arrayLingueFull=array(); $arrayLingue=array(); $arrayLingueFB=array(); $queryLingue=safe_query("select * from lingue order by Cod_lingua"); while($resLingue=mysql_fetch_array($queryLingue)){ $arrayLingueFull[]=$resLingue; $arrayLingue[$resLingue["Sigla"]]=$resLingue["Cod_lingua"]; $arrayLingueFB[$resLingue["Cod_lingua"]]=$resLingue["Sigla_fb"]; } $linguaCorrente=$arrayLingue["it"]; if(isset($_GET["lang"]) && $_GET["lang"]!=""){ $linguaCorrente=$arrayLingue[$_GET["lang"]]; } $_SESSION["linguaCurr"]=array("COD"=>$linguaCorrente,"SIGLAFB"=>$arrayLingueFB[$linguaCorrente]); $PAGHOMEDB=2; $pag="home.html"; if(isset($_GET["page"]) && $_GET["page"]!=""){ $pag=$_GET["page"]; } $codPagSEO=mysql_fetch_array(safe_query("select Entita from traduzioni where Traduzione='".$pag."' and Lingua='".$linguaCorrente."' and Flag='PAG_LINK_URL'")); if($codPagSEO[0]>1){ $_GET["pag"]=$codPagSEO["Entita"]; $pag=$codPagSEO["Entita"]; }else{ $pag=11; } /*if(isset($_GET['page'])){ $p=$_GET['page']; if($p!=basename($p) || !preg_match("/^[A-Za-z0-9\-_]+$/",$p) || $p=="index" || !existPagina($p)/*file_exists("include/pagine/".$p.".php")* /){ $p=11; } } if(isset($_POST['page'])){ $p=$_POST['page']; if($p!=basename($p) || !preg_match("/^[A-Za-z0-9\-_]+$/",$p) || $p=="index" || !existPagina($p)/*file_exists("include/pagine/".$p.".php")* /){ $p=11; } }*/ include("include/function.php"); $datiDitta=getDatiDitta(); $datiPaginaDB=getDatiPagina($pag); $GLOBAL_LINK_PAG_CURR=traduci($pag,"PAG_PERMALINK",$linguaCorrente); $PAG_CURR_TITOLO=traduci($pag,"PAG_TITOLO",$linguaCorrente); $PAG_CURR_STITOLO=traduci($pag,"PAG_STITOLO",$linguaCorrente); $datiLayoutDB=getDatiLayout($datiPaginaDB["Layout"]); $datiGalleryPagDB=getFotogalleryPagina($pag); $strTitle=getTitle($pag,$linguaCorrente,$_GET); $strMetaFBProd=""; $flagPathPag="PAGINE"; if($strMetaFBProd==""){ $fotoPagFB=$datiPaginaDB["Foto"]; if($fotoPagFB=="" || !file_exists($fotoPagFB)){ if(count($datiGalleryPagDB)>0){ $fotoPagFB=$datiGalleryPagDB[0]["Originale"]; } } $strMetaFBProd=' '; } /*$strMetaHREFLANG=""; $strBandLingue=""; $imgBandActive=""; for($i=0;$i'; $classActive="active"; }else{ //$imgBandActive=''.$titLingua.''; $imgBandActive=''.strtoupper($arrayLingueFull[$i]["Sigla"]).''; } $strBandLingue.='
  • '.$titLingua.' '.traduci($arrayLingueFull[$i]["Cod_lingua"],"LINGUA_DESCR",$linguaCorrente).'
  • '; $strMetaHREFLANG.=''; }*/ ?>
    ".html_entity_decode($tradHtmlSx,ENT_QUOTES,"UTF-8")."

    ".html_entity_decode($tradHtmlSx,ENT_QUOTES,"UTF-8")."
    ".html_entity_decode($tradHtmlCx,ENT_QUOTES,"UTF-8")."
    ".html_entity_decode($tradHtmlSx,ENT_QUOTES,"UTF-8")."

    ".html_entity_decode($tradHtmlSx,ENT_QUOTES,"UTF-8")."