0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
affiliates_8mor
/
[
Home
]
File: showaff.php
<?php ##################################################################################### ## JROX.COM Affiliate Manager - showaff.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 show the affiliate name, id or website using JavaScript ## ####################################################################################### error_reporting(0); require 'includes/common.php'; require_once 'includes/setlang.php'; require HOME_BASE_DIRECTORY.'/includes/mod/mod_members.php'; ################################################## ## SELECT WHETHER TO SHOW THE AFFILIATE DETAILS ## ################################################## if (!empty($_GET['id'])) { $type = $_GET['id']; } //CHECK COOKIE if (!empty($_COOKIE['jrox'])) { $show_jrox = $_COOKIE['jrox']; } elseif (!empty($_SESSION['jrox_jam'])) { $show_jrox = $_SESSION['jrox_jam']; } if (!empty($show_jrox)) { $cookie_sponsor = explode('###', urldecode($show_jrox)); $id = $cookie_sponsor[0]; if (is_numeric($id)) { switch ($type) { case "fname": case "company": case "website": case "name": case "customid": $value = addslashes(Get_Affiliate_JavaScript($id, $type)); echo "document.write('$value')"; break; case "paypal": echo 'document.write(\'<input type="hidden" name="custom" value="' . $show_jrox . '">\')'; break; case "egold": echo 'document.write(\'<input type="hidden" name="JAM_AFFILIATE" value="' . $show_jrox . '">\')'; break; case "moneybookers": echo 'document.write(\'<input type="hidden" name="JAM_AFFILIATE" value="' . $show_jrox . '">\')'; break; case "stormpay": echo 'document.write(\'<input type="hidden" name="user1" value="' . $show_jrox . '">\')'; break; case "alertpay": echo 'document.write(\'<input type="hidden" name="apc_1" value="' . $show_jrox . '">\')'; break; case "safepay": echo 'document.write(\'<input type="hidden" name="custom1" value="' . $show_jrox . '">\')'; break; default: echo "document.write('$id')"; break; } } } ?>