Commit Graph

93 Commits

Author SHA1 Message Date
DL6ER
c9a7d5df8e Addressing review comments.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-11-14 15:06:45 -03:00
RD WebDesign
d47efd1041 Add codes 15 and 16 to the blocked count
- 15: Blocked (database is busy)
- 16: Blocked (special domain)

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-30 19:50:15 -03:00
RD WebDesign
7c2dbf4662 Remove forgotten comment
Co-authored-by: yubiuser <ckoenig@posteo.de>
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-30 18:48:37 -03:00
RD WebDesign
169d087eaf Use a single SQL command to retrieve (and synchronize) domains and blocked queries.
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-29 23:52:59 -03:00
RD WebDesign
c09b23b663 Adding zeros to avoid line/area graph errors with there are gaps on the data
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-29 16:55:00 -03:00
RD WebDesign
d658965abc Don't fill the all slots with zeros
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-09-26 14:41:09 -03:00
yubiuser
38c5fba920 Rename status to excludeStatus
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>
Signed-off-by: yubiuser <ckoenig@posteo.de>
2022-09-16 19:57:21 +02:00
Christian König
58f8738907 Reverse logic of in/exlcudin queries from long-term database and rename queryType => statusType
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-09-16 13:04:51 +02:00
RD WebDesign
509113296c Move login form to a new page
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-08-12 18:04:57 -03:00
DL6ER
6a39cc3b4a Disable Yoda style
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-08-12 18:55:27 +02:00
DL6ER
97a76669a2 Explicitly set blank_line_before_statement to exclude include* and require*
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-08-07 20:55:02 +02:00
DL6ER
6ec4b8a529 Run PHP-CS-Fixer on all files
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-08-07 12:04:03 +02:00
RD WebDesign
2bc918ad6e Use 4 spaces to indent PHP files.
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-08-01 01:18:26 -03:00
Christian König
af05eb4b89 Remove unused client_id
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-07-16 14:43:41 +02:00
yubiuser
6e7c221d3d Address reviewer's comment
Co-authored-by: RD WebDesign <github@rdwebdesign.com.br>

Signed-off-by: yubiuser <ckoenig@posteo.de>
2022-07-04 22:51:06 +02:00
Christian König
295fbf117a Show names in top clients list from long-term data
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-07-04 20:45:51 +02:00
Adam Warner
9208c85415 Merge pull request #2225 from Pingger/patch-1
Show warning triangle only if logged in
2022-06-16 07:04:31 +01:00
Pingger Shikkoken
e1747964c4 Fix part of issue pi-hole/FTL#1319
Signed-off-by: Pingger Shikkoken <Pingger@users.noreply.github.com>
2022-06-13 13:41:53 +02:00
RD WebDesign
da85d1b4e7 Use IP if there is no client name
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-05-29 17:48:59 -03:00
RD WebDesign
98a0e82946 Replace queries with query_storage
- use client names, when available;
- use column names instead of indexes;

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-05-28 18:40:23 -03:00
RD WebDesign
7fb8f94ea3 Add missing columns reply_type, reply_time, dnssec
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-05-15 19:11:26 -03:00
RD WebDesign
ad45d764b1 Return empty array if there is no data
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-04-13 15:56:11 -03:00
DL6ER
af9a6f3444 Merge branch 'devel' into new/nonfatal-dnsmasq-warnings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-03-20 09:00:57 +01:00
rubpa
80868f9a47 Better interval computation for Long-term data -> Graphics page
Signed-off-by: rubpa <rubpa@users.noreply.github.com>
2022-03-12 07:55:44 +05:30
DL6ER
8b8341ba36 Also hide non-fatal messages in the table
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-02-26 11:02:13 +01:00
DL6ER
21964cfd7f Add per-browser setting to ignore non-fatal dnsmasq warnings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-02-26 10:53:45 +01:00
RD WebDesign
28dbb2ab4f Improved loop for getAllQueries
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-02-09 02:44:12 -03:00
Christian König
0387377bc8 Do not try to resolve hostname of clients in long-term data
Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-22 13:20:17 +02:00
yubiuser
e9ab7cfa08 Fix require func.php
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-08-01 19:36:07 +02:00
DL6ER
03920e3595 Move validation functions into func.php and use the same validation in all cases.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-07-25 16:59:16 +02:00
yubiuser
6c41ab8c20 Status in lowercase
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-02-19 19:53:02 +01:00
yubiuser
1acb0b440a Inlcud new query types in long term graph and top lists
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-02-19 06:54:58 +01:00
DL6ER
fa2279d473 Add SVCB and HTTPS types and reduce code duplication
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-12-31 10:54:01 +01:00
Adam Warner
62ac184116 replace "~" by " " in getAllQueries response
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-12-23 18:42:51 +00:00
DL6ER
4ee491115a Show upstream destination a query was sent to in the Query Log (both standard and long-term)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-11-13 01:01:49 +01:00
DL6ER
a901489a96 Merge branch 'devel' into new/mac_clients
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-05 22:24:17 +02:00
DL6ER
e7eec95ba4 Use all the new Pi-hole v5.0 blocking status code also in the long-term data where it was forgotten to add them.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 10:03:32 +02:00
DL6ER
eb3c672545 Show explicitly which hostname belongs to which IP address when hovering over the hostnames. Note that the IP addresses and host names were already in the same order, before.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-27 19:59:53 +02:00
DL6ER
450c912d18 Add support for FTL DB version 8 in the API (host names stored in the network_addresses table).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-18 14:19:44 +02:00
DL6ER
b0f54f5451 Add new Pi-hole diagnostics page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:21 +03:00
DL6ER
fe10059517 Finalize sub-queries to ensure we're not running out of memory with hundreds of clients (can result in O(N^2) memory requirements).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-14 18:43:35 +02:00
DL6ER
3e1a1f59aa Add support for multiple hostnames per client (hardware address).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-14 18:43:35 +02:00
DL6ER
00040d4372 Fill missing time intervals with zero
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-04-24 10:10:55 +02:00
DL6ER
ba4d974fb4 Add support for new NAPTR query type
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-03-17 23:03:59 +00:00
DL6ER
306b0b94a9 Merge pull request #1098 from pi-hole/tweak/graphs
Change over-time graphs from line to stacked bar representation
2019-12-28 16:46:41 +01:00
DL6ER
aca6461468 Change over-time graphs from line to stacked bar representation. This is much more natural for this kind of data. Also, improve DB graphs to always generate a meaningful display (always generate about 200 bars). This graph was basically unusable when specifying a larger range than, say, one week.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-18 13:22:33 +00:00
DL6ER
600c16c269 Add Client group management
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-12-13 14:40:29 +00:00
DL6ER
4d1beeb8bf UTF-8 encode all strings read from the database before JSON-encoding them
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-11-02 10:20:18 +01:00
DL6ER
2e2896add3 Merge pull request #964 from pi-hole/new/networktable_ip_neigh
Add IPv6 support for network table
2019-07-04 11:44:10 +02:00
Mark Drobnak
392802687d Merge pull request #900 from pi-hole/tweak/long_term_data_padding
Always show the full requested range in the long-term API results
2019-06-16 17:32:22 -04:00