Browse Source

fix typo in site add code

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 2 years ago
parent
commit
9ab62ec9da
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 2
      templates/home.twig
  2. 2
      views/add.php

2
templates/home.twig

@ -10,6 +10,8 @@ @@ -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>

2
views/add.php

@ -90,7 +90,7 @@ if (isset($_POST["record"]) && !empty($_POST["record"])) { @@ -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.";

Loading…
Cancel
Save