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 SourceGuardian Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- include 'config.php';
- include 'session.php';
- include 'header.php';
- $username = $_POST['name'];
- $resellerid = $login_session;
- $password = $_POST['password'];
- $bouquest = $_POST['boq'];
- $bouquet_ids = $_POST['boq'];
- $expire_datemonth = $_POST['duration'];
- $is_trial = 0;
- if ($expire_datemonth == '0') {
- $expire_date = strtotime(' + 3 days');
- $is_trial = 1;
- $amount = '0';
- }
- else if ($expire_datemonth == '1') {
- $expire_date = strtotime(' + 30 days');
- }
- else if ($expire_datemonth == '3') {
- $expire_date = strtotime(' + 90 days');
- }
- else if ($expire_datemonth == '6') {
- $expire_date = strtotime(' + 183 days');
- }
- else if ($expire_datemonth == '12') {
- $expire_date = strtotime(' + 365 days');
- }
- $max_connections = 1;
- $reseller = 0;
- $post_data = [
- 'user_data' => ['username' => $username, 'password' => $password, 'max_connections' => $max_connections, 'is_restreamer' => $reseller, 'exp_date' => $expire_date, 'bouquet' => json_encode($bouquet_ids), 'member_id' => $owner, 'is_trial' => $is_trial]
- ];
- $opts = [
- 'http' => ['method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($post_data)]
- ];
- $context = stream_context_create($opts);
- $api_result = json_decode(file_get_contents($panel_url . 'api.php?action=user&sub=create', false, $context));
- echo "\r\n" . ' <div >' . "\r\n" . ' ';
- if ($username != '') {
- ..................................................................
- ........................................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement