Commit Graph

107 Commits

Author SHA1 Message Date
DL6ER
2b333ff2ab Give IP and hostname to Query Log page if resolveIP feature is enabled for Top Clients 2016-12-27 22:50:24 +00:00
DL6ER
1009dba240 100% non-blocking using our awesome API 2016-12-23 13:39:29 +01:00
DL6ER
2b2c3bbf27 Merge pull request #264 from pi-hole/overhaulGetBlockesQueries
New logic for API functions getBlockedQueries() and countBlockedQueries()
2016-12-23 11:52:30 +01:00
DL6ER
41cd38256d Merge branch 'devel' into clienthosts
Conflicts:
	data.php
2016-12-22 19:36:23 +01:00
DL6ER
a1d8874ea3 Merge branch 'devel' into overhaulGetBlockesQueries 2016-12-22 16:45:09 +01:00
Mcat12
c530e58eb9 Remove unnecssary import
When api.php imports data, it already has imported func.php
2016-12-21 12:31:08 -05:00
Mcat12
977c026868 Use checkfile on get.php
Move checkfile to funcs.php to be used by more scripts
2016-12-21 12:24:48 -05:00
DL6ER
6da7d9eaa4 Merge branch 'devel' into checkfilesbeforereading 2016-12-21 17:40:17 +01:00
DL6ER
e188cb6fbc Revert "Merge pull request #267 from pi-hole/folderStructure"
This reverts commit fba3d10fa4, reversing
changes made to 4ee75f4167.
2016-12-21 17:16:52 +01:00
DL6ER
ef9e5cb9bd Merge branch 'devel' into overhaulGetBlockesQueries 2016-12-20 23:24:05 +01:00
DL6ER
815c4a7173 make function getBlockedQueries(\SplFileObject $log) compatible with extra logging format of dnsmasq 2016-12-20 23:23:41 +01:00
DL6ER
b01d8293db Improved comments 2016-12-20 21:40:19 +01:00
DL6ER
d89fb7a0e0 Have to modify the correct array for this to work... 2016-12-20 21:38:51 +01:00
DL6ER
be5a6cb5df Use only one array, no additional loops 2016-12-20 21:31:49 +01:00
DL6ER
b298f1ab06 Loop over $whiteList, simplified code slightly 2016-12-20 21:19:49 +01:00
Mcat12
f9a601c5b0 Avoid array_merge
Simply unset and set when applying whitelist and blacklist
2016-12-20 13:38:42 -05:00
Mcat12
4b7f20cfae Take into account the whitelist and blacklist 2016-12-20 13:11:15 -05:00
DL6ER
bb2c2e2244 Moved more private files out of the root directory 2016-12-20 12:52:19 +01:00
DL6ER
10ef50a6eb Removed another $hostname = ... 2016-12-19 11:59:09 +01:00
DL6ER
c04c8f93a0 Don't need to get $hostname anymore 2016-12-19 11:56:06 +01:00
DL6ER
2d7ef8fd9a == to === 2016-12-19 11:46:25 +01:00
DL6ER
a30d8918c4 Removed preg_replace 2016-12-19 11:43:59 +01:00
DL6ER
42e9644a3f Greatly simplified function countBlockedQueries() 2016-12-19 11:38:04 +01:00
DL6ER
5cbc20f477 Simplified function getBlockedQueries() 2016-12-19 11:36:58 +01:00
DL6ER
da12f6f16d Change the "none" to "nothing" 2016-12-19 10:44:04 +01:00
Promofaux
70a8eee23a nothing to see here... 2016-12-19 09:19:16 +00:00
Adam Warner
83f17c180e Dear Adam, When you refactor part of a function out to another function.. remember to call it from the original function. It will not work if you do not. Kind Regards, Adam. 2016-12-15 11:01:20 +00:00
Adam Warner
b036b75d29 reduce complexity of getAllQueries 2016-12-15 10:45:15 +00:00
Adam Warner
9874708b1e Merge pull request #243 from pi-hole/fixTheQueryLog
check if domain is blocked or not by checking it against list.preEven…
2016-12-14 19:07:30 +00:00
DL6ER
bc462626e1 Remove unused variable 2016-12-14 13:33:27 +01:00
DL6ER
52a2e65875 New gravity count logic 2016-12-14 13:27:10 +01:00
DL6ER
e59e126453 Speed up function getGravityDomains() 2016-12-14 11:37:50 +01:00
DL6ER
bbdb675d7b Reimplement API_QUERY_LOG_SHOW actions + remove obsolete if statement 2016-12-14 10:34:13 +01:00
Promofaux
a3316f9fe7 check if domain is blocked or not by checking it against list.preEventHorizon 2016-12-13 23:13:16 +00:00
DL6ER
6f780ab5fe Check for flag none 2016-12-12 22:15:39 +01:00
DL6ER
621c8083c8 Apply API_QUERY_LOG_SHOW to API result 2016-12-12 13:37:58 +01:00
DL6ER
19573aece7 Merge pull request #232 from pi-hole/excludedomains
Be able to exclude certain domains / clients
2016-12-11 20:24:29 +01:00
DL6ER
0ac06710c1 Renamed variables since they do not only affect the webUI but the whole API 2016-12-11 19:31:57 +01:00
DL6ER
158704de92 Extended to Top Clients 2016-12-09 15:42:03 +01:00
DL6ER
5e61c9c814 Generalized function 2016-12-09 15:40:57 +01:00
DL6ER
57e814a5ee Added function excludeDomainsfromList($array) 2016-12-09 15:38:50 +01:00
Björn Bohman
22a99bdbcf Let getAllQueries() return ordered JSON hash.
Make getAllQueries() take an optionally argument that can be any of:

* orderByClientDomainTime
* orderByClientTimeDomain
* orderByTimeClientDomain
* orderByTimeDomainClient
* orderByDomainClientTime
* orderByDomainTimeClient
* ANY THING ELSE

If argument is one of orderBy* make getAllQueries() return with JSON
hash that is structured by the way the argument sets.

This does not break the originally function of getAllQueries() and is backwards compatible.
2016-12-08 10:58:42 +01:00
DL6ER
9179a20fa2 Don't show " read " 2016-12-06 08:39:24 +01:00
DL6ER
bc8ac73cfa Made gravityCount() faster 2016-12-05 13:40:56 +01:00
DL6ER
6b1d6d19ac Add function countBlockedQueries() 2016-12-05 13:30:24 +01:00
DL6ER
0a9a55fe3a Improve speed of getSummaryData() 2016-12-05 13:07:36 +01:00
DL6ER
6ba4d591af Merge branch 'devel' into moredetailedgraph 2016-11-17 11:03:41 +01:00
DL6ER
fa220266e0 Merge branch 'devel' into moredetailedgraph 2016-11-17 10:56:00 +01:00
Adam Warner
894ae02b94 Update data.php
Reflect var name changes in development branch of pihole
2016-11-16 21:32:48 +00:00
Mcat12
38fae41608 Merge pull request #194 from DL6ER/queryblacklist
Add possibility to black-/whitelist entries on the Queries page.
2016-11-14 07:08:09 -05:00