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:
parent
8cf739765e
commit
83741e6d0e
@ -1,6 +1,6 @@
|
|||||||
{% extends "_page.twig" %}
|
{% extends "_page.twig" %}
|
||||||
|
|
||||||
{% block title %}Alive hosts{% endblock %}
|
{% block title %}Hidden hosts{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="alive-hosts">
|
<div class="alive-hosts">
|
||||||
|
@ -26,14 +26,14 @@ $pdo = (new App\DB($options))->pdo;
|
|||||||
|
|
||||||
/* Get records amount */
|
/* Get records amount */
|
||||||
$STH = $pdo->query ("SELECT COUNT(*) FROM `hosts` " .
|
$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();
|
$records = $STH->fetchColumn();
|
||||||
|
|
||||||
$pages = intdiv($records, $options["tableitems"]) + 1;
|
$pages = intdiv($records, $options["tableitems"]) + 1;
|
||||||
|
|
||||||
/* Get records with limit */
|
/* Get records with limit */
|
||||||
$STH = $pdo->query ("SELECT `host`, `base64`, `base32`, `last_seen` FROM `hosts` " .
|
$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"]);
|
"LIMIT " . $offset . ", " . $options["tableitems"]);
|
||||||
$rows = $STH->fetchAll(PDO::FETCH_ASSOC);
|
$rows = $STH->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user