From 3c916e57e909aaecba2e2731e726a325540b4c93 Mon Sep 17 00:00:00 2001 From: Gabriel Kheisa <63294471+gabrielkheisa@users.noreply.github.com> Date: Mon, 3 Oct 2022 21:03:45 +0700 Subject: [PATCH] Create index.php --- index.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..7183508 --- /dev/null +++ b/index.php @@ -0,0 +1,44 @@ + $pieces[0], + "perawatan" => $pieces[1], + "sembuh" => $pieces[2], + "meninggal" => $pieces[3], + "last_update" => $pieces[4], + "server_update" => $pieces[5] + ); + + echo json_encode($marks, JSON_PRETTY_PRINT); +} +else +{ + $txt = base64_decode($q); + + $pieces = explode(",", $txt); + + if (strcmp($pieces[6], $key) == 0) + { + $myfile = fopen("cache.txt", "w") or die("Unable to open file!"); + fwrite($myfile, $txt); + fclose($myfile); + echo "Done!"; + } + else + { + die("Key Invalid"); + } +} +?>