Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
611 commits
Select commit Hold shift + click to select a range
c7514ad
Bump postcss from 8.4.6 to 8.4.7
dependabot[bot] Feb 26, 2022
3ed3a2b
Use 4em as width for the rate limiting interval
DL6ER Feb 26, 2022
44103b9
Merge pull request #2130 from pi-hole/new/set_rate_limit
yubiuser Feb 26, 2022
6288112
Allow bulk deletion of warnings
rdwebdesign Feb 24, 2022
6545646
Merge pull request #2134 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux Feb 27, 2022
d59afde
Add ability to batch-delete messages
DL6ER Feb 27, 2022
6012271
Be more explicit in API error reporting
DL6ER Feb 27, 2022
0dd9b30
Check decoded string for array
DL6ER Feb 27, 2022
790921a
Hide triangle if all warnings disappeared
DL6ER Feb 27, 2022
b78ba8d
Add documentation link
DL6ER Feb 27, 2022
e614da5
Simplify code by removing duplication of array
DL6ER Feb 27, 2022
bc2647e
New Select/Deselect All button
rdwebdesign Mar 1, 2022
1a42659
Fix horizontal scrollbar for long warning messages
rdwebdesign Mar 1, 2022
0467cb1
Remove array brackets from output
rdwebdesign Mar 1, 2022
4969131
Change wording of status when blocking is disabled
yubiuser Mar 1, 2022
e375759
Addressing reviewer recommendations
rdwebdesign Mar 1, 2022
c610a07
Merge pull request #2136 from pi-hole/offline
yubiuser Mar 1, 2022
a329c4f
Merge pull request #2133 from pi-hole/deleteAll_warnings
yubiuser Mar 2, 2022
c0fcd7d
New icon for Donate menu item
rdwebdesign Mar 3, 2022
33d04df
Merge pull request #2138 from pi-hole/donate_icon
yubiuser Mar 4, 2022
0b7e2e3
New login form layout
rdwebdesign Mar 3, 2022
2d5e973
Fix prettier issues
rdwebdesign Mar 3, 2022
15f9e58
Fix login input visual misalignment (dark theme)
rdwebdesign Mar 5, 2022
1e47277
Font-size calc adjust
rdwebdesign Mar 8, 2022
8563eea
Merge pull request #2139 from pi-hole/new_login_form
rdwebdesign Mar 8, 2022
eed0415
Update ecmaVersion to latest
yubiuser Mar 8, 2022
652bb23
Merge pull request #2140 from pi-hole/update/ecma
yubiuser Mar 9, 2022
84d31da
Calling FTL API directly from PHP
rdwebdesign Feb 16, 2022
b09178f
Undo index.js changes
rdwebdesign Mar 3, 2022
921b5f1
Merge pull request #2126 from pi-hole/test_FTL_API
yubiuser Mar 10, 2022
35c3a89
Change wording after Pi-hole has been disabled
yubiuser Mar 10, 2022
cbed1e5
add link to swap between blocked and all client queries
stuXORstu Mar 10, 2022
5368551
Merge pull request #2141 from pi-hole/fix/offline
yubiuser Mar 11, 2022
fa2df45
Merge pull request #2129 from stuXORstu/feature/showblocked
yubiuser Mar 11, 2022
80868f9
Better interval computation for Long-term data -> Graphics page
rubpa Mar 2, 2022
32aa7ab
Merge pull request #2132 from rubpa/lt_graphics
yubiuser Mar 12, 2022
ea24655
Add colors to debug log
rdwebdesign Mar 11, 2022
01eef9c
Fix prettier
rdwebdesign Mar 12, 2022
d6323d5
Merge pull request #2142 from pi-hole/color_debug_output
PromoFaux Mar 12, 2022
529ddb4
Bump postcss from 8.4.7 to 8.4.8
dependabot[bot] Mar 12, 2022
7c94c13
Merge pull request #2143 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux Mar 13, 2022
2d6a78d
Improving debug log
rdwebdesign Mar 14, 2022
316ad21
Fix prettier
rdwebdesign Mar 15, 2022
7ed501d
Include message triangle on all pages
yubiuser Mar 15, 2022
db63682
Merge pull request #2145 from pi-hole/improve_debug_log
yubiuser Mar 15, 2022
6ab9ef0
Source utils.js in header.php
yubiuser Mar 16, 2022
77c7a12
Start php session before generating output for API token
yubiuser Mar 16, 2022
a9ba338
Fix list add for already forwarded queries
yubiuser Mar 16, 2022
acd70b3
I was blind but now I see!
yubiuser Mar 16, 2022
82188e5
Merge pull request #2148 from pi-hole/fix/already_forwarded
yubiuser Mar 16, 2022
ceb2036
Merge pull request #2147 from pi-hole/buffer_off
yubiuser Mar 16, 2022
72811dd
Merge pull request #2146 from pi-hole/messages_everywhere
yubiuser Mar 16, 2022
cf5e35a
Bump autoprefixer from 10.4.2 to 10.4.4
dependabot[bot] Mar 19, 2022
22ee2ec
Merge pull request #2150 from pi-hole/dependabot/npm_and_yarn/devel/a…
PromoFaux Mar 19, 2022
7e8e1cb
Bump prettier from 2.5.1 to 2.6.0
dependabot[bot] Mar 19, 2022
159ff70
Merge pull request #2152 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux Mar 19, 2022
6e0b010
Bump postcss from 8.4.8 to 8.4.12
dependabot[bot] Mar 19, 2022
5c57e11
Merge pull request #2151 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux Mar 19, 2022
af9a6f3
Merge branch 'devel' into new/nonfatal-dnsmasq-warnings
DL6ER Mar 20, 2022
67aab4b
Merge pull request #2135 from pi-hole/new/nonfatal-dnsmasq-warnings
yubiuser Mar 21, 2022
5c7fa94
Fix PHP "Headers already sent" warning.
rdwebdesign Mar 21, 2022
cce71ba
Merge pull request #2154 from pi-hole/fix_headers_already_sent
yubiuser Mar 21, 2022
44ab80c
Minor visual changes to the menu
rdwebdesign Mar 22, 2022
b7a5bfc
Fixing typo
rdwebdesign Mar 22, 2022
e1a20bb
Merge pull request #2156 from pi-hole/new/menu_icons
rdwebdesign Mar 23, 2022
f90ae05
Sidebar warning count
rdwebdesign Mar 25, 2022
08ea1f9
Bump prettier from 2.6.0 to 2.6.1
dependabot[bot] Mar 26, 2022
f25b2dc
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
1d9b40d
Replace old image button with a simple button
rdwebdesign Mar 28, 2022
6669b4c
Merge pull request #2160 from pi-hole/navbar_donate_button
yubiuser Mar 28, 2022
d9869bf
Add `export` to avoid docker error message
rdwebdesign Mar 31, 2022
df18621
Merge pull request #2161 from pi-hole/fix/docker_1015
yubiuser Apr 1, 2022
7d4e5d7
Merge branch 'devel' into dependabot/npm_and_yarn/devel/prettier-2.6.1
PromoFaux Apr 2, 2022
cd729f8
Merge pull request #2158 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux Apr 2, 2022
e6f7194
Merge branch 'devel' into dependabot/npm_and_yarn/minimist-1.2.6
PromoFaux Apr 2, 2022
933e551
Convert IDNs to punycode before searching the lists
yubiuser Apr 4, 2022
da53e62
Merge pull request #2162 from pi-hole/idn
PromoFaux Apr 4, 2022
2324bf5
Removing the triangle icon
rdwebdesign Apr 6, 2022
2ee6afe
Merge branch 'devel' into sidebar_warnings
rdwebdesign Apr 6, 2022
e0dd58d
Disable prettiers no-else-return rule
yubiuser Apr 7, 2022
338c90d
Merge pull request #2166 from pi-hole/no-else-return
yubiuser Apr 8, 2022
45340aa
Guard socket and FTL response
yubiuser Apr 5, 2022
8cc92c0
Return FTLnotrunning to javascript instead of no response
yubiuser Apr 5, 2022
c75b308
Guard FTL not running when loading the query table
yubiuser Apr 7, 2022
a3c5236
Fix prettier
yubiuser Apr 7, 2022
2903e72
Fix prettier II
yubiuser Apr 7, 2022
6c756c0
Merge pull request #2164 from pi-hole/socket
yubiuser Apr 8, 2022
a5f20e4
spelling
PromoFaux Apr 8, 2022
dc39bbe
Merge pull request #2167 from pi-hole/warnig/live-without-warnig
yubiuser Apr 9, 2022
b47be26
Bump prettier from 2.6.1 to 2.6.2
dependabot[bot] Apr 9, 2022
c9c03dd
Merge pull request #2168 from pi-hole/dependabot/npm_and_yarn/devel/p…
DL6ER Apr 9, 2022
12be6dd
Improve loop for ?getAllQueries from FTL
yubiuser Apr 5, 2022
32d539f
Add proper guarding
yubiuser Apr 5, 2022
434dd02
Fix merge conflicts
yubiuser Apr 11, 2022
4642569
Move exit to the right place
yubiuser Apr 11, 2022
edca3ee
Remove obsolete comment
yubiuser Apr 13, 2022
47fcd87
Merge pull request #2163 from pi-hole/speed/api
yubiuser Apr 13, 2022
521ecd7
Fix visual bugs
rdwebdesign Apr 6, 2022
ad45d76
Return empty array if there is no data
rdwebdesign Apr 13, 2022
93be8ef
Merge pull request #2169 from pi-hole/apidb_smallfix
yubiuser Apr 13, 2022
372ce92
Merge pull request #2165 from pi-hole/sidebar_warnings
yubiuser Apr 14, 2022
cb6d1cc
replace background image jpgs with minimal pngs
dwo Apr 14, 2022
145e65e
Merge pull request #2170 from dwo/png-bg-images
PromoFaux Apr 15, 2022
193498a
Fixed URL typo in README.md
PHPGangsta Apr 20, 2022
fc2ac6e
Merge pull request #2171 from PHPGangsta/patch-1
PromoFaux Apr 20, 2022
a3f04fd
Merge pull request #2159 from pi-hole/dependabot/npm_and_yarn/minimis…
PromoFaux Apr 20, 2022
6c320a4
Merge pull request #2173 from pi-hole/devel
PromoFaux Apr 20, 2022
5ba81a2
Merge pull request #2174 from pi-hole/master
PromoFaux Apr 20, 2022
b209eb6
Using the correct dimensions
rdwebdesign Apr 20, 2022
50261e5
Merge pull request #2176 from pi-hole/fix/svg_size
PromoFaux Apr 21, 2022
58492c9
Add content type header
rdwebdesign Apr 22, 2022
143dcf2
Merge pull request #2179 from pi-hole/fix/getAllQueries_headers
yubiuser Apr 22, 2022
17e59dd
Add codespell.yml
PromoFaux Apr 22, 2022
242654e
Fix some suggestions / ignore others
PromoFaux Apr 22, 2022
fe03f0e
Merge pull request #2182 from pi-hole/new/codespell
yubiuser Apr 22, 2022
f8ab31f
Allow delete multiple items - Group pages
rdwebdesign Apr 21, 2022
d3aafaa
Pass config file path when reloading pihole-FTL.conf
yubiuser Apr 23, 2022
a097d63
Use DEFAULT_FTLCONFFILE
yubiuser Apr 23, 2022
c5cc703
Merge pull request #2183 from pi-hole/reload/privacy
yubiuser Apr 24, 2022
4d6481f
Add QUERY_SPECIAL_DOMAIN as new query status
DL6ER Apr 24, 2022
c4481ca
Review comments
DL6ER Apr 24, 2022
50e61a7
Merge pull request #2185 from pi-hole/new/query_special_domain
yubiuser Apr 24, 2022
9113471
Fix dropdown background color (dark theme)
rdwebdesign Apr 26, 2022
0e04ba0
Show "other" destination as the last graphic item
rdwebdesign Apr 26, 2022
a04fb0b
Fix prettier
rdwebdesign Apr 26, 2022
83ff9a9
Fix `xo`
rdwebdesign Apr 26, 2022
08c5b7a
Merge pull request #2188 from pi-hole/fix/dropdown
yubiuser Apr 26, 2022
67b63ff
Merge pull request #2189 from pi-hole/fix/other
yubiuser Apr 26, 2022
fae9e4b
Added information about group assignment of whitelisted/blacklisted d…
martinbrose Apr 28, 2022
9a019a6
Applying the reviewer's suggestions
rdwebdesign Apr 30, 2022
67cece6
Fix `data.columns` ID replaced by mistake
rdwebdesign Apr 30, 2022
a4bd5d0
Quote SQL reserved word and fix javascript output.
rdwebdesign Apr 30, 2022
89fdc7e
Remove unused variable
rdwebdesign Apr 30, 2022
63a87dc
Only remove last data point for line charts as it is not representati…
DL6ER May 1, 2022
e19bbc7
Scale axes to integer
yubiuser May 1, 2022
772944f
Merge pull request #2196 from pi-hole/integer_only
DL6ER May 1, 2022
74e506c
Only remove last data point for line charts as it is not representati…
yubiuser May 1, 2022
c3b2004
Merge pull request #2197 from pi-hole/tweak/overtime2
DL6ER May 2, 2022
b44acd5
Reduce border size of line charts
yubiuser May 2, 2022
a2cb682
Fixing weird bug
rdwebdesign May 7, 2022
f0bd5d7
Fixing minor inconsistencies
rdwebdesign May 7, 2022
042b546
Merge pull request #2177 from pi-hole/bulk_delete_groups
yubiuser May 7, 2022
f8972ff
Merge pull request #2198 from pi-hole/zeroLineColor
yubiuser May 7, 2022
e2e3b07
Remove duplicate function declarations
rdwebdesign May 11, 2022
0327e4f
Merge pull request #2201 from pi-hole/clean_duplicate_functions
yubiuser May 12, 2022
cc2ca3f
/var/log/ -> /var/log/pihole/
PromoFaux Sep 5, 2020
7fb8f94
Add missing columns `reply_type`, `reply_time`, `dnssec`
rdwebdesign May 15, 2022
ba18ece
Fix multiplier (`reply_time` field unit is second)
rdwebdesign May 15, 2022
9d225ed
Fix prettier
rdwebdesign May 15, 2022
e6dc3a0
Using global `utils.showAlert` function
rdwebdesign May 16, 2022
d0b9588
Fix prettier
rdwebdesign May 16, 2022
7cb2231
Removing old function call
rdwebdesign May 16, 2022
d12ec5f
Clean text fields after success.
rdwebdesign May 17, 2022
e9f638a
Keep field values when deleting + Fix typo
rdwebdesign May 17, 2022
9a8f5cb
Merge pull request #2203 from pi-hole/fix/issue1357
yubiuser May 19, 2022
522d05a
Bump xo from 0.48.0 to 0.49.0
dependabot[bot] May 21, 2022
3d42934
Remove unused case
yubiuser May 21, 2022
0ee2534
Remove empty line before PHP opening tag
rdwebdesign May 22, 2022
70dbb94
Merge pull request #2208 from pi-hole/fix_empty_line
yubiuser May 22, 2022
e2e9925
Merge pull request #2205 from pi-hole/dependabot/npm_and_yarn/devel/x…
yubiuser May 22, 2022
2053b3d
Bump postcss from 8.4.12 to 8.4.14
dependabot[bot] May 22, 2022
68e94a9
Merge pull request #2206 from pi-hole/dependabot/npm_and_yarn/devel/p…
PromoFaux May 23, 2022
4795aaf
Bump autoprefixer from 10.4.4 to 10.4.7
dependabot[bot] May 23, 2022
3d1b8e7
Merge pull request #2199 from pi-hole/dependabot/npm_and_yarn/devel/a…
PromoFaux May 23, 2022
db8ccf4
Drop IE 11
yubiuser May 24, 2022
7cfca50
Remove unused eslint compat rule
yubiuser May 24, 2022
2b1021f
Remove repo specific PR template
yubiuser May 24, 2022
b954f62
Merge pull request #2210 from pi-hole/no_IE11
dschaper May 24, 2022
a75e8fc
Also check wildcard domains for validity before adding
yubiuser May 26, 2022
98a0e82
Replace `queries` with `query_storage`
rdwebdesign May 28, 2022
6300c55
Change lighttpd log file names
yubiuser May 29, 2022
da85d1b
Use IP if there is no client name
rdwebdesign May 29, 2022
2dd5fb8
Fix DNSSEC info
rdwebdesign May 29, 2022
fad13b1
Fixing prettier line break
rdwebdesign May 30, 2022
cd41520
Use the same types, as returned by FTL
rdwebdesign May 30, 2022
56d725d
Merge pull request #2213 from pi-hole/lighttpd_logs
yubiuser May 30, 2022
4a02243
Make it clearer where to find the debug token
yubiuser May 31, 2022
33c5450
Use consistent output for both query lists
rdwebdesign May 31, 2022
ffaad6d
Merge pull request #2202 from pi-hole/fix/issue2149
yubiuser May 31, 2022
ab2d473
Merge pull request #2215 from pi-hole/debug_kitten
yubiuser May 31, 2022
89608e1
Merge pull request #1577 from pi-hole/tweak/moveloglocation
yubiuser May 31, 2022
730b6b0
Use the correct endpoint for MAXLOGAGE
rdwebdesign Jun 1, 2022
37baf60
Merge pull request #2216 from pi-hole/fix/maxlogage
yubiuser Jun 1, 2022
eaef6f8
Show suggested domains in group domains page
anthony-de-jong May 23, 2022
9e477f2
Merge pull request #2209 from anthony-de-jong/feat-suggest-domains
yubiuser Jun 2, 2022
5e46f5e
Fix possible XSS in `queryads.php`
rdwebdesign Jun 2, 2022
dac8138
Base DHCP settings on default gateway address and not on IPV4_ADDRESS…
yubiuser Jun 4, 2022
fbc37b9
Do not use IPvX from setupVars in
yubiuser Jun 4, 2022
d99fc93
Fix indention
yubiuser Jun 6, 2022
a4ebb5b
Remove unnecessary else case
yubiuser Jun 6, 2022
e2d52c7
Merge pull request #2219 from pi-hole/remove/IPvX_setupVars
DL6ER Jun 6, 2022
0ff11d6
Omit DHCPdomain
yubiuser Jun 6, 2022
1317528
Add a default option for PORTFILE
rdwebdesign Jun 8, 2022
8465946
Merge pull request #2222 from pi-hole/fix2221
yubiuser Jun 8, 2022
0ccf727
Use API gateway endpoint
yubiuser Jun 8, 2022
30cbfb1
Remove unnecessary requirement
yubiuser Jun 10, 2022
1c023b2
Bump xo from 0.49.0 to 0.50.0
dependabot[bot] Jun 11, 2022
a65611c
Merge pull request #2218 from pi-hole/gateway
yubiuser Jun 11, 2022
ff35044
Use simpler logic
yubiuser Jun 12, 2022
6034cb5
Merge pull request #2223 from pi-hole/dependabot/npm_and_yarn/devel/x…
PromoFaux Jun 12, 2022
f302742
Update dependabot.yml
PromoFaux Jun 12, 2022
1d1a804
Merge pull request #2224 from pi-hole/PromoFaux-patch-1
PromoFaux Jun 12, 2022
920dc5b
Merge pull request #2212 from pi-hole/valid_wildtype
PromoFaux Jun 12, 2022
e174796
Fix part of issue pi-hole/FTL#1319
Pingger Jun 13, 2022
9208c85
Merge pull request #2225 from Pingger/patch-1
PromoFaux Jun 16, 2022
67ec363
Bump prettier from 2.6.2 to 2.7.1
dependabot[bot] Jun 18, 2022
516907e
Merge pull request #2226 from pi-hole/dependabot/npm_and_yarn/devel/p…
yubiuser Jun 20, 2022
25c5fe2
Upgrade stale action to v5
yubiuser Jun 24, 2022
59182ca
Add stale-issue-reason
yubiuser Jun 24, 2022
911cc08
Add github-action to dependabot
yubiuser Jun 24, 2022
562f826
Merge pull request #2211 from pi-hole/PR_Template
PromoFaux Jun 24, 2022
d727fdf
Merge pull request #2227 from pi-hole/stale_v5
PromoFaux Jun 24, 2022
61b02cb
Merge pull request #2228 from pi-hole/stale_reason
PromoFaux Jun 24, 2022
cbbcae6
Merge pull request #2230 from pi-hole/master
PromoFaux Jun 24, 2022
6ad34cb
Merge pull request #2229 from pi-hole/dependabot/actions
PromoFaux Jun 24, 2022
718ace5
Adjust debug log scroll position
rdwebdesign Jun 25, 2022
594aeea
Add .editorconfig
yubiuser Jun 24, 2022
b95a6b0
Merge pull request #2231 from pi-hole/editorconfig
PromoFaux Jun 26, 2022
a9232c0
Merge pull request #2232 from pi-hole/adjust_scroll
PromoFaux Jun 26, 2022
9479dcd
Add yml editorconfig style
yubiuser Jun 26, 2022
408c932
Add editorconfig-checker action workflow
yubiuser Jun 26, 2022
9331473
Merge pull request #2233 from pi-hole/editorconfig-checker
yubiuser Jun 27, 2022
245583c
Remove unused parameter
rdwebdesign Jun 27, 2022
3f5e1ad
Merge pull request #2235 from pi-hole/clean_pihole_execute
yubiuser Jun 27, 2022
088117a
Adjust .editorconfig to avoid warning messages
rdwebdesign Jun 28, 2022
791c264
Merge pull request #2236 from pi-hole/fix/editorconfig
yubiuser Jun 28, 2022
a8aaebc
Remove old debug output
rdwebdesign Jun 28, 2022
715fc84
Merge pull request #2237 from pi-hole/remove_old_debug
yubiuser Jun 29, 2022
1f40650
Add stickler-CI to test yaml and mkdowm files
yubiuser Jun 29, 2022
ced12e9
Exclude vendor files from stickler check
yubiuser Jun 29, 2022
5e02c62
Merge pull request #2238 from pi-hole/add_stickler
yubiuser Jun 29, 2022
532c8e3
Bump postcss-cli from 9.1.0 to 10.0.0
dependabot[bot] Jul 2, 2022
b39b21c
Merge pull request #2240 from pi-hole/dependabot/npm_and_yarn/devel/p…
yubiuser Jul 2, 2022
57336c8
Switch to node 16.x
yubiuser Jul 2, 2022
5133ee9
Merge pull request #2241 from pi-hole/node16
yubiuser Jul 2, 2022
0b121dd
Run stale workflow at 8:00 once per day
yubiuser Jul 3, 2022
047ef71
Merge pull request #2243 from pi-hole/less_stale
DL6ER Jul 3, 2022
2d526a5
Change FTL's default log file path from /var/log/pihole/pihole-FTL.lo…
DL6ER Jul 3, 2022
032d0db
Merge pull request #2244 from pi-hole/tweak/default_log_path
yubiuser Jul 3, 2022
0caa8bd
Use a random name when creating intermediat archive for teleporter
yubiuser Jul 2, 2022
7acc7d8
Merge pull request #2242 from pi-hole/teleporter_tmp
yubiuser Jul 4, 2022
295fbf1
Show names in top clients list from long-term data
yubiuser Jul 4, 2022
6e7c221
Address reviewer's comment
yubiuser Jul 4, 2022
66e141c
Merge pull request #2245 from pi-hole/db_toplist_names
yubiuser Jul 4, 2022
387507f
Fix close-issue-reason
yubiuser Jul 5, 2022
02e9f70
Merge pull request #2246 from pi-hole/fix/stale_reason
yubiuser Jul 5, 2022
da0b905
Add yamllint config, fix some indentation
PromoFaux Jul 7, 2022
803a42f
Merge pull request #2249 from pi-hole/stickler
PromoFaux Jul 7, 2022
b07372b
Merge pull request from GHSA-cfr5-rqm5-9vhp
PromoFaux Jul 7, 2022
1714b08
Merge pull request #2248 from pi-hole/devel
PromoFaux Jul 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ede
EDE
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# EditorConfig is awesome: https://editorconfig.org/

# top-most EditorConfig file
root = true

# A newline ending every file
[*]
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true

[*.css]
indent_style = space
indent_size = 2

[scripts/**.js]
indent_style = space
indent_size = 2

[package.json]
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2
32 changes: 0 additions & 32 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

2 changes: 2 additions & 0 deletions .github/dco.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require:
members: false
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@ updates:
versions:
- 10.2.3
- 10.2.4
reviewers:
- "pi-hole/web-maintainers"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: saturday
time: "10:00"
open-pull-requests-limit: 10
target-branch: devel
reviewers:
- "pi-hole/web-maintainers"
7 changes: 7 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog:
exclude:
labels:
- internal
authors:
- dependabot
- github-actions
20 changes: 20 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Codespell

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
spell-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v3
-
name: Spell-Checking
uses: codespell-project/actions-codespell@master
with:
ignore_words_file: .codespellignore
skip: ./scripts/vendor,./style/vendor
14 changes: 14 additions & 0 deletions .github/workflows/editorconfig-checker
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: editorconfig-checker

on:
pull_request:
push:

jobs:
build:
name: editorconfig-checker
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
8 changes: 8 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Change PHP version
run: |
sudo update-alternatives --set php /usr/bin/php8.0
sudo update-alternatives --set phar /usr/bin/phar8.0
sudo update-alternatives --set phpdbg /usr/bin/phpdbg8.0
sudo update-alternatives --set php-cgi /usr/bin/php-cgi8.0
sudo update-alternatives --set phar.phar /usr/bin/phar.phar8.0
php -version
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mark stale issues

on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 5
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days.'
stale-issue-label: 'stale'
exempt-issue-labels: 'internal, Fixed In Next Release, Bug'
exempt-all-issue-assignees: true
operations-per-run: 300
close-issue-reason: 'not_planned'
27 changes: 27 additions & 0 deletions .github/workflows/sync-back-to-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync Back to Development

on:
push:
branches:
- master

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FROM_BRANCH: 'master'
TO_BRANCH: 'devel'
- name: Label the pull request to ignore for release note generation
uses: actions-ecosystem/action-add-labels@v1
with:
labels: internal
repo: ${{ github.repository }}
number: ${{ steps.pull.outputs.PULL_REQUEST_NUMBER }}
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ on:
- "**"

env:
CI: true
FORCE_COLOR: 2

jobs:
run:
name: Node ${{ matrix.node }}
name: Node
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "12.x"
node-version: "16.x"
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test
run: npm run testpr
9 changes: 9 additions & 0 deletions .stickler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
linters:
yamllint:
config: ./.yamllint.conf
remarklint:
files:
ignore:
- 'scripts/vendor/*'
- 'style/vendor/*'
2 changes: 0 additions & 2 deletions .user.php.ini

This file was deleted.

3 changes: 3 additions & 0 deletions .yamllint.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
line-length: disable
document-start: disable
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ The Web interface is enabled by default when you install Pi-hole.

There are several ways to [access the dashboard](https://discourse.pi-hole.net/t/how-do-i-access-pi-holes-dashboard-admin-interface/3168):

1. `http://<IP_ADDPRESS_OF_YOUR_PI_HOLE>/admin/`
2. `http:/pi.hole/admin/` (when using Pi-hole as your DNS server)
1. `http://<IP_ADDRESS_OF_YOUR_PI_HOLE>/admin/`
2. `http://pi.hole/admin/` (when using Pi-hole as your DNS server)
3. `http://pi.hole/` (when using Pi-hole as your DNS server)

Once logged in (forgot your password?), you can view your network stats to see things like:
Expand All @@ -46,7 +46,7 @@ Once logged in (forgot your password?), you can view your network stats to see t

## Pi-hole is free, but powered by your support

There are many reoccurring costs involved with maintaining free, open source, and privacy respecting software; expenses which [our volunteer developers](https://github.com/orgs/pi-hole/people) pitch in to cover out-of-pocket. This is just one example of how strongly we feel about our software, as well as the importance of keeping it maintained.
There are many reoccurring costs involved with maintaining free, open source, and privacy-respecting software; expenses which [our volunteer developers](https://github.com/orgs/pi-hole/people) pitch in to cover out-of-pocket. This is just one example of how strongly we feel about our software, as well as the importance of keeping it maintained.

Make no mistake: **your support is absolutely vital to help keep us innovating!**

Expand All @@ -73,7 +73,7 @@ If you'd rather not [donate](https://pi-hole.net/donate/) (_which is okay!_), th

We welcome _everyone_ to contribute to issue reports, suggest new features, and create pull requests.

If you have something to add - anything from a typo through to a whole new feature, we're happy to check it out! Just make sure to fill out our template when submitting your request; the questions that it asks will help the volunteers quickly understand what you're aiming to achieve.
If you have something to add - anything from a typo through to a whole new feature - we're happy to check it out! Just make sure to fill out our template when submitting your request; the questions that it asks will help the volunteers quickly understand what you're aiming to achieve.

### Presentations about Pi-hole

Expand Down
92 changes: 61 additions & 31 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,10 @@
require_once("scripts/pi-hole/php/auth.php");
check_cors();

$FTL_IP = "127.0.0.1";

$data = array();

// Common API functions
if (isset($_GET['status']))
{
$pistatus = pihole_execute('status web');
if(isset($pistatus[0]))
{
$pistatus = $pistatus[0];
}
else
{
$pistatus = null;
}
if ($pistatus === "1")
{
$data = array_merge($data, array("status" => "enabled"));
}
else
{
$data = array_merge($data, array("status" => "disabled"));
}
}
elseif (isset($_GET['enable']) && $auth)
{
if (isset($_GET['enable']) && $auth) {
if(isset($_GET["auth"]))
{
if($_GET["auth"] !== $pwhash)
Expand Down Expand Up @@ -160,17 +137,70 @@

return;
}
elseif(isset($_GET['customdns']) && $auth)
{
if (isset($_GET["auth"])) {
if ($_GET["auth"] !== $pwhash) {
die("Not authorized!");
}
} else {
// Skip token validation if explicit auth string is given
check_csrf($_GET['token']);
}

switch ($_GET["action"]) {
case 'get':
$data = echoCustomDNSEntries();
break;

case 'add':
$data = addCustomDNSEntry();
break;

case 'delete':
$data = deleteCustomDNSEntry();
break;

default:
die("Wrong action");
}
}
elseif(isset($_GET['customcname']) && $auth)
{
if (isset($_GET["auth"])) {
if ($_GET["auth"] !== $pwhash) {
die("Not authorized!");
}
} else {
// Skip token validation if explicit auth string is given
check_csrf($_GET['token']);
}

switch ($_GET["action"]) {
case 'get':
$data = echoCustomCNAMEEntries();
break;

case 'add':
$data = addCustomCNAMEEntry();
break;

case 'delete':
$data = deleteCustomCNAMEEntry();
break;

default:
die("Wrong action");
}
}

// Other API functions
require("api_FTL.php");

header('Content-type: application/json');
if(isset($_GET["jsonForceObject"]))
{
echo json_encode($data, JSON_FORCE_OBJECT);
}
else
{
echo json_encode($data);
if(isset($_GET["jsonForceObject"])) {
echo json_encode($data, JSON_FORCE_OBJECT);
} else {
echo json_encode($data);
}
?>
Loading