Advertisement
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.8
- * @ Author : DeZender
- * @ Release on : 16.07.2023
- * @ Official site : http://DeZender.Net
- *
- */
- namespace App\Http\Controllers\StreamPlayApi\Integration;
- class StalkerApiIntegrationController extends \App\Http\Controllers\Api\ApiController
- {
- private $serverRepository = null;
- private $streamRepository = null;
- private $seriesRepository = null;
- private $lineRepository = null;
- private $logger = null;
- private $idResolver = null;
- private $deviceSettingService = null;
- private $generalSettings = null;
- private $localisationSettings = null;
- private $streamFormat = null;
- private $allowedNoAuth = ['stb_get_profile', 'stb_get_modules', 'stb_get_localization'];
- public function __construct(\App\Http\Repositories\StreamingServerRepository $serverRepository, \App\Http\Repositories\StreamRepository $streamRepository, \App\Http\Repositories\SeriesRepository $seriesRepository, \App\Http\Repositories\LineRepository $lineRepository, \Psr\Log\LoggerInterface $logger, \App\Http\Services\UuidToIntResolver $idResolver, \App\Http\Repositories\SettingsRepository $generalSettings)
- {
- $this->serverRepository = $serverRepository;
- $this->streamRepository = new \App\Http\Services\PersistentCache\Repositories\ProxyRepository($streamRepository);
- $this->seriesRepository = new \App\Http\Services\PersistentCache\Repositories\ProxyRepository($seriesRepository);
- $this->lineRepository = $lineRepository;
- $this->logger = $logger;
- $this->idResolver = $idResolver;
- $this->streamFormat = '';
- $this->generalSettings = $generalSettings->magDevice();
- $this->localisationSettings = $generalSettings->localisation();
- }
- private function getOrderBy($type)
- {
- return $this->generalSettings->default_ord[$type] ?? '';
- }
- public function index(\Illuminate\Http\Request $request, \App\Http\Services\Device\AuthService $authService, \App\Http\Services\Device\SettingsService $deviceSettingService)
- {
- \is_cache_loaded();
- f54df781111d75b9bcec135f8ccd4f9ca71a889f6eed5656a71d3d44c8798819a();
- if (!method_exists('\\Illuminate\\Redis\\RedisManager', 'persistent')) {
- echo 'Could not connect to Redis at 127.0.0.1:6379: Connection refused';
- exit();
- }
- $type = $request->get('type');
- $action = $request->get('action');
- $method = $type . '_' . $action;
- if (!method_exists($this, $method)) {
- return $this->respond([
- 'js' => []
- ]);
- }
- $line = $request->input('__line');
- if (!$line && !in_array($method, $this->allowedNoAuth)) {
- return $this->respond([
- 'js' => ['Auth Required']
- ], 401);
- }
- $authService->setRequest($request);
- $this->deviceSettingService = $deviceSettingService;
- $this->deviceSettingService->setDeviceId($authService->getDeviceId());
- ....................................................................
- .....................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement