Guest User

Untitled

a guest
Jun 11th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 8.1.0.9
  8. * @ Author : DeZender
  9. * @ Release on : 27.10.2023
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function validate_request()
  15. {
  16. if (empty($_GET['h']) || empty($_GET['s']) || empty($_GET['l']) || empty($_GET['la']) || empty($_GET['t'])) {
  17. return false;
  18. }
  19.  
  20. $order = ['s', 'l', 'la', 't', 'b', 'bs', 'mc', 'cs'];
  21. $str = [];
  22.  
  23. foreach ($order as $o) {
  24. $str[] = $_GET[$o] ?? '';
  25. }
  26.  
  27. $h = hash('sha256', implode($str) . 'tgrfe3ghDgt5dr#56fr%g');
  28.  
  29. if ($h != $_GET['h']) {
  30. return false;
  31. }
  32.  
  33. return $_GET;
  34. }
  35.  
  36. function read_stream($params)
  37. {
  38. global $CONFIG;
  39. $stream = new Onestream\MpegTsStream($CONFIG);
  40. $stream->readStream($params);
  41. }
  42.  
  43. function mark_line_activity_closed($lineActivityId)
  44. {
  45. global $CONFIG;
  46. $dbh = get_connection($CONFIG);
  47. $q = $dbh->prepare('/* direct mpegts */ UPDATE line_activity SET used_at = NOW(), updated_at = NOW(), is_closed=true, reason=? WHERE id = ? AND is_closed=false');
  48. $q->execute(['process exit ' . getmypid(), $lineActivityId]);
  49. }
  50.  
  51. function get_streams_path()
  52. {
  53. return __DIR__ . '/../storage/app/streams/';
  54. }
  55.  
  56. function try_line_access($params, $lastCheck)
  57. {
  58. global $bitrateLimitter;
  59.  
  60. if (is_null($bitrateLimitter)) {
  61. $bitrateLimitter = get_bitrate_limitter($params);
  62. }
  63.  
  64. check_bitrate_limit($bitrateLimitter, $lastCheck);
  65.  
  66. if ((time() - $lastCheck->lastCheckLineAccess) < 20) {
  67. return NULL;
  68. .........................................................
  69. ..................................
  70. ............
Advertisement
Add Comment
Please, Sign In to add comment