Commit af33782e authored by Nico Schallehn's avatar Nico Schallehn

test

parent 8dd3c83c
......@@ -3,7 +3,7 @@ include('../api.class.php');
define("Fanart_Key","9902c9197f457401ff7a7eba839213ba");
function jsonCacheDecoder($url){
$CacheFolderName = "jsoncache/";
$filename= date("y-m-d",time()).md5($url);
$filename= date("y-m-d_",time()).md5($url).".json";
if(!file_exists($CacheFolderName.$filename)){
file_put_contents($CacheFolderName.$filename, file_get_contents($url));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment