|
|
@ -90,7 +90,7 @@ if (isset($_POST["record"]) && !empty($_POST["record"])) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$base32 = $util->b32from64($parsed["b64"]); |
|
|
|
$base32 = $util->b32from64($parsed["b64"]); |
|
|
|
|
|
|
|
|
|
|
|
$STH = !$pdo->prepare('INSERT INTO `hosts` (`host`, `base64`, `base32`) VALUES (?, ?, ?)'); |
|
|
|
$STH = $pdo->prepare('INSERT INTO `hosts` (`host`, `base64`, `base32`) VALUES (?, ?, ?)'); |
|
|
|
if (!$STH->execute([$domain, $parsed["b64"], $base32])) { |
|
|
|
if (!$STH->execute([$domain, $parsed["b64"], $base32])) { |
|
|
|
$result["error"] = "Error happened while inserting record to database. Please try again later."; |
|
|
|
$result["error"] = "Error happened while inserting record to database. Please try again later."; |
|
|
|
|
|
|
|
|
|
|
|