api / part2.php
JAYNESTV's picture
Upload 9 files
610200c verified
Raw History Blame
732 Bytes
<?php
/**
* part2.php — JAYNES MAX TV (v3.2-split)
* Channels 12-22 pekee, sequential fetch (kama v3.2 asili).
*/
header('Content-Type: application/json; charset=UTF-8');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, OPTIONS');
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { http_response_code(204); exit; }
@ini_set('display_errors', '0');
error_reporting(E_ERROR);
while (ob_get_level() > 0) { ob_end_flush(); }
ob_implicit_flush(true);
ignore_user_abort(true);
require __DIR__ . '/kraudius_core.php';
$source = trim($_GET['source'] ?? 'kraudius');
$result = runBatch(12, 22, $source);
echo json_encode($result, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);