Dooratre commited on
Commit
19dfc65
·
verified ·
1 Parent(s): 4260bb9

Delete index.php

Browse files
Files changed (1) hide show
  1. index.php +0 -19
index.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- date_default_timezone_set("Asia/Shanghai");
3
- $channel = empty($_GET['id']) ? "cctv16hd4k/15000000" : trim($_GET['id']);
4
- $stream = "http://223.111.117.11/liveplay-kk.rtxapp.com/live/program/live/{$channel}/";
5
- $timestamp = substr(time(), 0, 9) - 7;
6
- $current = "#EXTM3U" . PHP_EOL;
7
- $current .= "#EXT-X-VERSION:3" . PHP_EOL;
8
- $current .= "#EXT-X-TARGETDURATION:3" . PHP_EOL;
9
- $current .= "#EXT-X-MEDIA-SEQUENCE:{$timestamp}" . PHP_EOL;
10
- for ($i = 0; $i < 3; $i++) {
11
- $timematch = $timestamp . '0';
12
- $timefirst = date('YmdH', $timematch);
13
- $current .= "#EXTINF:3," . PHP_EOL;
14
- $current .= $stream . $timefirst . "/" . $timestamp . ".ts" . PHP_EOL;
15
- $timestamp = $timestamp + 1;
16
- }
17
- header("Content-Type: application/vnd.apple.mpegurl");
18
- header("Content-Disposition: attachment; filename=index.m3u8");
19
- echo $current;