['PrioritizedSearchesFilename']; $PrioritizedSearches=array(); if (file_exists($PrioritizedSearchesFilename)) { $PrioritizedSearches=file_get_contents($PrioritizedSearchesFilename); if ($PrioritizedSearches) { $PrioritizedSearches=explode("\n",$PrioritizedSearches); $PrioritizedSearches=array_flip($PrioritizedSearches); } else { $PrioritizedSearches=array(); }; }; $Searches=array_merge($Searches,$PrioritizedSearches); unset($PrioritizedSearches); // Cargamos la lista de productos promovidos. $PromotedProductsFilename=$_MAINDIR.$_LOCALCONFIG['PromotedProductsFilename']; $PromotedProducts=array(); if (file_exists($PromotedProductsFilename)) { $PromotedProducts=getFile($PromotedProductsFilename); if (!$PromotedProducts || !is_array($PromotedProducts)) { $PromotedProducts=array(); } else { $PromotedProducts=array_keys($PromotedProducts); $PromotedProducts=array_flip($PromotedProducts); }; }; $Searches=array_merge($Searches,$PromotedProducts); unset($PromotedProducts); // Cargamos la lista de búsquedas de los usuarios. if ($_LOCALCONFIG['UsersSearchesFilename']) { $SearchesFile=$_MAINDIR.$_LOCALCONFIG['UsersSearchesFilename']; } else { $SearchesFile=$_MAINDIR.str_replace('.com','',$_SITE).'UsersSearches.php'; }; $UsersSearches=array(); if (file_exists($SearchesFile)) { $UsersSearches=getFile($SearchesFile); if (!$UsersSearches || !is_array($UsersSearches)) { $UsersSearches=array(); } else { $UsersSearches=array_keys($UsersSearches); $UsersSearches=array_flip($UsersSearches); }; }; $Searches=array_merge($Searches,$UsersSearches); $Searches=array_keys($Searches); unset($UsersSearches); return $Searches; }; ?>array_keys($Searches); unset($UsersSearches); return $Searches; }; ?>