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

changes on hidden records page

This commit is contained in:
R4SAS 2023-02-19 11:46:55 +00:00
parent 8cf739765e
commit 83741e6d0e
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{% extends "_page.twig" %}
{% block title %}Alive hosts{% endblock %}
{% block title %}Hidden hosts{% endblock %}
{% block content %}
<div class="container">
<div class="alive-hosts">

View File

@ -26,14 +26,14 @@ $pdo = (new App\DB($options))->pdo;
/* Get records amount */
$STH = $pdo->query ("SELECT COUNT(*) FROM `hosts` " .
"WHERE `approved` = 1 AND `disabled` = 0 AND `hidden` = 0 AND `blacklisted` = 1");
"WHERE `approved` = 1 AND `blacklisted` = 1");
$records = $STH->fetchColumn();
$pages = intdiv($records, $options["tableitems"]) + 1;
/* Get records with limit */
$STH = $pdo->query ("SELECT `host`, `base64`, `base32`, `last_seen` FROM `hosts` " .
"WHERE `approved` = 1 AND `disabled` = 0 AND `hidden` = 0 AND `blacklisted` = 1 " .
"WHERE `approved` = 1 AND `blacklisted` = 1 " .
"LIMIT " . $offset . ", " . $options["tableitems"]);
$rows = $STH->fetchAll(PDO::FETCH_ASSOC);