'')) {;} else {header("HTTP/1.1 404 Not Found"); exit;} mysql_close($db); //Запрашиваем цены если не статья или поиск if (($url != 'search') and ($cat != 'stat') and ($cat1=='')) { define('AWS_API_KEY', $AWS_API_KEY); define('AWS_API_SECRET_KEY', $AWS_API_SECRET_KEY); define('AWS_ASSOCIATE_TAG', $AWS_ASSOCIATE_TAG); require 'lib/AmazonECS.class.php'; try { $amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', AWS_ASSOCIATE_TAG); $response =$amazonEcs->responseGroup('Large')->optionalParameters(array('Condition' => 'New'))->lookup($k1); $id_am_pr=$response->Items->Item->ItemAttributes->ListPrice->FormattedPrice; $t1=$k1; if ($id_am_pr =='') {$t1=$k2; $response =$amazonEcs->responseGroup('Large')->optionalParameters(array('Condition' => 'New'))->lookup($k2); $id_am_pr=$response->Items->Item->ItemAttributes->ListPrice->FormattedPrice; } if ($id_am_pr =='') {$t1=$k3; $response =$amazonEcs->responseGroup('Large')->optionalParameters(array('Condition' => 'New'))->lookup($k3); $id_am_pr=$response->Items->Item->ItemAttributes->ListPrice->FormattedPrice; } if ($id_am_pr =='') { $message = "кончились выбранные предложения"; $text = "Внимание - для программы ".$name." закончились выбранные предложения. Необходимо отредактировать запись"; $headers = "From: pro@thach.info \r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: 8bit"; @mail($email, $message, $text, $headers); } $id_am_pr=$response->Items->Item->ItemAttributes->ListPrice->FormattedPrice; $id_am_pr2=$response->Items->Item->Offers->Offer->OfferListing->Price->FormattedPrice; $id_am_im=$response->Items->Item->MediumImage->URL; $id_am_pr = ltrim($id_am_pr, "$"); $id_am_pr2 = ltrim($id_am_pr2, "$"); $item_save=number_format($id_am_pr-$id_am_pr2, 2, ".", " "); $link=$response->Items->Item->DetailPageURL; } catch(Exception $e) { echo $e->getMessage(); } }} if ($title=='') {$title = "Buy ".$name." Online at $".$id_am_pr2;}; if ($url == 'search') {$title = "Search result ".$_POST[q];}; if ($cat == 'stat') {$title = $name;}; if ($cat1 != '') {$title = "Search result for ".$cat1;}; $link2="http://www.amazon.com/gp/aws/cart/add.html?AWSAccessKeyId=".$AWS_API_KEY."&AssociateTag=".$AWS_ASSOCIATE_TAG."&ASIN.1=".$t1."&Quantity.1=1"; //echo $link2; ?> <? echo $title;?>
 

              Search

 


 

Bestsellers

 
 

Search result ""




 
 





 
 


 
$

Retail price: $
You save: $


 

HOME   Download Policy   Moneyback   Testimonials   FAQ   Contacts
Scan price currency converter
 

© 2012 OEM Software