1
0
radio/generatorv2.php

26 lines
463 B
PHP
Raw Permalink Normal View History

2024-01-03 06:55:13 +00:00
<?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();
?>