This commit is contained in:
gabrielkheisa
2022-11-03 08:51:41 +07:00
parent a5f6974241
commit b48dcf0737
3 changed files with 18 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ fclose($myfile);
$pieces = explode("=", $teks);
$marks = array("price"=>$pieces[0], "price_change"=>$pieces[1], "change"=>$pieces[2], "last_update"=>$pieces[3], "server_update"=>$pieces[4]);
$marks = array("price"=>$pieces[0], "price_change"=>$pieces[1], "change"=>$pieces[2], "last_update"=>$pieces[3],"server_update"=>$pieces[4], "symbol"=>$pieces[5], "color"=>$pieces[6]);
echo json_encode($marks, JSON_PRETTY_PRINT);
}
@@ -21,7 +21,7 @@ $txt = base64_decode($q);
$pieces = explode("=", $txt);
if(strcmp($pieces[5], $key) == 0) {
if(strcmp($pieces[7], $key) == 0) {
$myfile = fopen("cache.txt", "w") or die("Unable to open file!");
fwrite($myfile, $txt);
fclose($myfile);