/* Decoded by unphp.net */ "$encoded", 'updated' => true); file_put_contents('update.json', json_encode($update_value, JSON_PRETTY_PRINT)); // Check Success For Inserting HWID to Array if (file_put_contents('data.json', $final_data)) { echo "success"; fwrite($append_txt, " ($date) HWID $extra was added (Server: $ip_data)"); } } // Remove User From Database } else if ($function == "blacklist") { if ($_GET["ip"] == "") return; if (file_exists('blacklist.json') && file_exists('Logs/blacklist.txt')) { $current_data = file_get_contents('blacklist.json'); $append_txt = fopen('Logs/blacklist.txt', 'a'); $array_data = json_decode($current_data, true); $extra = $_GET["ip"]; $encoded = hash('sha256', $extra); $ip_data = $_SERVER['REMOTE_ADDR']; $date = date("m/d/Y h:i:sa"); $array_data[] = $encoded; $final_data = json_encode($array_data, JSON_PRETTY_PRINT); // Check Success For Inserting IP to Array if (file_put_contents('blacklist.json', $final_data)) { echo "success"; fwrite($append_txt, " ($date) IP $extra was blacklisted (Server: $ip_data)"); } } } else return;