<?php

require_once '../../server/common.php';
use Ministra\Lib\bd5c9022e9a9029209e5fd05775ea272\K131970f0a776522b1a53ba419cd5e32c;
use Ministra\Lib\RESTAPI\v1\RESTManager;
if (!\Ministra\Lib\bd5c9022e9a9029209e5fd05775ea272\K131970f0a776522b1a53ba419cd5e32c::getSafe('enable_api', \false) && \strpos($_SERVER['QUERY_STRING'], 'tv_archive') != 2 && \strpos($_SERVER['QUERY_STRING'], 'stream_recorder') != 2 && \strpos($_SERVER['QUERY_STRING'], 'monitoring_links') != 2 && \strpos($_SERVER['QUERY_STRING'], 'tv_tmp_link') != 2) {
    \header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
    echo 'API not enabled';
    exit;
}
\Ministra\Lib\RESTAPI\v1\RESTManager::setAuthParams(\Ministra\Lib\bd5c9022e9a9029209e5fd05775ea272\K131970f0a776522b1a53ba419cd5e32c::getSafe('api_auth_login', ''), \Ministra\Lib\bd5c9022e9a9029209e5fd05775ea272\K131970f0a776522b1a53ba419cd5e32c::getSafe('api_auth_password', ''));
\Ministra\Lib\RESTAPI\v1\RESTManager::enableLogger(\Ministra\Lib\bd5c9022e9a9029209e5fd05775ea272\K131970f0a776522b1a53ba419cd5e32c::getSafe('enable_api_log', \false));
\Ministra\Lib\RESTAPI\v1\RESTManager::handleRequest();
