From ae7cbcb4ae15f2dee169fffc6370ecef47f4ab45 Mon Sep 17 00:00:00 2001 From: gabrielkheisa Date: Sat, 29 Oct 2022 20:59:32 +0700 Subject: [PATCH] add --- index.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..54e8478 --- /dev/null +++ b/index.php @@ -0,0 +1,35 @@ +$pieces[0], "price_change"=>$pieces[1], "change"=>$pieces[2], "last_update"=>$pieces[3], "server_update"=>$pieces[4]); + +echo json_encode($marks, JSON_PRETTY_PRINT); +} +else { +$txt = base64_decode($q); + +$pieces = explode("=", $txt); + +if(strcmp($pieces[5], $key) == 0) { + $myfile = fopen("cache.txt", "w") or die("Unable to open file!"); + fwrite($myfile, $txt); + fclose($myfile); + echo "Done!"; +} +else { + echo "Key Invalid"; + fclose($myfile); +} +} +?> \ No newline at end of file