Guest User

Untitled

a guest
Mar 30th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.28 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require dirname(__FILE__) . '/common.php';
  15. $local_domain = (substr($_SERVER['HTTP_HOST'], 0, 4) == 'www.' ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST']);
  16.  
  17. if (strstr($_SERVER['HTTP_HOST'], 'smartcj.com')) {
  18. error_reporting(32767);
  19. }
  20.  
  21. include_once BASE_DIR . '/includes/libs/Cookie.class.php';
  22. include_once BASE_DIR . '/includes/libs/traffic_functions.php';
  23. $GLOBALS['scj_headers'] = array();
  24. HiddenLog('out.php: start', 'out.start');
  25. preset_env_vars();
  26. $members_data = @unserialize(@file_get_contents(BASE_DIR . '/data/members.data'));
  27. Cookie::SetEngineType($members_data['config']['cookie_engine']);
  28. HiddenLog('out.php: load_members');
  29.  
  30. if (!is_array($members_data)) {
  31. exit('Please, refresh page in a minute (or check PATH in common.php)');
  32. }
  33.  
  34. $trade_config = $members_data['config'];
  35. $traders = $members_data['traders'];
  36.  
  37. if (isset($trade_config['performance_log'])) {
  38. $config['performance_log'] = 'performance.log';
  39. }
  40.  
  41. prepare_visitor($members_data, 'out');
  42. HiddenLog('out.php: prepare_visitor');
  43.  
  44. if (!$GLOBALS['SCJ_VISITOR']['local_link'] && !isset($_GET['dont_count_in_trade_incoming'])) {
  45. count_hit($members_data);
  46. }
  47.  
  48. $GLOBALS['SCJ_COUNTED'] = true;
  49.  
  50. if (isset($members_data['lng_skimming'])) {
  51. $lng_skimming = $members_data['lng_skimming'];
  52. }
  53.  
  54. if (isset($members_data['config']['sout_debug_comments']) && $members_data['config']['sout_debug_comments'] && !defined('DEBUG')) {
  55. define('DEBUG', $members_data['config']['sout_debug_comments']);
  56. } else {
  57. if (!defined('DEBUG')) {
  58. define('DEBUG', false);
  59. }
  60. }
  61.  
  62. if (isset($_GET['scheme_id'])) {
  63. if (rand(1, 100) == 1) {
  64. if (function_exists('ioncube_license_properties')) {
  65. $r = ioncube_license_properties();
  66.  
  67. if ($r['thisisfreeversion']['value']) {
  68. $GLOBALS['this_is_free_version'] = true;
  69. }
  70. }
  71.  
  72. if (isset($GLOBALS['this_is_free_version'])) {
  73. header('Location: ' . base64_decode('aHR0cHM6Ly9zbWFydGNqLmNvbS9mcmVlX2NhdGFsb2cucGhw') . '?niche=' . $trade_config['free_ver']);
  74.  
  75. exit();
  76. }
  77. }
  78.  
  79. if (isset($members_data['tds_rules'][$_GET['scheme_id']])) {
  80. $url = tds_drive($members_data['tds_rules'][$_GET['scheme_id']], $GLOBALS['SCJ_VISITOR']);
  81.  
  82. foreach ($_GET as $k => $v) {
  83. $url = str_replace('{' . $k . '}', urlencode($v), $url);
  84. $url = str_replace('{' . strtoupper($k) . '}', urlencode($v), $url);
  85. }
  86.  
  87. if (substr($url, 0, 12) == 'BROKER_SPOT_') {
  88. $spot_id = (int) substr($url, 12);
  89.  
  90. if (isset($members_data['brokers']['spots'][$spot_id])) {
  91. header_comment('TDS-to-broker: TDS return ' . $url . ' to broker spot ' . $spot_id);
  92. $_GET['spot_id'] = $spot_id;
  93. } else {
  94. header_comment('TDS-to-broker-error: TDS redirects to brocker spot, by spot ' . $spot_id . ' doesnt exist');
  95. }
  96. } else {
  97. if ($url && $url != '{ORIGINAL_URL}') {
  98. header('Location: ' . $url, true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
  99.  
  100. exit();
  101. }
  102. }
  103. } else {
  104. header_comment('TDS-error: scheme_id set to ' . $_GET['scheme_id'] . ' by this ID doesnt exist ');
  105. }
  106. }
  107.  
  108. if (isset($_GET['spot_id']) && isset($members_data['brokers']['spot2zone'][$_GET['spot_id']])) {
  109. try {
  110. $res = broker_zone_select($members_data['brokers'], $_GET['spot_id'], $GLOBALS['SCJ_VISITOR']);
  111.  
  112. if (substr($res, 0, 9) == 'Location:') {
  113. $url = prepare_out_url(substr($res, 9));
  114. header('Location: ' . $url, true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
  115. log_out('Incoming: (country:' . $GLOBALS['SCJ_VISITOR']['country_code'] . ') to ' . $url . ' ');
  116.  
  117. exit();
  118. }
  119.  
  120. echo $res;
  121.  
  122. exit();
  123. } catch (Exception $e) {
  124. log_out('Broker error: ' . $e->getMessage());
  125.  
  126. exit('no broker');
  127. }
  128. }
  129.  
  130. HiddenLog('out.php: before alt out');
  131.  
  132. if (isset($trade_config['alt_out']) && $trade_config['alt_out'] && !isset($_GET['ao']) && (!isset($_GET['go']) || $_GET['go'] != 'banner')) {
  133. $GLOBALS['SCJ_RESULTS'] = true;
  134. $GLOBALS['SCJ_COUNT_CLICK'] = true;
  135. include realpath(BASE_DIR . '/tube/index.php');
  136.  
  137. if (isset($_GET['url']) && $_GET['url'] == 'content') {
  138. if (isset($_GET['p']) && $_GET['p'] == 100 && (isset($_GET['group_name']) || isset($_GET['group_id']))) {
  139. addclick(false);
  140. echo $GLOBALS['SCJ_RESULTS']['html'];
  141.  
  142. exit();
  143. }
  144.  
  145. if (!$_SERVER['REDIRECT_URL'] && isset($_SERVER['REQUEST_URI'])) {
  146. list($_SERVER['REDIRECT_URL']) = explode('?', $_SERVER['REQUEST_URI']);
  147. }
  148.  
  149. $_GET['url'] = $_SERVER['REDIRECT_URL'];
  150. $_GET['url'] .= '?ao';
  151. }
  152.  
  153. addclick(false);
  154.  
  155. if (!$GLOBALS['SCJ_VISITOR']['spider'] && mt_rand(1, 100) == 37 && function_exists('ioncube_license_properties')) {
  156. $r = ioncube_license_properties();
  157.  
  158. if ($r['thisisfreeversion']['value']) {
  159. header('Location: ' . base64_decode('aHR0cHM6Ly9zbWFydGNqLmNvbS9mcmVlX2NhdGFsb2cucGhw'));
  160.  
  161. return true;
  162. }
  163. }
  164.  
  165. foreach ($_GET as $k => $v) {
  166. $trade_config['alt_out'] = str_replace('{' . $k . '}', urlencode($v), $trade_config['alt_out']);
  167. $trade_config['alt_out'] = str_replace('{' . strtoupper($k) . '}', urlencode($v), $trade_config['alt_out']);
  168. }
  169. header('Location: ' . $trade_config['alt_out'], true, (isset($GLOBALS['SCJ_REDIRECT_CODE']) ? $GLOBALS['SCJ_REDIRECT_CODE'] : 302));
  170.  
  171. exit();
  172. } else {
  173. 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']))) {
  174. $_GET['pp'] = 100;
  175. }
  176.  
  177. 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']) {
  178. if ($trade_config['sac_block_ip_action'] == 'dont_count') {
  179. $_GET['sl'] = true;
  180. $trade_config['skip_sell'] = true;
  181. header_comment('Cheat-Block: dont count ' . $_SERVER['REMOTE_ADDR']);
  182. } else {
  183. if ($trade_config['sac_block_ip_action'] === '403') {
  184. header('HTTP/1.0 403 Forbidden');
  185. header_comment('Cheat-Block: 403 for ' . $_SERVER['REMOTE_ADDR']);
  186.  
  187. exit();
  188. }
  189.  
  190. if ($trade_config['sac_block_ip_action'] === 'dont_count_and_100_skim') {
  191. $_GET['sl'] = true;
  192. $_GET['pp'] = 100;
  193. $trade_config['skip_sell'] = true;
  194. header_comment('Cheat-Block: dont_count_and_100_skim for ' . $_SERVER['REMOTE_ADDR']);
  195. } else {
  196. if ($trade_config['sac_block_ip_action'] === 'treat_as_cheat_clicks') {
  197. $GLOBALS['SCJ_VISITOR']['cheat'] = true;
  198. header_comment('Cheat-Block: treat_as_cheat_clicks for ' . $_SERVER['REMOTE_ADDR']);
  199. }
  200. }
  201. }
  202. }
  203.  
  204. $r = check_lng_redirect($members_data, Cookie::get('force_lng'));
  205.  
  206. if ($r) {
  207. header_comment('Redirect-Lng-cookie: to ' . $r);
  208. header('Location: ' . $r);
  209.  
  210. exit();
  211. }
  212.  
  213. $idcheck = (Cookie::get('idcheck') ? Cookie::get('idcheck') : 0);
  214. ...........................................................................
  215. .............................................
  216. .................
Add Comment
Please, Sign In to add comment