Commit Graph

62 Commits

Author SHA1 Message Date
DL6ER
c9f5c9500a Directly modify gravity tables from the lists pages.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-08-05 21:55:08 +02:00
DL6ER
31d0b32103 Only show headings when we have domains for the respective list (regex / exact).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-07-22 21:35:42 +02:00
DL6ER
dfcfafd6d9 Implement whitelist regex support to web interface.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2019-07-22 21:15:50 +02:00
Mcat12
db68782f62 Replace fa-refresh with fa-sync
Font Awesome 5 replaced the refresh icon from 4 with fa-sync:
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes

Fixes #941

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2019-05-19 14:16:55 -07:00
Mark Drobnak
193e43c186 Merge pull request #865 from pi-hole/fix/script-outside-html
Move script tags inside html tag body
2018-12-10 16:48:00 -05:00
DL6ER
bd84160d4f Show different warning in the case that at least one of the domains to be added were already present
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-11-29 19:47:57 +01:00
DL6ER
21ab29dedc Use shell_exec() instead of exec() to obtain the full script output (and not only the last line!)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-11-29 18:39:23 +01:00
Mcat12
3b635e0245 Move script tags inside html tag
Fixes #863

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
2018-11-10 13:51:14 -05:00
Dan Schaper
098a002270 Link to docs is 404. Add target landing page.
Add `/overview/` to URL.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
2018-07-29 16:16:20 -07:00
DL6ER
dc5ab22ff5 Show link to Pi-hole's Regex documentation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-30 14:54:10 +02:00
DL6ER
ec0afceeed Add new button to allow both regex filters and legacy wildcards (get automatically converted to regex format)
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-30 14:19:03 +02:00
DL6ER
d901dc29b3 Fix button label
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-06 19:26:25 +02:00
DL6ER
36930e3834 Add regex support on the web interface
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-06-05 10:35:41 +02:00
Adam Warner
6ec8dcdc25 remove blurb about default whitelist items.
No longer needed as we do not whitelist anything

Signed-off-by: Adam Warner <adamw@rner.email>
2018-02-17 13:17:17 +00:00
TheME
a3e8ac1a9d list.php: fix path to footer.php...
...if invalid list parameter is used
2017-07-10 21:39:21 +02:00
Mcat12
acc83345fd Merge pull request #252 from pi-hole/customizeadlists
Manage adlists
2017-04-06 16:16:05 -04:00
DL6ER
7e68fdecff Make sure license comment is only outputted after header.php has prepared all the stuff that need to be done beforehand. Fixes #450 2017-04-03 10:17:05 +02:00
DL6ER
e169f1086e Proposed change 2017-03-28 22:11:06 +02:00
Adam Warner
00885265de Add a note about where the default whitelist entries come from, and what they mean. 2017-03-28 19:35:12 +01:00
Dan Schaper
309a6a10a1 Clarify conditions of whitelist/wildcard
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
2017-03-06 10:34:49 -08:00
Dan Schaper
302a8a89b4 Can now whitelist wildcard domains.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
2017-03-06 09:04:08 -08:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
Mcat12
f53f2e8836 Move buttons out of the way on small screens 2017-01-30 16:52:24 -05:00
DL6ER
b521a8de96 Show notice that whitelisting of wildcard blocking is not possible 2017-01-11 16:50:46 +01:00
DL6ER
bd36baa18b Merge branch 'devel' into wildcard_blacklisting 2017-01-09 14:51:54 +01:00
DL6ER
b6695f9882 Show failure response in error message (e.g. abd<>.de is not a valid domain) 2017-01-08 10:40:21 +01:00
DL6ER
a33301911a Made everything working 2016-12-31 16:24:10 +00:00
DL6ER
05f2df720e Put wildcard blocking entries into their own table 2016-12-31 16:06:21 +00:00
DL6ER
5735a5b9a2 Merge branch 'devel' into customizeadlists 2016-12-30 20:43:07 +00:00
DL6ER
3e8e153cfd Add notice on whitelist page that list domains are automatically added 2016-12-27 20:04:31 +00:00
DL6ER
e5a9826078 Moved more private files out of the root directory 2016-12-21 21:10:21 +01:00
Mcat12
2f65430a4d Move PHP scripts to scripts folder 2016-12-21 21:09:58 +01:00
Promofaux
d0553ef169 Organise folder structure a bit better... Seperates vendor packages from self-written scripts. 2016-12-21 21:09:45 +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
bb2c2e2244 Moved more private files out of the root directory 2016-12-20 12:52:19 +01:00
Mcat12
d1da1de597 Move PHP scripts to scripts folder 2016-12-19 19:44:51 -05:00
Promofaux
6a13796d99 Organise folder structure a bit better... Seperates vendor packages from self-written scripts. 2016-12-19 18:30:16 +00:00
Mcat12
0dec4b8aa0 Protect Enable/Disable with a CSRF token check
The token is now added for all pages.
2016-12-04 13:16:45 -05:00
Adam Warner
3e6955d4a0 Update list.php 2016-10-30 02:26:08 +00:00
Mcat12
3917000e9b Die on an invalid list parameter
Only accepts "white" and "black"
2016-10-19 19:22:25 -04:00
viemmsakh
4f45f81dbf Update to require header.php instead of header.html 2016-06-20 10:57:59 -04:00
Mcat12
a80d752720 Adjust to CSP 2016-05-21 12:10:27 -04:00
Mcat12
2ef1e3a8c2 Fix fade in bug on empty list
If the list became empty, the "Your $list is empty!"
message would not pop up, since the fadeIn call is
out of that scope.
2016-05-20 16:29:35 -04:00
Mcat12
82e92e99cc Fade alerts and add animation to refresh 2016-05-20 16:08:46 -04:00
Mcat12
0aabc01924 Add close button to alerts
They will pop back up again if you add another domain.
2016-05-19 20:49:32 -04:00
Mcat12
c69b434a8a Add domain on enter button keypress
Only activates when the input has focus.
2016-05-19 20:37:30 -04:00
Mcat12
a9512594ca Clear domain input on success 2016-05-19 20:21:58 -04:00
Mcat12
3a6e6b1199 Convert commands to jQuery
Mainly changed from `document.getElementById("something")` to
`$(#something)`. Also changed the html and hide/show functions
as a result of the change.
2016-05-19 20:17:56 -04:00
Mcat12
66d354d210 Turn off caching for jQuery AJAX calls
IE would cache the list contents, so that if you
updated the list it would not show up as changed.
2016-05-11 16:35:32 -04:00
Mcat12
d38486fbd6 Possible fix for incorrect token
It appears that sometimes the first time you open the page,
the token is not synced correctly or something, causing
the CSRF check to fail. Starting the session before any
HTML is outputted seems to be a recommended first step to
troubleshooting PHP session errors. I have tried to test
this fix, but right now I don't know exactly what triggers
the error.
2016-05-10 16:47:22 -04:00