1
0

Add generator v2

This commit is contained in:
Christer Warén 2024-01-03 08:55:13 +02:00
parent 72ca8e70bf
commit 6be81c25db

25
generatorv2.php Normal file
View 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();
?>