Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* ProofBuddy is (c) 2005-2008 by Ryan Nutt For more information http://www.proof..
Decoded Output download
?><?php
/* user-script-updatecart.php */
include('user-script-shared.inc.php');
//print_r($_POST);
//die();
if ($_POST['quantity']==$_POST['original_quantity'])
{
// Nothing is changing, don't do anything
}
elseif ($_POST['quantity']>$_POST['original_quantity'])
{
// Add to cart
$add_quantity = $_POST['quantity'] - $_POST['original_quantity'];
$cCart->add_to_cart($_POST['pricing_id'], $_POST['image_id'], $add_quantity, -1, $_POST['color']);
}
elseif ($_POST['quantity']<$_POST['original_quantity'])
{
/* Remove from cart */
$qry = "DELETE FROM ".$db_prefix."_cart WHERE visitor_id='".$cCart->cart_id."' AND image_id=".$_POST['image_id']." AND item_id=".$_POST['pricing_id']." AND item_color='".$_POST['color']."' LIMIT ".($_POST['original_quantity']-$_POST['quantity']);
$db->execute($qry);
/* This second query takes all of the items and moves them out of
any package ids that they are in. */
$qry = "UPDATE ".$db_prefix."_cart SET package_id=0 WHERE visitor_id='".$cCart->cart_id."'";
$db->execute($qry);
/* Reload and resave the cart to reset package ids */
$cCart->_load_cart();
$cCart->_save_cart();
}
//die();
//$db->update_cart($_POST['id'], $_POST['quantity']);
redirect('../index.php?op=viewcart');
?>
Did this file decode correctly?
Original Code
<?php
/* ProofBuddy is (c) 2005-2008 by Ryan Nutt
For more information http://www.proofbuddy.com
File Version: 1.0.2
Release Date: 2/3/2008
*/
?><?php $_F=__FILE__;$_X='Pz5TP2xxbA11eSoJOUFmWS1BMVlPbDwtOWxyUjxmMVJZPFRscWwJKnkNdQ11Tz0xaDlyZignOUFmWS1BMVlPbDwtQXFSWWZyVE89MVRscWwnKTsNdXl5bFlPPTxfWSgkX25MW1gpO0kNdXl5ck9mKCk7SQ11T2JJKCRfbkxbWF0nSzlSPTxPPG0nVWpqJF9uTFtYXSc2WU9wTz1SaF9LOVI9PE88bSdVKQ11CUcNdQl5e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mYk9jVCJfMVJZPElbelhJbFIxWlJwZl9PcmovSUJOemV6STBPQU88NllfT3JqJyJUJDFzUlk8LT4xUlk8X09yVCInIjsNdQkkcmktPmZjZjE5PGYoJEtZbSk7DXUJDXUJeSoJZWZoNlJySVI9cklZZkFSMGZJPHFmSTFSWTxJPDZJWWZBZjxJbFIxWlJwZklPckEJKnkNdQkkMXNSWTwtPl9oNlJyXzFSWTwoKTsNdQkkMXNSWTwtPl9BUjBmXzFSWTwoKTtJDXUJew11eXlyT2YoKTtJDXUNdXl5JHJpLT45bHJSPGZfMVJZPCgkX25MW1hdJ09yJ1UsSSRfbkxbWF0nSzlSPTxPPG0nVSk7DXUNdVlmck9ZZjE8KCdUVHlPPXJmY1RscWw/NmxqME9mdjFSWTwnKTsNdT8+';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdpcTk3QmREUD5FaFttM2Iuc09HNXRBeEtZTEhWfW8vVXV3MDJnYU44PHBjPW5meiBSMVdTbDZDNHl7Wl1KTWtURgpRWHJlakl2JywnYmh1VldGejE+SWxTeTVmUUNpe1pEc1Vxck9BWEtNMF0KM3Y2N21IanRneG5QZUU5YWM0PHBvTE4vfWtbMlk4LkpHQlRkUj0gdycpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
Function Calls
strtr | 1 |
strrev | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | 23e8444c4ad9f3c7b9df8a371a7256be |
Eval Count | 2 |
Decode Time | 49 ms |