0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
affiliates_8mor
/
[
Home
]
File: refund.php
<?php ##################################################################################### ## JROX.COM Affiliate Manager - refund.php file ## Version 1.6.2 ## ## Author: Ryan Roxas(ryan@jrox.com) ## Homepage: http://jam.jrox.com ## Bug Reports: http://jam.jrox.com/bugzilla/ ## Release Notes: docs/READ_ME.txt ####################################################################################### ####################################################################################### ## COPYRIGHT NOTICE ## Copyright 2007 JROX Technologies, Inc. All Rights Reserved. ## ## This script may be only used and modified in accordance to the license ## agreement attached (license.txt) except where expressly noted within ## commented areas of the code body. This copyright notice and the ## comments above and below must remain intact at all times. By using this ## code you agree to indemnify JROX Technologies, Inc, its corporate agents ## and affiliates from any liability that might arise from its use. ## ## Selling the code for this program without prior written consent is ## expressly forbidden and in violation of Domestic and International ## copyright laws. ####################################################################################### ################################################################################ ## This file is used to automatically process affiliate refunds / chargebacks ## ################################################################################ require_once 'includes/common.php'; require_once 'includes/setlang.php'; require_once 'admin/includes/lib/lib_commissions.php'; ####################### ## REFUND COMMISSION ## ####################### if (empty($transaction_id)) { if (!empty($_GET['transaction_id'])) { $transaction_id = $_GET['transaction_id']; } elseif (!empty($_POST['transaction_id'])) { $transaction_id = $_POST['transaction_id']; } } if (empty($secret)) { if (!empty($_GET['secret'])) { $secret = $_GET['secret']; } elseif (!empty($_POST['secret'])) { $secret = $_POST['secret']; } } //CHECK TRANSACTION ID if (!empty($transaction_id)) { Auto_Refund_Commission($transaction_id, $secret); } ?>