"; } # showp - Articoli # GoToSubPage=showp&op=a&obj=86 if(($GoToSubPage == "showp") && ($op=="a")){ # Ricerco tipologia $trs = CreateQueryDef("SELECT descrizione_$Lang FROM categorie WHERE codice = '$obj'"); $ShowCase = strtoupper(mysql_result($trs,0,"descrizione_$Lang")); $CanonicalUrl = ""; if($Filter <>""){ $PageTitle = $ShowCase." ".$Filter." in vendita su mpielectronic.com"; $PageDescription = "$ShowCase $Filter, i migliori articoli per DJ su mpielectronic.com, acquista online oppure trova il rivenditore pių vicino."; } else{ $PageTitle = $ShowCase." per Dj, in vendita su mpielectronic.com"; $PageDescription = "$ShowCase per Dj, attrezzature per Dj delle migliori marche in vendita su mpielectronic.com. Acquista online oppure trova il rivenditore pių vicino."; } } # PSheet - Scheda Prodotto # GoToSubPage=PSheet&Art=2701010&MakeVis=x if(($SitePage == "PSheet") || ($SitePage == "nPSheet") || ($SitePage=="testps")){ $tmpArt = LoadProduct($Art); $trs = CreateQueryDef("SELECT descrizione_$Lang FROM categorie WHERE codice = '".$tmpArt["Categoria"]."'"); $ShowCase = strtoupper(mysql_result($trs,0,"descrizione_$Lang")); $ShowCase = str_replace("Â","",$ShowCase); $tmpArt["Nome"] = str_replace("Â","",$tmpArt["Nome"]); $PageTitle = $ShowCase." ".$tmpArt["Nome"]." | Acquista su mpielectronic.com"; $PageDescription =$ShowCase." ".$tmpArt["Nome"].", i migliori articoli per DJ su mpielectronic.com, acquista online oppure trova il rivenditore pių vicino."; $CanonicalUrl = ""; } # endorsers # GoToSubPage=endorsers&endorser_id=4 if($GoToSubPage == "endorsers"){ $rs = CreateQueryDef("SELECT * FROM anagrafica_Endorsers WHERE EndorserID = '$endorser_id'"); $thisDenominazione = strtoupper(mysql_result($rs,0,"Denominazione")); $PageTitle = "$thisDenominazione, i migliori Dj italiani su mpielectronic.com"; $PageDescription = "Il profilo e i contatti di $thisDenominazione, scopri i migliori Dj italiani su mpielectronic.com"; $CanonicalUrl = ""; } # Rivenditori # GoToSubPage=Rivenditori if($GoToSubPage == "Rivenditori"){ $PageTitle = "Rivenditori attrezzature per Dj | mpielectronic.com"; $PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su mpielectronic.com."; $CanonicalUrl = ""; } # Rivenditori_sel # GoToSubPage=Rivenditori_sel&Reg=4 if($GoToSubPage == "Rivenditori_sel"){ $rrs = CreateQueryDef("SELECT name FROM regioni WHERE no = '$Reg'"); $thisRegName = strtoupper(mysql_result($rrs,0,"name")); $PageTitle = "Rivenditori attrezzature per Dj - $thisRegName | mpielectronic.com"; $PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su mpielectronic.com."; $CanonicalUrl = ""; } # Rivenditori_det # GoToSubPage=Rivenditori_det&Reg=4&Pro=54 if($GoToSubPage == "Rivenditori_det"){ $rrs = CreateQueryDef("SELECT name FROM regioni WHERE no = '$Reg'"); $thisRegName = strtoupper(mysql_result($rrs,0,"name")); $crs = CreateQueryDef("SELECT provincia FROM province WHERE IDProvincia = '$Pro'"); $thisProvincia = strtoupper(mysql_result($crs,0,"provincia")); $PageTitle = "Rivenditori attrezzature per Dj - $thisRegName/$thisProvincia | mpielectronic.com"; $PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su mpielectronic.com."; $CanonicalUrl = ""; } # CentriAss # GoToSubPage=CentriAss if($GoToSubPage == "CentriAss"){ $PageTitle = "Centri Assistenza | mpielectronic.com"; #$PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su mpielectronic.com."; $CanonicalUrl = ""; } ############################### # # Per eliminare il messaggio "Pagina Scaduta", demarcare la seguente linea : # # header('Cache-control: Private'); # if($UData["PERM_ProfiloFornitore"] <>""){ if($SitePage=="Home"){ echo " "; die; } } # # Caricamento Impostazioni MAIN_PageConfig # $PGRS = CreateQueryDef("SELECT * FROM MAIN_PageConfig WHERE PageName = '$SitePage'"); $PGCN = mysql_num_rows($PGRS); if ($PGCN>0){ $ThisOnLoad = mysql_result($PGRS,0,"onLoad"); $ThisOnClick = mysql_result($PGRS,0,"onClick"); $ThisOnBeforeUnload = mysql_result($PGRS,0,"onBeforeUnload"); $ThisOnKeyDown = mysql_result($PGRS,0,"onKeyDown"); $ThisTopPath = mysql_result($PGRS,0,"TopPath"); $ThisTemplate = mysql_result($PGRS,0,"Template"); $PageTitle = mysql_result($PGRS,0,"PageTitle"); } $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'Google Adv: '.$Intermezzo.'\r\n'; # # Ricerca Numero Eventi # $NEventi = 0; $GalleryPath = $SiteRootPath."/Gallery"; # # Lettura Folders # $d = dir($GalleryPath); $i=0; while ($entry = $d->read()) { if ($entry <> ".." && $entry <> "." && $entry <> "backups"){ if(is_dir($GalleryPath."/".$entry)){ $NEventi++; } } } # Ricerca numero Cataloghi $NCataloghi = 0; $rs = CreateQueryDef("SELECT * FROM anagrafica_cataloghi ORDER BY Ordine"); $NCataloghi = mysql_num_rows($rs); if($NCataloghi > 0){ for($c=0; $c<$NCataloghi; $c++){ $CATDESC[$c] = mysql_result($rs,$c,"Descrizione"); $CATLINK[$c] = mysql_result($rs,$c,"Link"); } } # Pass Standard: f70facf8be1e2bda6e82e283d3a6da6e if($PGCN>0){ if($ThisTemplate=="2026"){ # Refactoring 2026 : template pilotato da MAIN_PageConfig.Template include ("./_2026/Snippets/top.php"); $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'TOP 2026: '.$Intermezzo.'\r\n'; } else if(isset($ResponsivePage[$SitePage])){ # Responsive if($ResponsivePage[$SitePage]=="2021"){ include ("./_2021/Snippets/top.php"); $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'TOP 2021: '.$Intermezzo.'\r\n'; } else{ include ("./_Responsive/Snippets/top.php"); $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'TOP: '.$Intermezzo.'\r\n'; } } else{ include ("./_Responsive/Snippets/top.php"); $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'TOP: '.$Intermezzo.'\r\n'; } } else{ include ("./_2021/Snippets/top.php"); $Intermezzo = getMicrotime()-$StartTime; $GLOBALS['BenchRilevazioni'] .= 'TOP 2021: '.$Intermezzo.'\r\n'; } ?>