Commit Graph

2108 Commits

Author SHA1 Message Date
Adam Warner
ec32e489eb Apply php-cs-fixer changes. We're not going to be using php for much longer, but currently devel is "broken"
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2024-04-21 15:37:39 +01:00
Michal Svatoš
070ccb56f3 Added new LCARS theme
Signed-off-by: Michal Svatos <github@svatos.dev>
2023-10-30 18:29:39 -04:00
RD WebDesign
e5f4f37806 Insert icheck CSS right after Bootstrap
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-10-15 17:46:31 -03:00
Christian König
48febbbf3e Fix PHP_CS error
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-09-20 13:41:40 +02:00
Christian König
e5868120df Fix PHP-CS
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-09-03 23:20:30 +02:00
Adam Warner
c054d8db8f replaceAll() requires a global regex
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
2023-07-24 17:55:57 +01:00
Christian König
879cdc4138 Fix CI tests
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-07-22 16:26:56 +02:00
Christian König
410e017c46 Fix spellcheck
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-06-18 10:32:29 +02:00
RD WebDesign
30afba838b Fixing the reversed logic
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-05-28 15:31:50 -03:00
DL6ER
0a8aaf8e88 Merge branch 'devel' into fix/rebase
Signed-off-by: DL6ER <DL6ER@users.noreply.github.com>
2023-05-27 18:04:04 +02:00
Christian König
630cfd6d63 Fix linting error introduced by PHP-CS-Fixer v3.17.0
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-05-24 22:20:02 +02:00
DL6ER
eac964511d Bump xo from 0.53.1 to 0.54.0 (#2573) 2023-05-24 18:51:07 +02:00
RD WebDesign
ee2dfe3173 Adding more detailed description to the function
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-05-22 22:49:52 -03:00
RD WebDesign
e6cc0ef44f Replace the <escape> character with the \e escape sequence
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-05-18 19:59:10 -03:00
RD WebDesign
57600b0e22 Tweak gravity to show the new parse list output
Replaces every `\r` returned by `pihole-FTL gravity parseList` with a
known string to allow overwriting the previous line.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-05-18 19:11:35 -03:00
Christian König
34e45edbda Fix warnings
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-27 20:01:30 +02:00
RD WebDesign
086aa51c90 Use a function to execute the API call to retrieve MAXLOGAGE
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-04-25 19:48:44 -03:00
RD WebDesign
3b150a1d43 Adding a javascript countdown while checking FTL status
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-04-10 15:04:40 -03:00
RD WebDesign
d0101870ac Add a parameter to pidofFTL() function to allow a delay if necessary
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-04-10 15:04:30 -03:00
RD WebDesign
d13f2dc7fc Fix a few PHP 8 warnings
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-03-26 20:27:26 -03:00
RD WebDesign
6de61a12aa Fix NaN error message when FTL is offline (#2548) 2023-03-22 17:32:00 -03:00
RD WebDesign
e40d43e4d9 Fix NaN error message when FTL is offline
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-03-17 15:22:55 -03:00
Christian König
ea916066a0 Tweak teleporter output
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-03-13 09:29:11 +01:00
Christian König
60883ebdb7 Fix successful temperature notification
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-02-26 22:17:25 +01:00
RD WebDesign
c74162ee47 Preparing PHP and javascript files for the new themes
- change HTML header code
- add new class to Pi-hole logo
- add new classes to auditlog buttons
- add new classes to query log and long-term query log buttons

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-16 01:11:24 -03:00
RD WebDesign
f59f587895 Adding the new themes to the web interface settings
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-11 19:53:56 -03:00
RD WebDesign
aa5068bbe9 Using a new function to retrieve CSS values from classes
- create a new function to access CSS values, even if not directly used on the page;
- remove the empty harcoded HTML `<span>` placeholders used only to source the colors from CSS classes

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-02-11 19:52:13 -03:00
Adam Warner
acb7892e9b Use the setupVars.conf option TEMPERATUREUNIT, plus slight rearrangement of settings page (#2516) 2023-02-09 18:36:29 +00:00
Christian König
7373cc2675 Fix multiple restarts while importing with Teleporter
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-02-02 23:37:19 +01:00
RD WebDesign
d92df4af4c If no unit is set on setupVars, try to use localstorage value, if exists
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-28 17:16:29 -03:00
RD WebDesign
4966f01dde Use and set the unit on setupVars.conf option TEMPERATUREUNIT
New behavior!!!
The temperature unit will be set GLOBALLY and not per browser.

- if a TEMPERATUREUNIT is set in setupVars.conf file, the value will be used.
- if there is no unit set in setupVars.conf, "C" will be used;
- changing the value on the web interface WILL CHANGE setupVars.conf.
- if the browser has an old value set on locastorage, this will be ingnored.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-27 16:45:38 -03:00
Adam Warner
8025a38aca Fix PHP-CS-Fixer complaints 2023-01-25 19:00:20 +00:00
Adam Warner
a998f51f2b Merge pull request from GHSA-33w4-xf7m-f82m
Fix Improper Session Handling vulnerability of "Remember me for 7 days" functionality
2023-01-25 18:53:00 +00:00
4n4nk3
d31cf9d156 Fix insecure persistent login token
Signed-off-by: 4n4nk3 <47717886+4n4nk3@users.noreply.github.com>
2023-01-22 23:55:54 +01:00
Adam Warner
124d12ea37 Do not return 'false' if IDNA<->UNICODE conversion fails (#2479) 2023-01-22 14:10:50 +00:00
Glenn Strauss
d94d86bad8 remove hard-coded /admin/ path; relocatable
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2023-01-22 12:46:34 +00:00
yubiuser
ec7b7536c6 Attenuate non-domain warning (#2507) 2023-01-21 19:26:58 +01:00
Christian König
4bc3d73acd Remove warning triangle
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-21 15:18:26 +01:00
Christian König
0155c366d1 Attenuate non-domain warning
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-21 14:54:14 +01:00
Christian König
68ac05fb7e Do not fail if IDNA<->UNICODE conversion fails
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-20 17:04:30 +01:00
Christian König
4473955291 Don't use idstring in messages when it's not necessary
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-20 16:57:34 +01:00
Christian König
acac90f79d Tweak deleting message
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-20 16:57:34 +01:00
Christian König
9f7a04a37c Show two decimals on doughnutTooltip if total share shown is less than 1%
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-01-18 22:29:00 +01:00
Christian König
a5eb854129 Add default value for $ver in func.php
Signed-off-by: Christian König <ckoenig@posteo.de>

Co-authored-by: ElectronicsTinkerer <ElectronicsTinkerer@users.noreply.github.com>
2023-01-16 23:02:24 +01:00
RD WebDesign
302a402277 Avoid caching issues using last modified time
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 23:10:15 -03:00
RD WebDesign
839836d848 Highlight the searched text
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 15:15:17 -03:00
RD WebDesign
9c62cc5225 Remove unused/dead old code
- "quiet" option and related functions (used by blocking page);
- "adlist" option (used by blocking page).

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 14:42:40 -03:00
RD WebDesign
2814556c16 Adding option to show all results for queryads
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2023-01-13 14:14:52 -03:00
RD WebDesign
f8c121407d Allow only authenticated access to queryads.php
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
2022-12-21 16:58:34 -03:00
Christian König
65dd61845e Do not use unicorn/switch-case-braces
Signed-off-by: Christian König <ckoenig@posteo.de>
2022-11-26 12:53:56 +01:00