Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- header('Content-Type: application/json');
- require 'inc.php';
- $files = scandir('language/');
- $files = array_diff($files, ['.', '..']);
- foreach ($files as $file) {
- switch (system_settings('language') . '.php') {
- case $file:
- require_once dirname(__FILE__) . '/language/' . $file;
- break;
- }
- }
- require 'vendor/autoload.php';
- $data = [];
- if ($_GET) {
- $process = (isset($_GET['process']) ? $_GET['process'] : 'index');
- $sub = (isset($_GET['sub']) ? $_GET['sub'] : 'sub');
- switch ($_GET['process']) {
- default:
- $data['error'] = 'Process not found.';
- break;
- case 'limit_refresh':
- update_setting('limit_live', 0);
- $data['success'] = true;
- break;
- case 'code_control':
- if (isset($_GET['code'])) {
- $code = trim(strip_tags($_GET['code']));
- if ($code != '') {
- if (codeControl($code)) {
- $email = getCodeUser($code, 'email');
- updateControl($code);
- updateStatus($email);
- $packetTime = '+' . system_settings('default_time') . ' hours';
- $packetTimes = date('d-m-Y H:i', strtotime($packetTime));
- $packetTimes = strtotime($packetTimes);
- $packetBouquet = json_decode(system_settings('bouquet'), true);
- if (getUser($email, 'user_packet') == 1) {
- $adultPacket = json_decode(system_settings('adult_bouquet'), true);
- array_push($packetBouquet, $adultPacket);
- }
- $notes = ['testuyelik' => '1', 'email' => $email, 'ulke' => getUser($email, 'country'), 'paket' => getUser($email, 'user_packet') == 1 ? '+18' : '-18', 'cihaz' => getUser($email, 'device')];
- if (getUser($email, 'device') == 'mag') {
- $post_data = ['mac' => getUser($email, 'mac_address')];
- $mag_check = open_account('api.php?action=stb&sub=info', $post_data);
- $data['resp_error'] = $mag_check;
- $data = [
- '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')]
- ];
- $api = open_account('api.php?action=stb&sub=create', $data);
- $json = json_decode(json_encode($api), true);
- if ($json['result'] != 1) {
- $data['error'] = $lang['api_error'];
- }
- $email_content1 = str_replace('{mac}', getUser($email, 'mac_address'), stripslashes(system_settings('mag_content')));
- $email_content2 = str_replace('{api}', system_settings('api_url'), $email_content1);
- $email_content2 = str_replace('{dns}', system_settings('api_dns'), $email_content2);
- $email_title = system_settings('mag_title');
- $email_content = $email_content2;
- $getLimit = intval(system_settings('limit_live'));
- update_setting('limit_live', $getLimit + 1);
- $data['type'] = 'mag';
- $data['mac_address'] = getUser($email, 'mac_address');
- $data['stalker_portal'] = system_settings('api_dns') . 'c';
- $data['success'] = true;
- $mail = new PHPMailer\PHPMailer\PHPMailer(true);
- try {
- $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_OFF;
- $mail->isSMTP();
- $mail->Host = system_settings('smtp_host');
- $mail->SMTPAuth = true;
- $mail->Username = system_settings('smtp_mail');
- $mail->Password = system_settings('smtp_pass');
- $mail->SMTPSecure = PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS;
- $mail->Port = system_settings('smtp_port');
- $mail->setFrom(system_settings('smtp_mail'));
- .....................................................................
- ............................................
- ......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement