Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- require dirname(__FILE__) . '/common.php';
- $local_domain = (substr($_SERVER['HTTP_HOST'], 0, 4) == 'www.' ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST']);
- if (strstr($_SERVER['HTTP_HOST'], 'smartcj.com')) {
- error_reporting(32767);
- }
- include_once BASE_DIR . '/includes/libs/Cookie.class.php';
- include_once BASE_DIR . '/includes/libs/traffic_functions.php';
- $GLOBALS['scj_headers'] = array();
- HiddenLog('out.php: start', 'out.start');
- preset_env_vars();
- $members_data = @unserialize(@file_get_contents(BASE_DIR . '/data/members.data'));
- Cookie::SetEngineType($members_data['config']['cookie_engine']);
- HiddenLog('out.php: load_members');
- if (!is_array($members_data)) {
- exit('Please, refresh page in a minute (or check PATH in common.php)');
- }
- $trade_config = $members_data['config'];
- $traders = $members_data['traders'];
- if (isset($trade_config['performance_log'])) {
- $config['performance_log'] = 'performance.log';
- }
- prepare_visitor($members_data, 'out');
- HiddenLog('out.php: prepare_visitor');
- if (!$GLOBALS['SCJ_VISITOR']['local_link'] && !isset($_GET['dont_count_in_trade_incoming'])) {
- count_hit($members_data);
- }
- $GLOBALS['SCJ_COUNTED'] = true;
- if (isset($members_data['lng_skimming'])) {
- $lng_skimming = $members_data['lng_skimming'];
- }
- if (isset($members_data['config']['sout_debug_comments']) && $members_data['config']['sout_debug_comments'] && !defined('DEBUG')) {
- define('DEBUG', $members_data['config']['sout_debug_comments']);
- } else {
- if (!defined('DEBUG')) {
- define('DEBUG', false);
- }
- }
- if (isset($_GET['scheme_id'])) {
- if (rand(1, 100) == 1) {
- if (function_exists('ioncube_license_properties')) {
- $r = ioncube_license_properties();
- if ($r['thisisfreeversion']['value']) {
- $GLOBALS['this_is_free_version'] = true;
- }
- }
- if (isset($GLOBALS['this_is_free_version'])) {
- header('Location: ' . base64_decode('aHR0cHM6Ly9zbWFydGNqLmNvbS9mcmVlX2NhdGFsb2cucGhw') . '?niche=' . $trade_config['free_ver']);
- exit();
- }
- }
- if (isset($members_data['tds_rules'][$_GET['scheme_id']])) {
- $url = tds_drive($members_data['tds_rules'][$_GET['scheme_id']], $GLOBALS['SCJ_VISITOR']);
- foreach ($_GET as $k => $v) {
- $url = str_replace('{' . $k . '}', urlencode($v), $url);
- $url = str_replace('{' . strtoupper($k) . '}', urlencode($v), $url);
- }
- if (substr($url, 0, 12) == 'BROKER_SPOT_') {
- $spot_id = (int) substr($url, 12);
- if (isset($members_data['brokers']['spots'][$spot_id])) {
- header_comment('TDS-to-broker: TDS return ' . $url . ' to broker spot ' . $spot_id);
- $_GET['spot_id'] = $spot_id;
- } else {
- header_comment('TDS-to-broker-error: TDS redirects to brocker spot, by spot ' . $spot_id . ' doesnt exist');
- }
- } else {
- if ($url && $url != '{ORIGINAL_URL}') {
- header('Location: ' . $url, true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
- exit();
- }
- }
- } else {
- header_comment('TDS-error: scheme_id set to ' . $_GET['scheme_id'] . ' by this ID doesnt exist ');
- }
- }
- if (isset($_GET['spot_id']) && isset($members_data['brokers']['spot2zone'][$_GET['spot_id']])) {
- try {
- $res = broker_zone_select($members_data['brokers'], $_GET['spot_id'], $GLOBALS['SCJ_VISITOR']);
- if (substr($res, 0, 9) == 'Location:') {
- $url = prepare_out_url(substr($res, 9));
- header('Location: ' . $url, true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
- log_out('Incoming: (country:' . $GLOBALS['SCJ_VISITOR']['country_code'] . ') to ' . $url . ' ');
- exit();
- }
- echo $res;
- exit();
- } catch (Exception $e) {
- log_out('Broker error: ' . $e->getMessage());
- exit('no broker');
- }
- }
- HiddenLog('out.php: before alt out');
- if (isset($trade_config['alt_out']) && $trade_config['alt_out'] && !isset($_GET['ao']) && (!isset($_GET['go']) || $_GET['go'] != 'banner')) {
- $GLOBALS['SCJ_RESULTS'] = true;
- $GLOBALS['SCJ_COUNT_CLICK'] = true;
- include realpath(BASE_DIR . '/tube/index.php');
- if (isset($_GET['url']) && $_GET['url'] == 'content') {
- if (isset($_GET['p']) && $_GET['p'] == 100 && (isset($_GET['group_name']) || isset($_GET['group_id']))) {
- addclick(false);
- echo $GLOBALS['SCJ_RESULTS']['html'];
- exit();
- }
- if (!$_SERVER['REDIRECT_URL'] && isset($_SERVER['REQUEST_URI'])) {
- list($_SERVER['REDIRECT_URL']) = explode('?', $_SERVER['REQUEST_URI']);
- }
- $_GET['url'] = $_SERVER['REDIRECT_URL'];
- $_GET['url'] .= '?ao';
- }
- addclick(false);
- if (!$GLOBALS['SCJ_VISITOR']['spider'] && mt_rand(1, 100) == 37 && function_exists('ioncube_license_properties')) {
- $r = ioncube_license_properties();
- if ($r['thisisfreeversion']['value']) {
- header('Location: ' . base64_decode('aHR0cHM6Ly9zbWFydGNqLmNvbS9mcmVlX2NhdGFsb2cucGhw'));
- return true;
- }
- }
- foreach ($_GET as $k => $v) {
- $trade_config['alt_out'] = str_replace('{' . $k . '}', urlencode($v), $trade_config['alt_out']);
- $trade_config['alt_out'] = str_replace('{' . strtoupper($k) . '}', urlencode($v), $trade_config['alt_out']);
- }
- header('Location: ' . $trade_config['alt_out'], true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
- exit();
- } else {
- if ((isset($_GET['ao']) && $_GET['ao'] || isset($GLOBALS['refresh_control']) && $GLOBALS['refresh_control'] != 'off') && (isset($_SERVER['HTTP_CACHE_CONTROL']) && ($_SERVER['HTTP_CACHE_CONTROL'] == 'max-age=0' || $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache') || isset($_SERVER['HTTP_PRAGMA']) && $_SERVER['HTTP_PRAGMA'] == 'no-cache' || isset($_GET['ao']))) {
- $_GET['pp'] = 100;
- }
- if (isset($trade_config['sac_block_ip_action']) && $trade_config['sac_block_ip_action'] && isset($GLOBALS['SCJ_VISITOR']['blocked_ip']) && $GLOBALS['SCJ_VISITOR']['blocked_ip']) {
- if ($trade_config['sac_block_ip_action'] == 'dont_count') {
- $_GET['sl'] = true;
- $trade_config['skip_sell'] = true;
- header_comment('Cheat-Block: dont count ' . $_SERVER['REMOTE_ADDR']);
- } else {
- if ($trade_config['sac_block_ip_action'] === '403') {
- header('HTTP/1.0 403 Forbidden');
- header_comment('Cheat-Block: 403 for ' . $_SERVER['REMOTE_ADDR']);
- exit();
- }
- if ($trade_config['sac_block_ip_action'] === 'dont_count_and_100_skim') {
- $_GET['sl'] = true;
- $_GET['pp'] = 100;
- $trade_config['skip_sell'] = true;
- header_comment('Cheat-Block: dont_count_and_100_skim for ' . $_SERVER['REMOTE_ADDR']);
- } else {
- if ($trade_config['sac_block_ip_action'] === 'treat_as_cheat_clicks') {
- $GLOBALS['SCJ_VISITOR']['cheat'] = true;
- header_comment('Cheat-Block: treat_as_cheat_clicks for ' . $_SERVER['REMOTE_ADDR']);
- }
- }
- }
- }
- $r = check_lng_redirect($members_data, Cookie::get('force_lng'));
- if ($r) {
- header_comment('Redirect-Lng-cookie: to ' . $r);
- header('Location: ' . $r);
- exit();
- }
- $idcheck = (Cookie::get('idcheck') ? Cookie::get('idcheck') : 0);
- ...........................................................................
- .............................................
- .................
Add Comment
Please, Sign In to add comment