Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. header('Content-Type: application/json');
  15. require 'inc.php';
  16. $files = scandir('language/');
  17. $files = array_diff($files, ['.', '..']);
  18.  
  19. foreach ($files as $file) {
  20. switch (system_settings('language') . '.php') {
  21. case $file:
  22. require_once dirname(__FILE__) . '/language/' . $file;
  23. break;
  24. }
  25. }
  26.  
  27. require 'vendor/autoload.php';
  28. $data = [];
  29.  
  30. if ($_GET) {
  31. $process = (isset($_GET['process']) ? $_GET['process'] : 'index');
  32. $sub = (isset($_GET['sub']) ? $_GET['sub'] : 'sub');
  33.  
  34. switch ($_GET['process']) {
  35. default:
  36. $data['error'] = 'Process not found.';
  37. break;
  38. case 'limit_refresh':
  39. update_setting('limit_live', 0);
  40. $data['success'] = true;
  41. break;
  42. case 'code_control':
  43. if (isset($_GET['code'])) {
  44. $code = trim(strip_tags($_GET['code']));
  45.  
  46. if ($code != '') {
  47. if (codeControl($code)) {
  48. $email = getCodeUser($code, 'email');
  49. updateControl($code);
  50. updateStatus($email);
  51. $packetTime = '+' . system_settings('default_time') . ' hours';
  52. $packetTimes = date('d-m-Y H:i', strtotime($packetTime));
  53. $packetTimes = strtotime($packetTimes);
  54. $packetBouquet = json_decode(system_settings('bouquet'), true);
  55.  
  56. if (getUser($email, 'user_packet') == 1) {
  57. $adultPacket = json_decode(system_settings('adult_bouquet'), true);
  58. array_push($packetBouquet, $adultPacket);
  59. }
  60.  
  61. $notes = ['testuyelik' => '1', 'email' => $email, 'ulke' => getUser($email, 'country'), 'paket' => getUser($email, 'user_packet') == 1 ? '+18' : '-18', 'cihaz' => getUser($email, 'device')];
  62.  
  63. if (getUser($email, 'device') == 'mag') {
  64. $post_data = ['mac' => getUser($email, 'mac_address')];
  65. $mag_check = open_account('api.php?action=stb&sub=info', $post_data);
  66. $data['resp_error'] = $mag_check;
  67. $data = [
  68. 'user_data' => ['member_id' => system_settings('member_id'), 'mac' => getUser($email, 'mac_address'), 'max_connections' => 1, 'is_restreamer' => 0, 'exp_date' => $packetTimes, 'admin_notes' => '', 'bouquet' => json_encode($packetBouquet), 'is_isplock' => 0, 'is_trial' => 1, 'forced_country' => getUser($email, 'country')]
  69. ];
  70. $api = open_account('api.php?action=stb&sub=create', $data);
  71. $json = json_decode(json_encode($api), true);
  72.  
  73. if ($json['result'] != 1) {
  74. $data['error'] = $lang['api_error'];
  75. }
  76.  
  77. $email_content1 = str_replace('{mac}', getUser($email, 'mac_address'), stripslashes(system_settings('mag_content')));
  78. $email_content2 = str_replace('{api}', system_settings('api_url'), $email_content1);
  79. $email_content2 = str_replace('{dns}', system_settings('api_dns'), $email_content2);
  80. $email_title = system_settings('mag_title');
  81. $email_content = $email_content2;
  82. $getLimit = intval(system_settings('limit_live'));
  83. update_setting('limit_live', $getLimit + 1);
  84. $data['type'] = 'mag';
  85. $data['mac_address'] = getUser($email, 'mac_address');
  86. $data['stalker_portal'] = system_settings('api_dns') . 'c';
  87. $data['success'] = true;
  88. $mail = new PHPMailer\PHPMailer\PHPMailer(true);
  89.  
  90. try {
  91. $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_OFF;
  92. $mail->isSMTP();
  93. $mail->Host = system_settings('smtp_host');
  94. $mail->SMTPAuth = true;
  95. $mail->Username = system_settings('smtp_mail');
  96. $mail->Password = system_settings('smtp_pass');
  97. $mail->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS;
  98. $mail->Port = system_settings('smtp_port');
  99. $mail->setFrom(system_settings('smtp_mail'));
  100. .....................................................................
  101. ............................................
  102. ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement