sql_query("SELECT AMZVer, AMZModule_Name, AMZ_id, cache_maxtime, AMZMore, AMZSingle, AMZQuickAdd, AMZShowReview, AMZShowSimilar, AMZLocale, AMZReviewMod, ImageType, default_asin, AMZ_Popular, AMZBuyBox, AMZShowXML FROM ".$prefix."_amazon_cfg");
list($AMZVer, $AMZModule_Name, $amazon_id, $amazon_xml_cache_maxtime, $AMZMore, $AMZSingle, $AMZQuickAdd, $AMZShowReview, $AMZShowSimilar, $AMZLocale, $AMZReviewMod, $AMZImgType, $AMZDefault_Asin, $AMZ_Popular, $AMZBuyBox, $AMZShowXML) = $db->sql_fetchrow($result);
require_once("includes/NukeAmazon/functions.php");
if (isset($newlang))
{
include("modules/$AMZModule_Name/language/lang-$newlang.php");
$language = $newlang;
}
elseif (isset($lang))
{
include("modules/$AMZModule_Name/language/lang-$lang.php");
$language = $lang;
}
else
{
include("modules/$AMZModule_Name/language/lang-$language.php");
}
$SQL = "SELECT node, catalog FROM ".$prefix."_amazon_nodes where pnode is not null and locale = '$AMZLocale' order by RAND() LIMIT 1";
$result = $db->sql_query($SQL);
list($node, $catalog) = $db->sql_fetchrow($result);
$mode = Get_Cat_Mode($catalog);
$amazon = amazon_search('BrowseNodeSearch', $node, $mode, 'lite', '');
$content = "";
$content .="