Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 8.1.0.9
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- function validate_request()
- {
- if (empty($_GET['h']) || empty($_GET['s']) || empty($_GET['l']) || empty($_GET['la']) || empty($_GET['t'])) {
- return false;
- }
- $order = ['s', 'l', 'la', 't', 'b', 'bs', 'mc', 'cs'];
- $str = [];
- foreach ($order as $o) {
- $str[] = $_GET[$o] ?? '';
- }
- $h = hash('sha256', implode($str) . 'tgrfe3ghDgt5dr#56fr%g');
- if ($h != $_GET['h']) {
- return false;
- }
- return $_GET;
- }
- function read_stream($params)
- {
- global $CONFIG;
- $stream = new Onestream\MpegTsStream($CONFIG);
- $stream->readStream($params);
- }
- function mark_line_activity_closed($lineActivityId)
- {
- global $CONFIG;
- $dbh = get_connection($CONFIG);
- $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');
- $q->execute(['process exit ' . getmypid(), $lineActivityId]);
- }
- function get_streams_path()
- {
- return __DIR__ . '/../storage/app/streams/';
- }
- function try_line_access($params, $lastCheck)
- {
- global $bitrateLimitter;
- if (is_null($bitrateLimitter)) {
- $bitrateLimitter = get_bitrate_limitter($params);
- }
- check_bitrate_limit($bitrateLimitter, $lastCheck);
- if ((time() - $lastCheck->lastCheckLineAccess) < 20) {
- return NULL;
- .........................................................
- ..................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment