Commit Graph

1056 Commits

Author SHA1 Message Date
DL6ER
8cad8114cf Always re-read FTL config file at start of settings page to refresh old config data from before running the savesettings.php code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-02-19 10:58:19 +01:00
DL6ER
1d67146b75 Add rate-limit settings to dashboard
Signed-off-by: DL6ER <dl6er@dl6er.de>
2022-02-19 09:29:35 +01:00
Peter Dave Hello
66c2a9c6d5 footer.php: Improve Pi-Hole update instruction for Docker image
Running `pihole -up` in the Docker image release is not allowed, and
will receive this prompt msg: `Function not supported in Docker images`,
should display a different prompt message for Docker image release.

Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org>
2022-02-13 16:54:09 +08:00
yubiuser
10984d5287 Merge pull request #2119 from pi-hole/blocklist
Omit blocklist for adlist
2022-02-12 18:36:49 +01:00
Adam Warner
edfcf4521a Prevent misleading warning being printed to the lighttpd error log when attempting to flush tables that don't actually exist
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-02-12 13:39:57 +00:00
Christian König
e256b76d8e Omit blocklist
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-02-12 13:26:42 +01:00
Adam Warner
d0ceca674d Prevent potential execution of arbitary code through the PIHOLE_DOCKER_TAG variable and AUTHORIZED_HOSTNAMES
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2022-02-11 23:21:04 +00:00
Adam Warner
bb4cafcb7c Merge pull request #2021 from Iksas/safari-css-animation-fix
Decrease resource usage of CSS animations
2022-02-11 17:23:30 +00:00
yubiuser
551e2d093f Merge pull request #2091 from goopilot/devel
API call to modify local DNS and CNAME records
2022-02-07 19:36:37 +01:00
Iksas
369170105a improve efficiency of the lookatme animation
Signed-off-by: Iksas <Iksas@users.noreply.github.com>
2022-01-22 15:12:30 +01:00
Adam Warner
903c40ed5c Merge pull request #2096 from PeterDaveHelloKitchen/EnhanceFooter
footer.php: Add the Docker Hub tags filter link to "Docker Tag"
2022-01-22 12:17:22 +00:00
Peter Dave Hello
ddd48b1eb3 footer.php: Add the Docker Hub tags link to "Docker Tag"
Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org>
2022-01-22 18:37:19 +08:00
Alexandr Salamatov
39f0da7eb5 API call to modify local CNAME records
Signed-off-by: Alexandr Salamatov <wpgnetworks@gmail.com>
2022-01-20 21:22:01 -06:00
Alexandr Salamatov
dc598295ca API call to modify local DNS records
Signed-off-by: Alexandr Salamatov <wpgnetworks@gmail.com>
2022-01-19 16:07:18 -06:00
rdwebdesign
d1e90e273a Better file extension verification
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-17 02:06:26 -03:00
RD WebDesign
1f0ed95564 Remove extra space from the beginning of each line (#2079)
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-14 16:55:33 +01:00
yubiuser
9a5f62aba7 Use piholeStatus() in header.php (#2062)
* Use piholeStatus() in header.php

Signed-off-by: Christian König <ckoenig@posteo.de>

* Remove check for null

Signed-off-by: Christian König <ckoenig@posteo.de>
2022-01-08 21:01:57 +01:00
RD WebDesign
ab6b7ae326 Change pihole status in api_FTL.php (#2059)
Using "pihole status web" info

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-08 20:21:43 +01:00
yubiuser
33755f1775 Rework the temp info in the status panel (#2054)
* Explicit set templimit if no tempsensor output was found

Signed-off-by: Christian König <ckoenig@posteo.de>

* Only show Temp info if tempsensor data is available

Signed-off-by: Christian König <ckoenig@posteo.de>

* Move block to the right place

Signed-off-by: Christian König <ckoenig@posteo.de>
2022-01-08 06:39:52 +01:00
RD WebDesign
031f83980e Fix CPU info on status panel (#2049)
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2022-01-05 22:45:40 +01:00
rdwebdesign
b4539f1c24 Adjusting status panel
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-12-31 13:01:33 -03:00
yubiuser
64a3675326 Include FTL's DNS port in web status and give the temperature its own line (#2031)
* Inlcude port in web status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Single line for DNS status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix enable/disable status

Signed-off-by: Christian König <ckoenig@posteo.de>

* Give the user-panel a bit more space

Signed-off-by: Christian König <ckoenig@posteo.de>

* Address reviewer's comment

Signed-off-by: Christian König <ckoenig@posteo.de>

* Fix temp sensor

Signed-off-by: Christian König <ckoenig@posteo.de>

* Add  again

Signed-off-by: Christian König <ckoenig@posteo.de>

* Simplify CPU temp code

Signed-off-by: Christian König <ckoenig@posteo.de>

* Use intval() and resize the logo

Signed-off-by: Christian König <ckoenig@posteo.de>

* Do not substitute temperature if FTL is offline

Signed-off-by: Christian König <ckoenig@posteo.de>

* Apply suggestions from code review

Signed-off-by: DL6ER <dl6er@dl6er.de>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2021-12-29 20:52:32 +01:00
rdwebdesign
4c8f869e7b Fixing PHP warnings in qrcode.php
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-12-28 02:13:50 -03:00
DL6ER
605af66d02 Improve look of the main menu
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-12-24 14:19:52 +01:00
RD WebDesign
d060a3b5c9 Update qrcode.php and use SVG to generate the code (#2022)
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-12-24 11:38:58 +01:00
DL6ER
d7e750bda0 Improve interface settings (#2011)
* Change wording in the "Interface Listening Behavior" box (renamed to simply "Interface settings") to address issue #2009

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Clarify interface listening behavior. Add fourth (new) option it actually bind to an interface.

Signed-off-by: DL6ER <dl6er@dl6er.de>

* Improve .no-danger-area and .danger-area CSS

Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-12-20 21:38:00 +01:00
RD WebDesign
b94884ae17 Show ignored items when adding new adlists (#1997)
* Show ignored itens when adding new adlists

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>

* Show ignored itens when adding new adlists (new messages)

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-12-17 19:56:49 +01:00
Christian König
a1904e2dc8 Change default theme to auto light/dark theme
Signed-off-by: Christian König <ckoenig@posteo.de>
2021-12-16 12:19:22 +01:00
DL6ER
00acbff2de Add bounce animation to Pi-hole diagnosis warning triangle (#1990)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-11-30 12:58:32 +01:00
DL6ER
21cba361e0 Skip DNS server processing if the requested type is not available for this server (#1970)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2021-11-21 09:25:45 +01:00
DL6ER
18d15881ea Merge pull request #1943 from pi-hole/remove/API_Privacy_leftover
Remove traces of leftover API_PRIVACY_MODE
2021-11-20 21:13:59 +01:00
Christian König
9ce065f8b3 Remove 'privacyMode' as well
Signed-off-by: Christian König <ckoenig@posteo.de>
2021-10-26 19:56:19 +02:00
rdwebdesign
75251c173c Added new theme LCARS.
Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
2021-10-24 01:46:44 -03:00
Adam Warner
01191c7a1b Merge pull request from GHSA-mhr8-7rvg-8r43
* Prevent possible XSS attack vector on add_client
Update JS code to prevent possible XSS vector

Co-authored-by: Harold Kim <root@stypr.com>
Signed-off-by: Adam Warner <me@adamwarner.co.uk>

* Fix both addClient and deleteClient to prevent XSS

Signed-off-by: Harold Kim <root@stypr.com>

Co-authored-by: Harold Kim <root@stypr.com>
2021-10-23 19:26:07 +01:00
Adam Warner
bce2476d78 Display Docker Tag in footer if the PIHOLE_DOCKER_TAG environment variable is detected (#1933)
* If `PIHOLE_DOCKER_TAG` is set in the environment  then display it as Docker Tag in the versions footer. Else, don't.

Signed-off-by: Adam Warner <me@adamwarner.co.uk>

* Update scripts/pi-hole/php/footer.php

Signed-off-by: Adam Warner <me@adamwarner.co.uk>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>

Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2021-10-23 17:55:07 +02:00
DL6ER
5d981c165b Merge pull request #1924 from yubiuser/delete_network
Add delete button to the network table to allow deleting individual entries
2021-10-23 16:41:22 +02:00
DL6ER
9ab9850c9c Merge pull request #1925 from pi-hole/tweak/local_dns_cname
Do not restart for every item during Teleporter import of Local DNS record or CNAME
2021-10-23 16:39:12 +02:00
yubiuser
f2322157c8 Remove obsolet list_verify function
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-19 00:12:26 +02:00
yubiuser
e00d706b49 Fix tabs->spaces
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-15 07:42:00 +02:00
yubiuser
ab9454a582 Also use variable to disable reload in delteALL functions
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-13 20:47:02 +02:00
yubiuser
b80c97f6d3 Do only reload pihole once after Local DNS Records or CNAME have been modified
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-12 21:37:06 +02:00
yubiuser
9f0e5fa67e Use getCustomDNSEntries in deleteAllCustomDNSEntries
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-12 20:50:37 +02:00
yubiuser
98ee67efed Add delete function
Signed-off-by: yubiuser <ckoenig@posteo.de>
2021-10-11 14:46:10 +02:00
yubiuser
49c84e58dd Suppress empty lines output during teleporter import (#1921)
Signed-off-by: Yubiuser <ckoenig@posteo.de>
2021-10-11 09:05:08 +01:00
yubiuser
85121b69b1 Count right during teleporter import (#1922)
Signed-off-by: Yubiuser <ckoenig@posteo.de>
2021-10-10 22:31:59 +01:00
Th3M3
0d24f25f3c Modal Dialog for Teleporter-import
fixes page reload every time the DHCP tab gets active

Signed-off-by: Th3M3 <the_me@outlook.de>
2021-10-07 00:12:33 +01:00
Chris Miceli
1ed98f6f38 1777 Remember me for 7 days doesn't work if you log in from Recent Queries (#1870)
set cookie if requested

Signed-off-by: Chris Miceli <chrismiceli@outlook.com>
2021-10-06 23:39:21 +01:00
David Beitey
effcd907cd Make entire Forgot Password box header clickable (#1917)
This adjusts the markup for the Forgot Password box such that the entire
box header (the text, whitespace and plus/minus icon) is interactive.
Previous behaviour of clicking the icon remains the same.

This also improves the markup/spacing inside the box's content.

Signed-off-by: David Beitey <david@davidjb.com>
2021-10-06 22:43:56 +01:00
Adam Warner
d64818c7a5 Merge pull request #1892 from a1346054/fixes
Simple maintenance improvements
2021-09-29 21:17:25 +01:00
Adam Warner
5f52259c7e Merge pull request #1897 from yubiuser/lift_subnet_limitation
Lift prefix limitaion for --rev-server
2021-09-29 21:11:44 +01:00