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 : 5.0.1.0
- * @ Author : DeZender
- * @ Release on : 22.04.2022
- * @ 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'];
- $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('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_playlist($playlistPath, $prebuffer = 0, $segmentSize = 10)
- {
- for ($count = 0; !file_exists($playlistPath) && ($count <= 40); $count++) {
- usleep(500000);
- }
- try {
- $content = file_get_contents($playlistPath);
- }
- catch (Exception $e) {
- return [];
- }
- $last = NULL;
- $all = [];
- $matches = [];
- if (preg_match_all('/(.*?)\\.ts/', $content, $matches) && count($matches)) {
- foreach ($matches[0] as $match) {
- $last = $match;
- ...............................................................................
- ..............................................
- ........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement