Add generator v2
This commit is contained in:
parent
72ca8e70bf
commit
6be81c25db
25
generatorv2.php
Normal file
25
generatorv2.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?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();
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user