include("./includes/var.php");
include("./includes/functions.php");
#error_reporting(0);
##################
global $QryTime;
global $QryCnt;
$QryTime = 0;
$StartTime = getMicrotime();
$KeepBench = "Y";
##################
SetParams();
###############################
#
# Facebook
#
###############################
global $WWWAddress;
$AppID = "";
$FBAdmin = "1369424699";
$WWWAddress = "www.djpoint.net";
###############################
#
# Out Of Service
#
###############################
$SiteVars = LoadSiteVars();
$OutOfService = $SiteVars["OutOfService"];
$isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
$isiPhone = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone');
$isChrome = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'Chrome');
$isFirefox = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'Firefox');
$BodyWidth = 832;
if($isChrome){
$BodyWidth = 828;
}
if($isFirefox){
$BodyWidth = 828;
}
$ConfigPageWidth = array();
$ConfigPageWidth['SpeedChart'] = 1000;
$ConfigPageWidth['Rivenditori'] = 858;
$ConfigPageWidth['endorsers'] = 900;
$ConfigPageWidth['Ges_DJP'] = 1000;
$ConfigPageWidth['MGAcquisti'] = 1050;
$ConfigPageWidth['JHome'] = 1050;
$ConfigPageWidth['GesGold'] = 1200;
$ConfigPageWidth['AnaTra_Edit'] = 1200;
$ConfigPageWidth['AnaPag_Show'] = 1250;
$ConfigPageWidth['AnaPag_Edit'] = 1200;
$ConfigPageWidth['Ela_PPrice'] = 1400;
$ConfigPageWidth['Prod_PPrice'] = 1400;
$ConfigPageWidth['MyBasket'] = 1000;
$ConfigPageWidth['BOEvad'] = 950;
$ConfigPageWidth['DashAge'] = 1100;
$ConfigPageWidth['Rpt_Reddit'] = 1400;
$ConfigPageWidth['AnaListini_Show'] = 1200;
$ConfigPageWidth['AnaListini_Edit'] = 1000;
$ConfigPageWidth['GesBundle_Show'] = 1200;
$ConfigPageWidth['GesBundle_Edit'] = 1200;
$ConfigPageWidth['BundleListini'] = 1200;
$ConfigPageWidth['GesCat_Show'] = 1200;
$ConfigPageWidth['CNFPry'] = 1200;
if(($isiPad) || ($isiPhone)){
$ConfigPageWidth['MyBasket'] = 900;
$ConfigPageWidth['Riepilogo'] = 840;
}
if(isset($ConfigPageWidth[$SitePage])){
$BodyWidth = $ConfigPageWidth[$SitePage];
}
$ResponsivePage['Home'] = "2021";
$ResponsivePage['Privacy'] = "2021";
$ResponsivePage['Info'] = "2021";
$ResponsivePage['CentriAss'] = "2021";
$ResponsivePage['Condizioni'] = "2021";
$ResponsivePage['NsRivenditori'] = "2021";
$ResponsivePage['WishList'] = "2021";
$ResponsivePage['AgentiPane'] = "2021"; # non ha responsive
$ResponsivePage['AgentiBO'] = "2021"; # non ha responsive
$ResponsivePage['AgentiSS'] = "2021"; # non ha responsive
$ResponsivePage['showp'] = "2021";
$ResponsivePage['PSheet'] = "2021";
$ResponsivePage['ShowBundle'] = "2021";
$ResponsivePage['ModProfile'] = "2021"; # Riferimenti Responsive all'interno dello script ModProfile.php
$ResponsivePage['RipPwd'] = "2021";
$ResponsivePage['MyBasket'] = "2021";
$ResponsivePage['Riepilogo'] = "2021"; # Riferimenti Responsive all'interno dello script Riepilogo.php
$ResponsivePage['PubReg'] = "2021";
$ResponsivePage['InviaOrdine'] = "2021";
$ResponsivePage['Remove'] = "YES";
$ResponsivePage['rePwd'] = "YES";
$ResponsivePage['Thankyoup'] = "YES";
#$UData["PERM_MostraIPercorsiDeiModuli"] = "x";
$ResponsivePage['JHome'] = "YES";
$ResponsivePage['JRiv'] = "YES";
$ResponsivePage['for_myProds'] = "YES";
$ResponsivePage['CatConfig'] = "2021";
$ResponsivePage['CatConfigAP'] = "2021";
$ResponsivePage['Imballaggi'] = "2021";
$ResponsivePage['ImballaggiSheet'] = "2021";
$ResponsivePage['DataMail'] = "YES";
###############################
#
# INDICIZZAZIONE GOOGLE
#
###############################
# $PageTitle
# $PageDescription
# $CanonicalUrl
###############################
$OldDescription = "djpoint.net č un portale web. djpoint.net si occupa di distribuzione di prodotti ed apparecchiature per dj/dj equipment di primissimo livello. djpoint.net distribuisce in Italia i marchi leader del settore. djpoint.net distribuisce prodotti Wharfedale pro. djpoint.net distribuisce prodotti Udg. djpoint.net distribuisce prodotti gemini. djpoint.net distribuisce prodotti Stanton. djpoint.net distribuisce prodotti Hercules";
$PageTitle = "Djpoint.net | Attrezzature per Dj, vendita online Dj equipment";
$PageDescription = "Attrezzature per Dj delle migliori marche, acquista online oppure trova il rivenditore pių vicino. Dj equipment Stanton, Gemini, Hercules, Wharfedale Pro";
$CanonicalUrl = "";
# showp - Marchi
# GoToSubPage=showp&op=m&obj=ALLEN+%26amp%3B+HEATH
if(($GoToSubPage == "showp") && ($op=="m")){
$PageTitle = $obj.", attrezzature per Dj in vendita su Djpoint.net";
$PageDescription = "$obj, i migliori articoli per DJ su Djpoint.net, acquista online oppure trova il rivenditore pių vicino.";
$CanonicalUrl = "";
}
# 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 Djpoint.net";
$PageDescription = "$ShowCase $Filter, i migliori articoli per DJ su Djpoint.net, acquista online oppure trova il rivenditore pių vicino.";
}
else{
$PageTitle = $ShowCase." per Dj, in vendita su Djpoint.net";
$PageDescription = "$ShowCase per Dj, attrezzature per Dj delle migliori marche in vendita su Djpoint.net. 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 Djpoint.net";
$PageDescription =$ShowCase." ".$tmpArt["Nome"].", i migliori articoli per DJ su Djpoint.net, 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 Djpoint.net";
$PageDescription = "Il profilo e i contatti di $thisDenominazione, scopri i migliori Dj italiani su Djpoint.net";
$CanonicalUrl = "";
}
# Rivenditori
# GoToSubPage=Rivenditori
if($GoToSubPage == "Rivenditori"){
$PageTitle = "Rivenditori attrezzature per Dj | Djpoint.net";
$PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su Djpoint.net.";
$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 | Djpoint.net";
$PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su Djpoint.net.";
$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 | Djpoint.net";
$PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su Djpoint.net.";
$CanonicalUrl = "";
}
# CentriAss
# GoToSubPage=CentriAss
if($GoToSubPage == "CentriAss"){
$PageTitle = "Centri Assistenza | Djpoint.net";
#$PageDescription = "Trova i rivenditori di attrezzature per Dj delle migliori marche pių vicini, oppure acquista online su Djpoint.net.";
$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");
$PageTitle = mysql_result($PGRS,0,"PageTitle");
}
#
# 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(isset($ResponsivePage[$SitePage])){
# Responsive
if($ResponsivePage[$SitePage]=="2021"){
include ("./_2021/Snippets/top.php");
}
else{
include ("./_Responsive/Snippets/top.php");
}
}
else{
# OldStyle
if(($SitePage=="2021_HpNovita") || ($SitePage=="2021_HpMarchi") || ($SitePage=="2021_HpCategorie")){
# Eccezione
include ("./_Responsive/Snippets/top.php");
}
else{
include ("./_OldStyle/Snippets/top.php");
}
}
?>
if(($OutOfService == "SI") && ($UData["PERM_SiteAdmin"] == "" && $UData["PERM_ProfiloMPI"] == "")){
include ("./modules/OutOfService.php");
}
else{
LoadModule($SitePage,$SessID,$ResponsivePage);
}
?>