Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.13 Release #2248

Merged
merged 136 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
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
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
911cc08
Add github-action to dependabot
yubiuser 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
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
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"
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
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Mark stale issues

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

jobs:
Expand All @@ -23,4 +23,4 @@ jobs:
exempt-issue-labels: 'internal, Fixed In Next Release, Bug'
exempt-all-issue-assignees: true
operations-per-run: 300
stale-issue-reason: 'not_planned'
close-issue-reason: 'not_planned'
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "16.x"
cache: npm

- name: Install npm dependencies
Expand Down
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/*'
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
5 changes: 4 additions & 1 deletion api_FTL.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

if (isset($_GET["getMaxlogage"]) && $auth) {
$return = callFTLAPI("stats");
$return = callFTLAPI("maxlogage");
if (array_key_exists("FTLnotrunning", $return)) {
$data = array("FTLnotrunning" => true);
} else {
Expand Down Expand Up @@ -306,6 +306,9 @@
if (array_key_exists("FTLnotrunning", $return)) {
$data = array("FTLnotrunning" => true);
} else {
// Set the header
header('Content-type: application/json');

// Start the JSON string
echo '{"data":[';
$first = true;
Expand Down
43 changes: 33 additions & 10 deletions api_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,20 @@
{
$from = intval($_GET["from"]);
$until = intval($_GET["until"]);
$dbquery = "SELECT timestamp, type, domain, client, status, forward FROM queries WHERE timestamp >= :from AND timestamp <= :until ";

// Use table "query_storage"
// - replace domain ID with domain
// - replace client ID with client name
// - replace forward ID with forward destination
$dbquery = "SELECT timestamp, type,";
$dbquery .= " CASE typeof(domain) WHEN 'integer' THEN (SELECT domain FROM domain_by_id d WHERE d.id = q.domain) ELSE domain END domain,";
$dbquery .= " CASE typeof(client) WHEN 'integer' THEN (";
$dbquery .= " SELECT CASE TRIM(name) WHEN '' THEN c.ip ELSE c.name END name FROM client_by_id c WHERE c.id = q.client";
$dbquery .= " ) ELSE client END client,";
$dbquery .= " CASE typeof(forward) WHEN 'integer' THEN (SELECT forward FROM forward_by_id f WHERE f.id = q.forward) ELSE forward END forward,";
$dbquery .= " status, reply_type, reply_time, dnssec";
$dbquery .= " FROM query_storage q";
$dbquery .= " WHERE timestamp >= :from AND timestamp <= :until ";
if(isset($_GET["types"]))
{
$types = $_GET["types"];
Expand Down Expand Up @@ -93,22 +106,28 @@

if (!is_bool($results)) {
$first = true;
while ($row = $results->fetchArray()) {
while ($row = $results->fetchArray(SQLITE3_ASSOC)) {
// Insert a comma before the next record (except on the first one)
if (!$first) {
echo ",";
} else {
$first = false;
}

// Convert query type ID to name, encode domain, encode destination
$query_type = getQueryTypeStr($row[1]);
$domain = utf8_encode(str_replace("~"," ",$row[2]));
$destination = utf8_encode($row[5]);
// Format, encode, transform each field (if necessary).
$time = $row["timestamp"];
$query_type = getQueryTypeStr($row["type"]); // Convert query type ID to name
$domain = utf8_encode(str_replace("~"," ",$row["domain"]));
$client = $row["client"];
$status = $row["status"];
$destination = utf8_encode($row["forward"]);
$reply_type = $row["reply_type"];
$reply_time = $row["reply_time"];
$dnssec = $row["dnssec"];
$client_id = $row["client_id"];

// Insert into array and output it in JSON format
// array: time type domain client status upstream destination
echo json_encode([$row[0], $query_type, $domain, $row[3], $row[4], $destination]);
echo json_encode([$time, $query_type, $domain, $client, $status, $destination, $reply_type, $reply_time, $dnssec]);
}
}

Expand Down Expand Up @@ -139,7 +158,11 @@
{
$limit = "WHERE timestamp <= :until";
}
$stmt = $db->prepare('SELECT client,count(client) FROM queries '.$limit.' GROUP by client order by count(client) desc limit 20');
$dbquery = "SELECT CASE typeof(client) WHEN 'integer' THEN (";
$dbquery .= " SELECT CASE TRIM(name) WHEN '' THEN c.ip ELSE c.name END name FROM client_by_id c WHERE c.id = q.client)";
$dbquery .= " ELSE client END client, count(client) FROM query_storage q ".$limit." GROUP BY client ORDER BY count(client) DESC LIMIT 20";

$stmt = $db->prepare($dbquery);
$stmt->bindValue(":from", intval($_GET['from']), SQLITE3_INTEGER);
$stmt->bindValue(":until", intval($_GET['until']), SQLITE3_INTEGER);
$results = $stmt->execute();
Expand Down Expand Up @@ -384,7 +407,7 @@ function parseDBData($results, $interval, $from, $until) {
$data = array_merge($data, $result);
}

if (isset($_GET['status']))
if (isset($_GET['status']) && $auth)
{
$extra = ";";
if(isset($_GET["ignore"]) && $_GET["ignore"] === 'DNSMASQ_WARN')
Expand Down
22 changes: 3 additions & 19 deletions cname_records.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php /*
<?php
/*
* Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";

require "scripts/pi-hole/php/header.php";
?>

<!-- Title -->
Expand Down Expand Up @@ -50,23 +51,6 @@
</div>
</div>

<!-- Alerts -->
<div id="alInfo" class="alert alert-info alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Updating CNAME records...
</div>
<div id="alSuccess" class="alert alert-success alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Success! The list will refresh.
</div>
<div id="alFailure" class="alert alert-danger alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Failure! Something went wrong, see output below:<br/><br/><pre><span id="err"></span></pre>
</div>
<div id="alWarning" class="alert alert-warning alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
At least one domain was already present, see output below:<br/><br/><pre><span id="warn"></span></pre>
</div>
<div class="row">
<div class="col-md-12">
<div class="box" id="recent-queries">
Expand Down
3 changes: 3 additions & 0 deletions db_queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<div class="col-md-3">
<div><input type="checkbox" id="type_blacklist" checked><label for="type_blacklist">Blocked: exact blacklist</label><br></div>
<div><input type="checkbox" id="type_regex" checked><label for="type_regex">Blocked: regex blacklist</label></div>
<div><input type="checkbox" id="type_special_domain" checked><label for="type_special_domain">Blocked: special domain</label></div>
</div>
<div class="col-md-3">
<div><input type="checkbox" id="type_gravity_CNAME" checked><label for="type_gravity_CNAME">Blocked: gravity (CNAME)</label><br></div>
Expand Down Expand Up @@ -179,6 +180,7 @@
<th>Domain</th>
<th>Client</th>
<th>Status</th>
<th>Reply</th>
<th>Action</th>
</tr>
</thead>
Expand All @@ -189,6 +191,7 @@
<th>Domain</th>
<th>Client</th>
<th>Status</th>
<th>Reply</th>
<th>Action</th>
</tr>
</tfoot>
Expand Down
2 changes: 1 addition & 1 deletion debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
<div>
<input type="checkbox" id="upload">
<label for="upload">Upload debug log and provide token once finished</label>
<label for="upload">Upload debug log and provide token (shown at the end of the report) once finished</label>
</div>
<p>Once you click this button a debug log will be generated and can automatically be uploaded if we detect a working internet connection.</p>
<button type="button" id="debugBtn" class="btn btn-lg btn-primary btn-block">Generate debug log</button>
Expand Down
22 changes: 3 additions & 19 deletions dns_records.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php /*
<?php
/*
* Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */
require "scripts/pi-hole/php/header.php";

require "scripts/pi-hole/php/header.php";
?>

<!-- Title -->
Expand Down Expand Up @@ -54,23 +55,6 @@
</div>
</div>

<!-- Alerts -->
<div id="alInfo" class="alert alert-info alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Updating the custom DNS entries...
</div>
<div id="alSuccess" class="alert alert-success alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Success! The list will refresh.
</div>
<div id="alFailure" class="alert alert-danger alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Failure! Something went wrong, see output below:<br/><br/><pre><span id="err"></span></pre>
</div>
<div id="alWarning" class="alert alert-warning alert-dismissible fade in" role="alert" hidden>
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
At least one domain was already present, see output below:<br/><br/><pre><span id="warn"></span></pre>
</div>
<div class="row">
<div class="col-md-12">
<div class="box" id="recent-queries">
Expand Down
1 change: 1 addition & 0 deletions groups-adlists.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<tr>
<th>ID</th>
<th></th>
<th class="no-padding"></th>
<th>Address</th>
<th>Status</th>
<th>Comment</th>
Expand Down
1 change: 1 addition & 0 deletions groups-clients.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<thead>
<tr>
<th>ID</th>
<th></th>
<th title="Acceptable values are: IP address, subnet (CIDR notation), MAC address (AA:BB:CC:DD:EE:FF format) or host names.">Client</th>
<th>Comment</th>
<th>Group assignment</th>
Expand Down
14 changes: 13 additions & 1 deletion groups-domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
<div class="col-md-6">
<div class="form-group">
<label for="new_domain">Domain:</label>
<input id="new_domain" type="url" class="form-control active" placeholder="Domain to be added" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
<input id="new_domain" type="url" class="form-control active" placeholder="Domain to be added" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
<div id="suggest_domains" class="table-responsive no-border"></div>
</div>
</div>
<div class="col-md-6 form-group">
Expand Down Expand Up @@ -88,6 +89,16 @@
</div>
</div>
</div>
<div>
<p><strong>Note:</strong><br>
The domain or regex filter will be automatically assigned to the Default Group.<br>
Other groups can optionally be assigned
<?php if ($type === "white" || $type === "black") { ?>
within <a href="groups-domains.php">Group Management > Domains</a>.
<?php } else {?>
in the list below (using <b>Group assignment</b>).
<?php } ?></p>
</div>
<div class="btn-toolbar pull-right" role="toolbar" aria-label="Toolbar with buttons">
<?php if ( $type !== "white" ) { ?>
<div class="btn-group" role="group" aria-label="Third group">
Expand Down Expand Up @@ -121,6 +132,7 @@
<thead>
<tr>
<th>ID</th>
<th></th>
<th>Domain/RegEx</th>
<th>Type</th>
<th>Status</th>
Expand Down
1 change: 1 addition & 0 deletions groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<thead>
<tr>
<th>ID</th>
<th></th>
<th>Name</th>
<th>Status</th>
<th>Description</th>
Expand Down
Loading