connectMySQL(); $refer = getenv("HTTP_REFERER"); if($db->isValidRetailer($_SESSION[rString])){ $header = "retailers/header1.tem.php"; $footer = "retailers/footer1.tem.php"; } else { $header = "headerCMS2.tem.php"; $footer= "footerCMS1.tem.php"; } if($_GET[mode]=="detail" && $prod->isValidFolio($_GET[fID])){ $db->cacheHeader(); $detail = $db->getFolioDetail($_GET[fID]); $fs_Array = $db->getFolioSongDataArray($_GET[fID]); if($db->getFolioArtistCount($_GET[fID])==1){ $aID_Array = $db->getFolioArtistDataArray($_GET[fID]); $aID = $aID_Array[0]; $artist = $db->getArtistDetail($aID); $ot_Array = $prod->getProductArtistOtherProductsDataArray($aID, 0); } else { $aID = $db->getFolioArtistDataArray($_GET[fID]); $artist[aName] = $db->getFolioArtistString($_GET[fID]); $ot_Array = $prod->getProductArtistOtherProductsDataArray($aID, 0); $multipleArtist = 1; } $rp_Array = $prod->getRelatedOtherProductsDataArray($detail[fUpc], $_GET[order]); include("$db->newTemplatePath/$header"); include("$db->newTemplatePath/folioCMS.detail.tem.php"); include("$db->newTemplatePath/$footer"); } else { $db->jump(); } $db->disconnectMySQL(); ?>