Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 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.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require_once '/home/xapicode/iptv_xapicode/wwwdir/_system/config/config.main.php';
  15. require_once '/home/xapicode/iptv_xapicode/wwwdir/_system/class/class.pdo.php';
  16. $DBPASS = decrypt(PASSWORD);
  17. $db = new Db(HOST, DATABASE, USER, $DBPASS);
  18. $set_stream_array = [$_REQUEST['stream_id']];
  19. $set_stream = $db->query('SELECT * FROM cms_streams WHERE stream_id = ?', $set_stream_array);
  20. $set_stream_sys_array = [$_REQUEST['stream_id'], SERVER];
  21. $set_stream_sys = $db->query('SELECT stream_pid FROM cms_stream_sys WHERE stream_id = ? AND server_id = ?', $set_stream_sys_array);
  22. file_put_contents(DOCROOT . 'streams/' . $_REQUEST['stream_id'], $set_stream_sys[0]['stream_pid']);
  23. $stream_status = json_decode($set_stream[0]['stream_status'], true);
  24. if (($stream_status[0][SERVER] == 6) || ($stream_status[0][SERVER] == 7)) {
  25. if (file_exists(DOCROOT . 'streams/' . $_REQUEST['stream_id'])) {
  26. $stream_status[0][SERVER] = 1;
  27. $update_stream_array = ['stream_status' => json_encode($stream_status), 'stream_id' => $_REQUEST['stream_id']];
  28. $update_stream = $db->query('UPDATE cms_streams SET stream_status = :stream_status WHERE stream_id = :stream_id', $update_stream_array);
  29. shell_exec('rm -rf ' . DOCROOT . 'streams/' . $_REQUEST['stream_id'] . '_checker');
  30. }
  31. else {
  32. $play_pool_count = json_decode($set_stream[0]['stream_play_pool'], true);
  33. ......................................................................
  34. ...........................................
  35. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement