Waraxe IT Security Portal
Login or Register
November 18, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 84
Members: 0
Total: 84
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Help me Decrypt This [Please]....
Post new topicReply to topic View previous topic :: View next topic
Help me Decrypt This [Please]....
PostPosted: Wed Aug 03, 2011 6:16 am Reply with quote
lovephpgood
Beginner
Beginner
Joined: Aug 03, 2011
Posts: 1




<?php
$keystroke1 = base64_decode("d2RyMTU5c3E0YXllejd4Y2duZl90djhubHVrNmpoYmlvMzJtcA==");
eval(gzinflate(base64_decode('hY69DsIgFIVf5QwMENGUuWH0QZTeKrFekgsMxvTdLWlqTBfX8/uNlUOJiSGpEIc0kFa5SOSbVZdnqlwM3lAPesEj1+vifQPoLJzpEUe9KBPx5hjvXasJlSqMcBedZNBtxeCAbbjHDJoy/U/i1PjOK9+ewlns7o/O2N+X+QM=')));
$O0O0O0O0O0O0=$keystroke1[2].$keystroke1[32].$keystroke1[20].$keystroke1[11].$keystroke1[23].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11];
$keystroke2 = $O0O0O0O0O0O0("„q>BF€~Anr‡D…pt{slƒE{y‚xCwuov|@?z}", -13);
$OO000OO000OO=$keystroke2[16].$keystroke2[12].$keystroke2[31].$keystroke2[23].$keystroke2[18].$keystroke2[24].$keystroke2[9].$keystroke2[20].$keystroke2[11];
$O0000000000O=$keystroke1[30].$keystroke1[9].$keystroke1[6].$keystroke1[11].$keystroke1[27].$keystroke1[8].$keystroke1[19].$keystroke1[1].$keystroke1[11].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11];
eval($OO000OO000OO(base64_decode('LZnHDv
LqFUVfJlLulQc2uCu6A/feuyeRe+/dTx9+KRNGBg
znO3uvBcWZ9H/9yzAgCPr/w19pshUY8t+8yKa8+O
vfaryK76Rv/WSf8eIefLU/0PJKg/y6cecaRmh+wB
J2UvWm9YbA8mQptqY5c7OFQbQaaE4EQVA8Vf2jUu
cBTts7TucLn7jd2SmBQlIGLLLqG4SfqL0ezkGV4d
euqpXQHF1D9MLKpx60NzMtCN92pDrKZPi+3DsuoZ
VIscslp/EEBiAMpiAhnJbSMkBvCMW2qURmGMdvjI
HKAb9xvDEPMja599C33p3zmyIRUqFC8epuRupC4d
6d1blUt6N5Xg22kXyU3H7oxsIo3yNgxh6xzh/W+2
7d5H0pLcupEDIqvKkqH8Ht7KLQ544A+PIWn500wt
LxsVJk3y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A
hqV+IpGPpUBIINpDyBU3BM7hVBopC0Opr1Aut6ly
ASVXijyXpwqYmfRoQjbDfJi4RjCnhsUIkSSP3qig
fDamH+aAysggCBgiBokCBl/fPPv//+++///A8=')
));
?>[/code]
View user's profile Send private message
PostPosted: Wed Aug 03, 2011 6:46 am Reply with quote
alpha
Regular user
Regular user
Joined: Aug 02, 2011
Posts: 6




lol sorry saw the wall-o-text and had to rofl. How long will that taKE 4000 YEARS?
View user's profile Send private message
PostPosted: Fri Aug 05, 2011 2:21 am Reply with quote
johnburn
Advanced user
Advanced user
Joined: Jan 14, 2011
Posts: 199
Location: Malaysia




alpha wrote:
lol sorry saw the wall-o-text and had to rofl. How long will that taKE 4000 YEARS?


It will take less then 5minutes if you know what you're doing Razz
Here is the decoded script:
Code:
<?php

define('AWS_KEY', $amazon_api);
define('AWS_SECRET_KEY', $amazon_apix);
define('AWS_ASSOC_ID', $amazon_acc);

require('tarzan/tarzan.class.php');
require_once ("cache.php");

if ($amazon_zone == "com") { $zone = "us"; }
elseif ($amazon_zone == "co.uk") { $zone = "uk"; }
elseif ($amazon_zone == "ca") {$zone = "ca";}
elseif ($amazon_zone == "fr") {$zone = "fr";}
elseif ($amazon_zone == "de") {$zone = "de";}
elseif ($amazon_zone == "co.jp") {$zone = "jp";}

// function feature_asin(){
// global $db;
// #Fetch asin from feature
// $result = sqlite_query($db, "SELECT asin FROM featured where id='0'", SQLITE_ASSOC);
// while( $line = sqlite_fetch_array($result) ) {
// $fea_asin = $line['asin'];
// }
// return $fea_asin;
// }
function product_data($aaws,$opt,$checkasin=false) {
global $db;
global $zone,$search_key,$keyfind;
global $Cache,$cachefile,$cache_redirect,$debug_mode;
global $amazon_zone,$amazon_asin,$amazon_acc;
if ($checkasin == true) {
$aaws = new AmazonAAWS();
$response = $aaws->item_lookup($amazon_asin,$opt, $zone);

if ($response->body->Items->Item == null) {
$Cache->Clear($cachefile);
//echo $response->body->Error->Message;
if($debug_mode =="0"){
header('Location: http://www.amazon.'.$amazon_zone.'/gp/product/'.$amazon_asin .'/?tag='.$amazon_acc);
}
}
return $response;

} else {
#Fetch asin from feature
//$fea_asin = feature_asin();
$aaws = new AmazonAAWS();
$response = $aaws->item_search($keyfind,$opt,$zone);
if ($response->body->Items->Item == null) {
$Cache->Clear($cachefile);
//echo $response->body->Error->Message;
if($cache_redirect != null){
if($debug_mode =="0"){
header('Location: '.$cache_redirect);
}
} else {
if($debug_mode =="0"){
header('Location: '.$home_url.'/store/');
}
}

}
return $response;
}
}
function sitemap($aaws,$opt) {
global $keywords,$q_key;
global $zone;
//global $amazon_zone,$amazon_asin,$amazon_acc;

if(isset($q_key)){
$keywords = $q_key;
}
$aaws = new AmazonAAWS();
$response = $aaws->item_search($keywords,$opt,$zone);
return $response;
}

#Cut Word
function truncateStr($str, $maxChars='',$case = ''){

if (strlen($str) > $maxChars ){
$str = iconv_substr($str, 0, $maxChars,"UTF-8");
}
return $str.$case;
}

function item_get_image140($item, $maxwidth = 140) {
$image = $item->LargeImage;
if ($image == '') {
$ImageSet = $item->ImageSets->ImageSet[0];
$image = $ImageSet->LargeImage;
}
return item_trim_image($image, $maxwidth);
}

function clean($var) {
$switch_chars = '(,),\,/,<,>,&,$';
$sc = explode(',', $switch_chars);
foreach ($sc as $c) $var = str_replace($c, '', $var);
$var = preg_replace('/[^[:alnum:]\s-]+/', '', $var);
$var = preg_replace('/\s+/', ' ', $var);
$var = str_replace('"', '', $var);
$var = trim($var);
return $var;
}


function merchant_get_price($var) {
global $text_pricecompare,$home_url;
if( $var == 'Too low to display'){
$price = $text_pricecompare;

} else {
$price = $var ;
}
return $price;
}

function merchant_list_price($item) {
global $text_pricecompare;
if( count($item->Offers->Offer) > 0 ) $price = $item->ItemAttributes->ListPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->OfferSummary->LowestNewPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->ListedPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->VariationSummary->LowestPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $text_pricecompare;
return $price;
}



function item_list_price($item) {
global $text_listprice;
if( count($item->Offers->Offer) > 0 ) $price = $item->ItemAttributes->ListPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->OfferSummary->LowestNewPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->ListedPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $item->VariationSummary->LowestPrice->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $text_listprice;
return $price;
}

function item_save_price($item) {
//global $text_lowprice;
if( count($item->Offers->Offer) > 0 ) $price = $item->Offers->Offer->OfferListing->AmountSaved->FormattedPrice;
$save = $item->Offers->Offer->OfferListing->PercentageSaved;
//if( !$price || $price == 'Too low to display') $price = $text_lowprice;
if(!empty($save)) $save = '('.$save.'%)';
$text = $price .' '.$save;
return $text;
}

function item_low_price($item) {
global $text_lowprice;
if( count($item->Offers->Offer) > 0 ) $price = $item->Offers->Offer->OfferListing->Price->FormattedPrice;
if( !$price || $price == 'Too low to display') $price = $text_lowprice;
return $price;
}



function it2em_lookup($asin,$opt, $moremerchant = false)
{
if ($moremerchant == true) {
$merchant = "MerchantId=Featured&";
}
$request_dirty = 'Operation=ItemLookup&'.$merchant.
'ItemId=' . $asin .
'&ResponseGroup='. $opt;
$request2 = amazon_request($request_dirty);
$response2 = get_url($request2);
$response2 = simplexml_load_string($response2);
return $response2;
}

function title_from_asin($asin) {
global $zone;
$aaws = new AmazonAAWS();
$opt['ResponseGroup'] = "ItemAttributes";
$response = $aaws->item_lookup($asin , $opt, $zone);
$item2 = $response->body->Items->Item;

$Title = $parsed_xml->Items->Item->ItemAttributes->Title;

return (string) $Title;
}



#Function show rating
function start_rating($number) {

if ($number > 4.79)
return "5";

if ($number > 4.49)
return "466";

if ($number > 4.19)
return "433";

if ($number > 3.79)
return "4";

if ($number > 3.49)
return "366";

if ($number > 3.19)
return "333";

if ($number > 2.79)
return "3";

if ($number > 2.49)
return "266";

if ($number > 2.19)
return "233";

if ($number > 1.79)
return "2";

if ($number > 1.49)
return "166";

if ($number > 1.19)
return "133";

if ($number > 0.79)
return "1";

if ($number > 0.49)
return "066";

if ($number > 0.19)
return "033";

return "0";
}

function compare($amazon_asin){
global $home_url,$amazon_acc;
global $link_cloak,$amazon_zone;
global $type_seeit, $type_pricecompare,$title;
global $zone;
$aaws = new AmazonAAWS();
$opt['MerchantId'] = "Featured";
$opt['ResponseGroup'] = "Medium,OfferFull,VariationSummary";
$response2 = $aaws->item_lookup($amazon_asin , $opt, $zone);
$item2 = $response2->body->Items->Item;
// echo "<pre>";
// print_r($item2);
// echo "</pre>";

$TotalMercant=$item2->Offers->TotalOffers;

if( $link_cloak ) $buyUrl = $home_url.'/more/'.sanitize_title($title).'-'.$amazon_asin;
else $buyUrl = 'http://www.amazon.'.$amazon_zone.'/gp/product/'.$amazon_asin.'/?tag='.$amazon_acc;

#Offer link
if( $link_cloak ) $offerlink = $home_url.'/offer/'.sanitize_title($title).'-'.$amazon_asin;
else $offerlink = 'http://www.amazon.'.$amazon_zone.'/gp/offer-listing/'.$amazon_asin.'/?tag='.$amazon_acc;

$id=1;
$availability= avai($TotalMercant,$offerlink);
$store_link_table .= '<br /><div class="item_custom_top">Where to Buy</div><div class="item_custom_middle">';

if ($TotalMercant==0) {
$availability = '';
$store_link_table .='
<table id="item_mlink_table">
<tbody>
<tr class="custom_tr_top">
<td class="custom_td_top"></td>
<td class="custom_td_top">Seller</td>
<td class="custom_td_top">Seller Rating</td>
<td class="custom_td_top">Price</td>
<td class="custom_td_top">Availability</td>

</tr>
<tr class="custom_tr">
<td><a rel="nofollow" href="'.$buyUrl.'" target="_blank"><img src="'.$home_url.'/system/images/seeit-button.png" alt="See more detail" class="middle" /></a></td>
<td><a rel="nofollow" href="'.$buyUrl.'" target="_blank">Amazon</a></td>
<td><img src="'.$home_url.'/system/images/rate/5stars.png" alt="Seller Rating" /><div class="custom_numreviews"></div></td>
<td><a rel="nofollow" href="'.$buyUrl.'" target="_blank"><span class="custom_price">'.merchant_list_price($item2).'</span></a></td>
<td >In Stock</td>
</tr>
</tbody>
</table>
';
}
else {
$store_link_table .= '
<table id="item_mlink_table">
<tbody>
<tr class="custom_tr_top">
<td class="custom_td_top"></td>
<td class="custom_td_top">Seller</td>
<td class="custom_td_top">Seller Rating</td>
<td class="custom_td_top">Price</td>
<td class="custom_td_top">Availability</td>

</tr>
';


foreach ($item2->Offers->Offer as $itemoffer){
// echo "<pre>";
// print_r($item2);
// echo "</pre>";


$trcount= $id; $id++;

$Offer_name=$itemoffer->Merchant->Name;
$MerchantId=$itemoffer->Merchant->MerchantId;
$Offer_link=$itemoffer->Merchant->GlancePage;
$Offer_Rating=$itemoffer->Merchant->AverageFeedbackRating;
$TotalFeedback = $itemoffer->Merchant->TotalFeedback;
$Offer_InStock = $itemoffer->OfferListing->AvailabilityAttributes->AvailabilityType;
$Offer_Available = $itemoffer->OfferListing->Availability;
$Offer_OfferListingId = $itemoffer->OfferListing->OfferListingId;
$Offer_ExchangeId = $itemoffer->OfferListing->ExchangeId;
$Offer_Price =$itemoffer->OfferListing->Price->FormattedPrice;
$Offer_AmountSaved=$itemoffer->OfferListing->AmountSaved->FormattedPrice;

if($Offer_InStock="now") $Offer_InStock ='<span class="instock">In Stock</span>';
else $Offer_InStock ='<span class="outstock">Out of Stock</span>';

if( $link_cloak ) $sellerUrl = $home_url.'/seller.php?id='.$MerchantId;
else $sellerUrl = $Offer_link.'&tag='.$amazon_acc;

if( $link_cloak ) $addcart = $home_url.'/buy.php?seller='.$MerchantId.'&offerListing='.$Offer_OfferListingId.'&exchange='.$Offer_ExchangeId.'&asin='.$amazon_asin;
else $addcart = 'http://www.amazon.com/gp/aws/cart/add.html?AssociateTag='.$amazon_acc.'&ASIN.1='.$amazon_asin.'&Quantity.1=1&SellerId.1='.$MerchantId.'&OfferListingId.1='.$Offer_OfferListingId.'&ExchangeId.1='.$Offer_ExchangeId.'';

$buttoncart =
'<form action="http://www.Amazon.com/gp/aws/cart/add.html" target="_self" method="GET" style="display: inline; margin-top: 0px; margin-bottom: 0px;">
<input type="hidden" value="050HPXAFBX129QN4T482" name="SubscriptionId">
<input type="hidden" value="'.$amazon_acc.'" name="AssociateTag">
<input type="hidden" value="'.$Offer_OfferListingId.'" name="OfferListingId.1">
<input type="hidden" value="1" name="Quantity.1">
<input type="hidden" value="'.$Offer_ExchangeId.'" name="ExchangeId.1">
<input type="hidden" value="'.$MerchantId.'" name="SellerId.1">
<input type="image" src="'.$home_url.'/system/images/seeit-button.png" alt="Buy" value="add" name="add">
</form>
';

if ($type_seeit =="cart") $link_seeit = $addcart;
else if ($type_seeit =="detail") $link_seeit = $buyUrl;
else if ($type_seeit =="offer") $link_seeit = $offerlink;

if ($type_pricecompare =="cart") $link_pricecompare = $addcart;
else if ($type_pricecompare =="detail") $link_pricecompare = $buyUrl;
else if ($type_pricecompare =="offer") $link_pricecompare = $offerlink;


if ($Offer_name!="Amazon.com"){
$store_link_table .='<tr class="custom_tr" >';
$store_link_table .='<td><a rel="nofollow" href="'.$link_seeit .'" target="_blank"><img src="'.$home_url.'/system/images/seeit-button.png" alt="See more detail" class="middle" /></a></td>';
//$store_link_table .='<td><a rel="nofollow" href="'.$Offer_link.'&tag='.$amazon_acc.'">'.$Offer_name.'</a></td>';
//$store_link_table .='<td><a rel="nofollow" href="'.$home_url.'/seller.php?asin='.$MerchantId.'">'.$Offer_name.'</a></td>';
$store_link_table .='<td><a rel="nofollow" href="'.$sellerUrl.'" target="_blank">'.$Offer_name.'</a></td>';
$store_link_table .='<td><img src="'.$home_url.'/system/images/rate/'.start_rating($Offer_Rating).'stars.png" alt="Seller Rating" /><div class="custom_numreviews"><a rel="nofollow" href="'.$sellerUrl.'" target="_blank">'.$TotalFeedback.' Reviews</a></div></td>';
$store_link_table .='<td><a rel="nofollow" href="'.$link_pricecompare.'" target="_blank"><span class="custom_price">'.merchant_get_price($Offer_Price).'</span><br /></a></td>';
//$store_link_table .='<td><a rel="nofollow" href="'.$addcart .'&amp;id='. $trcount.'" target="_blank">'.$Offer_Available.'</a></td>';
$store_link_table .='<td>'.$Offer_InStock.'</td>';
$store_link_table .='</tr>';
} else {
$store_link_table .='<tr class="custom_tr">';
$store_link_table .='<td><a rel="nofollow" href="'.$link_seeit .'" target="_blank"><img src="'.$home_url.'/system/images/seeit-button.png" alt="See more detail" class="middle" /></a></td>';
$store_link_table .='<td><a rel="nofollow" href="'.$buyUrl.'" target="_blank">'.$Offer_name.'</a></td>';
$store_link_table .='<td><img src="'.$home_url.'/system/images/rate/5stars.png" alt="Seller Rating" /><div class="custom_numreviews"></div></td>';
$store_link_table .='<td><a rel="nofollow" href="'.$link_pricecompare.'" target="_blank"><span class="custom_price">'.merchant_get_price($Offer_Price).'</span><br /></a></td>';
//$store_link_table .='<td><a rel="nofollow" href="'.$addcart .'&amp;id='. $trcount.'" target="_blank">'.$Offer_Available.'<img src="'.$home_url.'/system/images/shop_gp_g.gif" alt="Shop" /></a></td>';
$store_link_table .='<td >'.$Offer_InStock.'</td>';
$store_link_table .='</tr>';
}

}

$store_link_table .= " </tbody></table> \n";
}

$store_link_table .='</div>';
$store_link_table .='<div class="item_custom_bottom">'.$availability.'</div>';
$stories .= $store_link_table;
return $stories;
}

function avai($v,$ol) {
$av="<a class='textunderline' href='$ol' target='_blank' rel='nofollow'>Compare prices for ".$v." ;;Sellers</a>";
return $av;
}

#Tags
function display_tags($item,$meta=false){
global $home_url;
global $keyword_1;
global $show_tags;
if ($show_tags){
//$Tags = null;

$keyword = str_replace(' ','-',strtolower(clean($keyword_1)));
$title = strtolower($item);
$title = clean($title);
$title = str_replace('-', '', $title);
$title = $title . " ". $keyword;

$tagsfromtitle = explode(" ", $title);
if ($title != null) {
foreach ($tagsfromtitle as $tag) {
$Tags[] = $tag;
}
array_unique($Tags);
sort($Tags);
echo '<div class="clear best_list_tags"><b>Tags:</b></div>';
foreach ($Tags as $t){
if(!empty($t)) {
echo ' <a href="'.$home_url.'/'.$t.'/" title="Tags '.$t.'" >'.$t.'</a>, ';
}
}
}
}
}

#Similar
# - $item =
# - $check = ¸•¸£¸§¸ˆ¸ª¸­¸š Enable ¸«¸™¹‰¸² Admin
# - $link = ¹ƒ¸¹‰ Link ¹¸š¸š¹„¸«¸™ internal or external
function display_similar($item){
global $show_similar;
if ($show_similar){
$SimilarProducts = null;
if ($item->SimilarProducts->SimilarProduct != null) {
foreach ($item->SimilarProducts->SimilarProduct as $f) {
$SimilarProducts[] = (string) $f->ASIN;
}
echo '<div class="headtextbg alignleft"><b>Similar Product:</b><br /><br />';
foreach ($SimilarProducts as $s){
$count++;
if ($count > 5) {
break;
}
echo get_similar($s);
}
echo '</div>';
}
}
}

#Accesory
# - $item =
# - $check = ¸•¸£¸§¸ˆ¸ª¸­¸š Enable ¸«¸™¹‰¸² Admin
# - $link = ¹ƒ¸¹‰ Link ¹¸š¸š¹„¸«¸™ internal or external
function display_accesory($item){
global $title;
global $show_accesories;
if ($show_accesories){
$AccesoryProducts= null;
if ($item->Accessories->Accessory != null) {

foreach ($item->Accessories->Accessory as $f) {
$AccesoryProducts[] = (string) $f->ASIN;
}
echo '<div class="headtextbg alignleft"><b>More Accessories for '.$title.'</b><br /><br />';
foreach ($AccesoryProducts as $s){
$count++;
if ($count > 5) {
break;
}
echo get_accesory($s);
}
echo '</div>';
}
}
}



function get_similar($asin){
global $amazon_zone, $amazon_acc;
global $home_url,$link_cloak;
global $link_similar,$pretty_link;
global $zone;

$aaws = new AmazonAAWS();
$opt['ResponseGroup'] = "Images,ItemAttributes,Offers";
$response = $aaws->item_lookup($asin , $opt, $zone);

$item = $response->body->Items->Item;

$Title = $item->ItemAttributes->Title;
$SmallImageURL = $item->SmallImage->URL;
$ImageSet = $item->ImageSets->ImageSet[0];
if ($SmallImageURL == '') {
$SmallImageURL = $ImageSet->SmallImage->URL;
}


$ListPrice = $item->ItemAttributes->ListPrice->FormattedPrice;
$SalePrice = $item->Offers->Offer->OfferListing->Price->FormattedPrice;
if( !$SalePrice || $SalePrice == 'Too low to display') $SalePrice = "Check";


// echo "<pre>";
// print_r($item);
// echo "</pre>";

if ($link_similar =="in") {
$linkfollow = ' ';
$buyUrl = $home_url.'/'.$pretty_link.'/'.get_permalink($item->ASIN, $Title);
} else {
$linkfollow = 'rel="nofollow"';
if( $link_cloak ) $buyUrl = $home_url.'/more/'.sanitize_title($Title).'-'.$item->ASIN;
else $buyUrl = 'http://www.amazon.'.$amazon_zone.'/gp/product/'.$item->ASIN.'/?tag='.$amazon_acc;
}
$content='
<div class="similarwarp">
<div class="similarouter">
<div class="similarinner">
<span class="similarimagewarp">
<a href="'.$buyUrl.'" title="'.$Title.'" '.$linkfollow.'>
<div class="similarimage">
<img src="'.$SmallImageURL .'" alt="'.$Title.'" />
</div>
'.truncateStr($Title,30,"..") .'
</a>
</span>
<br />
<span class="listprice">'.$ListPrice.'</span>
<span class="saleprice">'.$SalePrice.'</span>
</div>
</div>
</div>
';
return $content;
}

function get_accesory($asin){
global $amazon_zone, $amazon_acc;
global $home_url,$link_cloak;
global $link_accesories,$pretty_link;
global $zone;

$aaws = new AmazonAAWS();
$opt['ResponseGroup'] = "Images,ItemAttributes,Offers";
$response = $aaws->item_lookup($asin , $opt, $zone);

$item = $response->body->Items->Item;



$Title = $item->ItemAttributes->Title;
$SmallImageURL = $item->SmallImage->URL;
$ImageSet = $item->ImageSets->ImageSet[0];
if ($SmallImageURL == '') {
$SmallImageURL = $ImageSet->SmallImage->URL;
}
$ListPrice = $item->ItemAttributes->ListPrice->FormattedPrice;
$SalePrice = $item->Offers->Offer->OfferListing->Price->FormattedPrice;
if( !$SalePrice || $SalePrice == 'Too low to display') $SalePrice = "Check";

if ($link_accesories =="in") {
$linkfollow = ' ';
$buyUrl = $home_url.'/'.$pretty_link.'/'.get_permalink($item->ASIN, $Title);
} else {
$linkfollow = 'rel="nofollow"';
if( $link_cloak ) $buyUrl = $home_url.'/more/'.sanitize_title($Title).'-'.$item->ASIN;
else $buyUrl = 'http://www.amazon.'.$amazon_zone.'/gp/product/'.$item->ASIN.'/?tag='.$amazon_acc;
}

$content='
<div class="similarwarp">
<div class="similarouter">
<div class="similarinner">
<span class="similarimagewarp">
<a href="'.$buyUrl.'" title="'.$Title.'" '.$linkfollow.' >
<div class="similarimage">
<img src="'.$SmallImageURL .'" alt="'.$Title.'" />
</div>
'.truncateStr($Title,30,"..") .'
</a>
</span>
<br />
<span class="listprice">'.$ListPrice.'</span>
<span class="saleprice">'.$SalePrice.'</span>
</div>
</div>
</div>
';
return $content;
}

#Feature
function display_feature($Features) {

$features_list = '';

if ($Features != null) {
$features_list .='<div class="headtextbg alignleft"><b>Product Feature:</b>';
$features_list .= '<ul>';

foreach ($Features as $feature) {

if (strip_tags($feature) != $feature) continue;

$features_list .= "<li>".$feature."</li>";

}

$features_list .= '</ul>';
$features_list .= '</div>';

} else {
return false;
}

return $features_list;

}


function display_gallery($item) {
$imgset = '';
$imgset=array( //$item->ImageSets->ImageSet[0]->LargeImage->URL,
$item->ImageSets->ImageSet[1]->LargeImage->URL,
$item->ImageSets->ImageSet[2]->LargeImage->URL,
$item->ImageSets->ImageSet[4]->LargeImage->URL,
$item->ImageSets->ImageSet[5]->LargeImage->URL,
$item->ImageSets->ImageSet[6]->LargeImage->URL,
$item->ImageSets->ImageSet[7]->LargeImage->URL,
$item->ImageSets->ImageSet[8]->LargeImage->URL,
$item->ImageSets->ImageSet[9]->LargeImage->URL
);
$moreimage="<br/>".imgset($imgset[0]).imgset($imgset[1]).imgset($imgset[2]).imgset($imgset[3]).imgset($imgset[4])."";
return $moreimage;
}
function imgset($im) {
$mimgurl = str_replace("_SL500_", "_SL160_", $im);
if(!empty($im)) {
// $ti="<a target ='_blank' href='$im' rel='nofollow' class=\"highslide\" onclick=\"return hs.expand(this)\"><img src='"."$mimgurl "."' style='margin:2px;' /></a> ";
$ti="<img src='"."$mimgurl "."' style='margin:2px;' />";
}
return $ti;
}

function display_spec($item){
if ($item != null) {
$spec = convert_objectsIntoArray($item->ItemAttributes);
$product_spec = '<div class="headtextbg alignleft"><b>Product Specs</b><br /><br />';
$product_spec .= '<table id="sandbox" cellspacing="0" cellpadding="3" border="0" >';
$product_spec .= ' <tbody><tr class="sectionHeader"><td colspan="2"><b>More Info</b></td></tr>';

foreach($spec as $key => $value){
if (is_array($value)){

} else {

if($Color == 0){
$Color = 1 ;
$ColorFill = "row1 even";
}else{
$Color = 0 ;
$ColorFill = "row1 odd";
}


$product_spec .= '<tr class="'.$ColorFill.'">';
$product_spec .= '<td class="term">'.$key.'</td>';
$product_spec .= '<td class="toplept">'.$value.'</td>';
$product_spec .= "</tr>";

}
}

$product_spec .= "</tbody></table>";
$product_spec .= "</div>";
} else {
return false;
}
return $product_spec;
}

function convert_objectsIntoArray($arrObjData, $arrSkipIndices = array())
{
$arrData = array();

// if input is object, convert into array
if (is_object($arrObjData)) {
$arrObjData = get_object_vars($arrObjData);
}

if (is_array($arrObjData)) {
foreach ($arrObjData as $index => $value) {
if (is_object($value) || is_array($value)) {
$value = convert_objectsIntoArray($value, $arrSkipIndices); // recursive call
}
if (in_array($index, $arrSkipIndices)) {
continue;
}
$arrData[$index] = $value;
}
}
return $arrData;
}


function Pages($total_pages,$limit,$path) {

$adjacents = "5";
$page = $_GET['page'];

if ($page == 0) $page = 1;
$prev = $page - 1;
$next = $page + 1;
$lastpage = ceil($total_pages/$limit);
$lpm1 = $lastpage - 1;
if ($lastpage >= 400) $lastpage = 400; #Amazon only allowing access to products on first 400 pages
$pagination = "";
if($lastpage > 1) {
$pagination .= "<div class='pagination'>";
if ($page > 1) {
$pagination.= "<a href='".$path."1' title='&laquo; First'>&laquo; First</a>";
$pagination.= "...";
$pagination.= "<a href='".$path."$prev' title='Previous'>&laquo; </a>";
}


if ($lastpage < 7 + ($adjacents * 2))
{
for ($counter = 1; $counter <= $lastpage; $counter++)
{
if ($counter == $page) {
$pagination.= "<span class='current'>$counter</span>";
}
else {
$pagination.= "<a href='".$path."".$counter."' title='$counter'>$counter</a>";
}
}
}
elseif($lastpage > 5 + ($adjacents * 2)) {
if($page < 1 + ($adjacents * 2))
{
for ($counter = 1; $counter < 2 + ($adjacents * 2); $counter++)
{
if ($counter == $page) {
$pagination.= "<span class='current'>$counter</span>";
}
else {
$pagination.= "<a href='".$path."$counter' title='$counter'>$counter</a>";
}
}
//$pagination.= "...";
//$pagination.= "<a href='".$path."page=$lpm1'>$lpm1</a>";
//$pagination.= "<a href='".$path."page=$lastpage'>$lastpage</a>";
}
elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) {
//$pagination.= "<a href='".$path."page=1'>1</a>";
//$pagination.= "<a href='".$path."page=2'>2</a>";
//$pagination.= "...";
for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++)
{
if ($counter == $page) {
$pagination.= "<span class='current'>$counter</span>";
}
else {
$pagination.= "<a href='".$path."$counter' title='$counter'>$counter</a>";
}
}
//$pagination.= "..";
//$pagination.= "<a href='".$path."page=$lpm1'>$lpm1</a>";
//$pagination.= "<a href='".$path."page=$lastpage'>$lastpage</a>";
}
else
{
//$pagination.= "<a href='".$path."page=1'>1</a>";
//$pagination.= "<a href='".$path."page=2'>2</a>";
//$pagination.= "..";

for ($counter = $lastpage - ($adjacents * 2); $counter <= $lastpage; $counter++)
{

if ($counter == $page) {
$pagination.= "<span class='current'>$counter</span>";
}
else {
$pagination.= "<a href='".$path."$counter' title='$counter'>$counter</a>";
}

}
}
}

if ($page < $counter - 1) {
$pagination.= "<a href='".$path."$next' title='Next'> &raquo;</a>";
$pagination.= "...";
$pagination.= "<a href='".$path."$lastpage' title='Last &raquo;'>Last &raquo;</a>";
}

$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$pagination.= "<span class='right' ><b>Page ".$page." of ". $lastpage . "</b></span>";
$pagination.="</div>";
}
return $pagination;
}

function objectsIntoArray($arrObjData, $arrSkipIndices = array())
{
$arrData = array();

// if input is object, convert into array
if (is_object($arrObjData)) {
$arrObjData = get_object_vars($arrObjData);
}

if (is_array($arrObjData)) {
foreach ($arrObjData as $index => $value) {
if (is_object($value) || is_array($value)) {
$value = objectsIntoArray($value, $arrSkipIndices); // recursive call
}
if (in_array($index, $arrSkipIndices)) {
continue;
}
$arrData[$index] = $value;
}
}
return $arrData;
}

function texttemplate($content){
global $titletemplate ,$keyword_1,$keyword_2,$home_url,$home_title,$search_key,$home_search,$amazon_acc;
global $ishome;
if(empty($titletemplate)){ $titletemplate = ucfirst($search_key) ;}
if(empty($home_search)) {
if($ishome){
//if(isset($_GET['type'])) $titletemplate = ucfirst($keyword_1);
//$titletemplate = ucfirst($keyword_1) . $titletemplate;
$titletemplate = ucfirst($keyword_1);
}
}
//if(isset($_GET['type'])) $titletemplate = ucfirst($keyword_1);

$content = str_replace("[PRODUCT]", my_encode($titletemplate), $content);
$content = str_replace("[PRODUCTSHORT]", truncateStr(my_encode($titletemplate),30,""), $content);
$content = str_replace("[KEYWORD]", $keyword_1, $content);
$content = str_replace("[KEYWORD2]", $keyword_2, $content);
$content = str_replace("[HOMETITLE]", $home_title, $content);
$content = str_replace("[WEBSITE]", '<a href="'.$home_url.'">'.$home_title.'</a>', $content);
$content = str_replace("[HOMEURL]", '<a href="'.$home_url.'">'.$home_url.'</a>', $content);
$content = str_replace("[PATHURL]", $home_url, $content);
$content = str_replace("[TAG-ID]", $amazon_acc, $content);
return $content ;
}

function checkLink(){
global $pretty_link;
$var = $pretty_link;
if ($var=="buy" or $var=="more" or $var=="offer" or $var=="reviews" or $var=="seller") echo 'rel="nofollow" target="_blank" ';
}

function my_decode($str) {
$str = str_replace("&amp;","&",$str);
$str = str_replace("&quot;",'"',$str);
$str = str_replace("'","'",$str);
return $str;
}

function notarget($str) {
$str = str_replace("target=\"_blank\"","",$str);
return $str;
}

function DateFormat($timestamp="",$mode=""){
global $SHORT_MONTH, $FULL_MONTH, $DAY_SHORT_TEXT, $DAY_FULL_TEXT;
$day = date("l",$timestamp);
$month = date("n",$timestamp);
$year = date("Y",$timestamp);
$time = date("H:i:s",$timestamp);
$times = date("H:i",$timestamp);

switch($mode){
case 'full': // ¸§¸±¸™¸—¸µ¹ˆ 12 ¹€¸”¸·¸­¸™¸ª¸´¸‡¸«¸²¸„¸¡ ¸ž.¸¨. 2550
$ThaiText = " ¸§¸±¸™¸—¸µ¹ˆ ".date("j",$timestamp)." ¹€¸”¸·¸­¸™ ".$FULL_MONTH[$month]." ¸ž.¸¨.".($year+543) ;
break;
case 'fulltime': // ¸§¸±¸™¸—¸µ¹ˆ 12 ¹€¸”¸·¸­¸™¸ª¸´¸‡¸«¸²¸„¸¡ ¸ž.¸¨. 2550 ¹€¸§¸¥¸² 12:00:00
$ThaiText = " ¸§¸±¸™¸—¸µ¹ˆ ".date("j",$timestamp)." ¹€¸”¸·¸­¸™ ".$FULL_MONTH[$month]." ¸ž.¸¨.".($year+543). " ¹€¸§¸¥¸² ".$time;
break;
case 'short': // 12 ¸ª.¸„. 50
$ThaiText = date("j",$timestamp)." ".$SHORT_MONTH[$month]." ".substr(($year+543),2,2);
break;
case 'shorttime': // 12 ¸ª.¸„. 50 : 12:00
$ThaiText = date("j",$timestamp)." ".$SHORT_MONTH[$month]." ".substr(($year+543),2,2). " , ".substr($time,0,5);
break;
case 'digit': // 12/08/2550
$ThaiText = date("j",$timestamp)."/".$month."/".($year+543);
break;
case 'digittime': // 12/08/2550 - 12:00
$ThaiText = date("j",$timestamp)."/".$month."/".($year+543). " - ".substr($time,0,5);
break;
case 'sitemap': // 2010-04-09
$ThaiText = $year."-".date("m",$timestamp)."-". date("d",$timestamp);
break;
case 'rss': // Thu, 08 Apr 2010 00:06:06 +0000 Sun,
$ThaiText = date("D",$timestamp).", ".date("d",$timestamp)." ".date("M",$timestamp)." ".$year." ". $time ." +0700";
break;
}
return $ThaiText;
}

function debug_mode(){
global $debug_mode,$parsed_xml;
if($debug_mode=="1"){
include("./debug.php");
$LogBase = new LogBase();
$LogBase->enable_error(true, E_WARNING);
$LogBase->enable_fatal();
$LogBase->enable_exception();
$LogBase->enable_method_print();
//$LogBase->enable_method_file(true, array('path' => dirname(__FILE__) . '/log/'));
$LogBase->log($parsed_xml);
}
}
function display_reviews($item){
global $home_url,$show_review;
if($show_review!=null){
$IFrameURL = $item->CustomerReviews->IFrameURL;
//$IFrameURL = "http://www.amazon.com/reviews/iframe?akid=AKIAJYMYMGFRFVL5BZXA&alinkCode=xm2&asin=B000XECH6I&atag=netlic-20&exp=2010-11-13T04%3A04%3A44Z&v=2&sig=ElkHmeOEogrFyw5JXtPYR%2BwlPI3Nx0lKODACeor9QYQ%3D";
$iframelocalurl = $home_url ."/customer.php?url=".base64_encode($IFrameURL);
$frameid = "amznframeid";
$frameidwithquotes = "'".$frameid."'";
$iframecode = '<iframe onload="resize_frame('.$frameidwithquotes.');" class="'.$frameid.'" id="'.$frameid.'" width="660px" width="100%" scrolling="auto" frameborder="0" marginheight="0" src="'.$iframelocalurl.'"></iframe>';
return $iframecode;
}
}

function storeLP(){
global $amazon_acc,$home_url;
$FileLPTopic = "data/store.html";
$file_open = @fopen($FileLPTopic, "r");
$TextLP = @fread ($file_open, @filesize($FileLPTopic));
@fclose ($file_open);
$TextLP = stripslashes($TextLP);
$contentLP = str_replace("[TAG-ID]", $amazon_acc, $TextLP);
$contentLP = str_replace("[PATHURL]", $home_url, $contentLP);
return "<br />" .$contentLP;
}

function storeHLP(){
global $amazon_acc,$home_url;
$FileHLPTopic = "data/storebanner.html";
$file_open = @fopen($FileHLPTopic, "r");
$TextHLP = @fread ($file_open, @filesize($FileHLPTopic));
@fclose ($file_open);
$TextHLP = stripslashes($TextHLP);

$contentHLP = str_replace("[TAG-ID]", $amazon_acc, $TextHLP);
$contentHLP = str_replace("[PATHURL]", $home_url, $TextHLP);
//$desc= texttemplate($contentHLP);
return "<br />" .$contentHLP;
}


// function clear_cache(){
// global $Cache,$cachefile,$cache_main,$parsed_xml,$debug_mode;
// if(($cache_main == "0") or ($parsed_xml->Error->Message != null) or($debug_mode =="1")){
// $Cache->Clear($cachefile);
// }
// }

?>
View user's profile Send private message
Help me Decrypt This [Please]....
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.053 Seconds