if (!isset($_POST["tc"])) {
die(json_encode(array("success" => "false", "message" => "param errorr")));
}
$tc = $_POST["tc"];
$query = http_build_query(array(
"tc" => $tc,
"auth" => "f9OqyqPRmGhuZZJWjIzP0cikrNlUsImDZGJkYWyCj6DRmm1tU91ubGFTeNKmn8e9l5tmtmVbWRwkpZug4l9gIaxfI1X0aCknlepm8eg1YyEeJ3Yo8akmRiZl9hkGxvnJpnaWiFi5melKnLZWiVnWBsag"
));
$checkCooldown = checkCooldown($kid);
if ($checkCooldown["success"] == "false") {
die(json_encode($checkCooldown));
} else {
addCooldown($kid);
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://141.98.1.168/wizort/api/hsys/tcsorgu.php?" . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
wizortbook($sorguURL, "Sorgu Denetleyicisi", "TC Sorgu", "**$kadi** isimli üye **$tc** için sorgu yaptı!");