1
0
mirror of https://github.com/PurpleI2P/regi2p.git synced 2025-02-06 02:34:14 +00:00

fix typo in site add code

Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2022-09-15 04:50:26 +00:00
parent 28aadecc6c
commit 9ab62ec9da
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@
<p>
<b>Info:</b><br>
Hosts check is done every hour.<br>
The problem with adding domains in the period from 08/28/22 to 09/15/22 has been fixed. Sorry for the inconvenience.<br> {# to be removed later #}
<br>
Supported commands:
<ul>
<li>adding of hosts for 2LD domains (example.i2p)</li>

View File

@ -90,7 +90,7 @@ if (isset($_POST["record"]) && !empty($_POST["record"])) {
} else {
$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])) {
$result["error"] = "Error happened while inserting record to database. Please try again later.";