array("expiration" => 1767225599), // Example account 12345678 87654321 => array("expiration" => 1770000000) // Example account 87654321 ); // Check if 'login' parameter is provided if (!isset($_GET['login'])) { echo json_encode(array("status" => "invalid", "message" => "No login provided")); exit; } // Convert the login parameter to an integer $login = intval($_GET['login']); // Check if the login exists in our allowed accounts list if (array_key_exists($login, $allowedAccounts)) { $expiration = $allowedAccounts[$login]["expiration"]; // Check if the current time is past the expiration if (time() > $expiration) { echo json_encode(array("status" => "invalid", "message" => "License expired")); } else { echo json_encode(array("status" => "valid", "expiration" => $expiration)); } } else { echo json_encode(array("status" => "invalid", "message" => "Unauthorized account")); } ?>