26 lines
463 B
PHP
26 lines
463 B
PHP
|
<?php
|
||
|
|
||
|
namespace Radio;
|
||
|
|
||
|
error_reporting(0);
|
||
|
ini_set('error_reporting', 0);
|
||
|
|
||
|
header('Content-Type: application/json');
|
||
|
|
||
|
class Generator {
|
||
|
|
||
|
public function json (){
|
||
|
$json = file_get_contents("https://git.cwinfo.net/cwchristerw/radio/raw/branch/master/playlist.json");
|
||
|
$json = str_replace("aw_0_1st.skey=1701171117", "aw_0_1st.skey=".time(),$json);
|
||
|
echo $json;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
$generator = new Generator;
|
||
|
$generator->json();
|
||
|
|
||
|
?>
|