update
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user