Advertisement
Guest User

Untitled

a guest
Oct 6th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. include 'config.php';
  15. include 'session.php';
  16. include 'header.php';
  17. $username = $_POST['name'];
  18. $resellerid = $login_session;
  19. $password = $_POST['password'];
  20. $bouquest = $_POST['boq'];
  21. $bouquet_ids = $_POST['boq'];
  22. $expire_datemonth = $_POST['duration'];
  23. $is_trial = 0;
  24.  
  25. if ($expire_datemonth == '0') {
  26. $expire_date = strtotime(' + 3 days');
  27. $is_trial = 1;
  28. $amount = '0';
  29. }
  30. else if ($expire_datemonth == '1') {
  31. $expire_date = strtotime(' + 30 days');
  32. }
  33. else if ($expire_datemonth == '3') {
  34. $expire_date = strtotime(' + 90 days');
  35. }
  36. else if ($expire_datemonth == '6') {
  37. $expire_date = strtotime(' + 183 days');
  38. }
  39. else if ($expire_datemonth == '12') {
  40. $expire_date = strtotime(' + 365 days');
  41. }
  42.  
  43. $max_connections = 1;
  44. $reseller = 0;
  45. $post_data = [
  46. '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]
  47. ];
  48. $opts = [
  49. 'http' => ['method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => http_build_query($post_data)]
  50. ];
  51. $context = stream_context_create($opts);
  52. $api_result = json_decode(file_get_contents($panel_url . 'api.php?action=user&sub=create', false, $context));
  53. echo "\r\n" . ' <div >' . "\r\n" . ' ';
  54.  
  55. if ($username != '') {
  56. ..................................................................
  57. ........................................
  58. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement